forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-php/PEAR-Mail: Version bump for 1.5.0
Signed-off-by: Brian Evans <[email protected]>
- Loading branch information
Brian Evans
committed
Dec 5, 2022
1 parent
21ad54d
commit 71bf0ca
Showing
3 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST Mail-1.4.1.tgz 21756 BLAKE2B 247df343a7b09760501918681cadc3a649ff9f2bd9974aa714a3661e64af6f1503edeb8ef0030f0ce113c43467cada3e7d62c6a60e751b5c8e6980c14f97fdbb SHA512 851fa64bcf042fba58a70833c12ec5d7af6382e14e6157eeeb5be51b22cdfa5677c5d1eeba8c1f9eef6d55c2d732a4d5d6ea28c726aef232b233c170f7b82307 | ||
DIST Mail-1.5.0.tgz 23221 BLAKE2B fad07a2cbf2188f6f0dea3705ca5bd72d05505e2a9968f2b43c94045027e2506941e17854ef13cf65bc2ff99218e3663b0859e93563036bcbefa7911cc4f2b84 SHA512 07462b920a879182cb06576c6c91a52d1c0411afcefe9d701ae57633eb28cc0f08f163e9b808c00c38cfd7e886fc17ac4e7151dfda5905396b7819b365afa919 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit php-pear-r2 edos2unix | ||
|
||
DESCRIPTION="Class that provides multiple interfaces for sending emails" | ||
|
||
LICENSE="BSD" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" | ||
IUSE="test" | ||
RESTRICT="!test? ( test )" | ||
|
||
RDEPEND=">=dev-php/PEAR-Net_SMTP-1.4.1" | ||
BDEPEND="test? ( ${RDEPEND} dev-php/PEAR-PEAR )" | ||
|
||
src_prepare() { | ||
# test files are DOS line-endings and default patch strips without this line | ||
patch -p1 --binary < "${FILESDIR}/PEAR-Mail-1.5.0-fix-tests.patch" | ||
default | ||
} | ||
|
||
src_test() { | ||
peardev run-tests tests || die | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
diff --git a/tests/9137.phpt b/tests/9137.phpt | ||
index ba54c05..2e4c0a5 100644 | ||
--- a/tests/9137.phpt | ||
+++ b/tests/9137.phpt | ||
@@ -18,7 +18,8 @@ for ($i = 0; $i < count($addresses); $i++) { | ||
$address = "\"" . addslashes($addresses[$i]['name']) . "\" ". | ||
"<".$addresses[$i]['email'].">"; | ||
|
||
- $parsedAddresses = Mail_RFC822::parseAddressList($address); | ||
+ $parser = new Mail_RFC822(); | ||
+ $parsedAddresses = $parser->parseAddressList($address); | ||
if (is_a($parsedAddresses, 'PEAR_Error')) { | ||
echo $address." :: Failed to validate\n"; | ||
} else { | ||
diff --git a/tests/9137_2.phpt b/tests/9137_2.phpt | ||
index cc9dcbc..9c3c32d 100644 | ||
--- a/tests/9137_2.phpt | ||
+++ b/tests/9137_2.phpt | ||
@@ -18,7 +18,8 @@ $addresses = array( | ||
for ($i = 0; $i < count($addresses); $i++) { | ||
// construct the address | ||
$address = $addresses[$i]['raw']; | ||
- $parsedAddresses = Mail_RFC822::parseAddressList($address); | ||
+ $parser = new Mail_RFC822(); | ||
+ $parsedAddresses = $parser->parseAddressList($address); | ||
if (PEAR::isError($parsedAddresses)) { | ||
echo $address." :: Failed to validate\n"; | ||
} else { | ||
diff --git a/tests/bug17178.phpt b/tests/bug17178.phpt | ||
index 4572dda..425f329 100644 | ||
--- a/tests/bug17178.phpt | ||
+++ b/tests/bug17178.phpt | ||
@@ -4,7 +4,8 @@ Mail_RFC822::parseAddressList does not accept RFC-valid group syntax | ||
<?php | ||
require "Mail/RFC822.php"; | ||
|
||
-var_dump(Mail_RFC822::parseAddressList("empty-group:;","invalid",false,false)); | ||
+$parser = new Mail_RFC822(); | ||
+var_dump($parser->parseAddressList("empty-group:;","invalid",false,false)); | ||
|
||
--EXPECT-- | ||
array(0) { | ||
diff --git a/tests/bug17317.phpt b/tests/bug17317.phpt | ||
index 331e803..045a939 100644 | ||
--- a/tests/bug17317.phpt | ||
+++ b/tests/bug17317.phpt | ||
@@ -4,9 +4,10 @@ Mail_RFC822::parseAddressList invalid periods in mail address | ||
<?php | ||
require "Mail/RFC822.php"; | ||
|
||
-$result[] = Mail_RFC822::parseAddressList('[email protected]'); | ||
-$result[] = Mail_RFC822::parseAddressList('[email protected]'); | ||
-$result[] = Mail_RFC822::parseAddressList('[email protected]'); | ||
+$parser = new Mail_RFC822(); | ||
+$result[] = $parser->parseAddressList('[email protected]'); | ||
+$result[] = $parser->parseAddressList('[email protected]'); | ||
+$result[] = $parser->parseAddressList('[email protected]'); | ||
|
||
foreach ($result as $r) { | ||
if (is_a($r, 'PEAR_Error')) { | ||
diff --git a/tests/validateQuotedString.phpt b/tests/validateQuotedString.phpt | ||
index 8b892bd..e0adb79 100644 | ||
--- a/tests/validateQuotedString.phpt | ||
+++ b/tests/validateQuotedString.phpt | ||
@@ -5,7 +5,8 @@ Mail_RFC822::parseAddressList simple tests | ||
require_once 'Mail/RFC822.php'; | ||
$address_string = '"Joe Doe \(from Somewhere\)" <[email protected]>, [email protected], root'; | ||
|
||
-$address_array = Mail_RFC822::parseAddressList($address_string, "example.com"); | ||
+$parser = new Mail_RFC822(); | ||
+$address_array = $parser->parseAddressList($address_string, "example.com"); | ||
|
||
foreach ($address_array as $val) { | ||
echo "mailbox : " . $val->mailbox . "\n"; |