cvs: pear /Mail_Queue Queue.php package.xml
| From: | Lorenzo Alberton | Date: | Thu, 15 Feb 2007 10:30:09 +0000 |
| Subject: | cvs: pear /Mail_Queue Queue.php package.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44670@lists.php.net to get a copy of this message | ||
quipo Thu Feb 15 10:30:09 2007 UTC
Modified files:
/pear/Mail_Queue Queue.php package.xml
Log:
fixed bug #4092: flag a mail with setAsSent() method within the sendMail() method
http://cvs.php.net/viewvc.cgi/pear/Mail_Queue/Queue.php?r1=1.21&r2=1.22&diff_format=u
Index: pear/Mail_Queue/Queue.php
diff -u pear/Mail_Queue/Queue.php:1.21 pear/Mail_Queue/Queue.php:1.22
--- pear/Mail_Queue/Queue.php:1.21 Sat Jan 20 11:24:17 2007
+++ pear/Mail_Queue/Queue.php Thu Feb 15 10:30:09 2007
@@ -17,7 +17,7 @@
// | Lorenzo Alberton <l dot alberton at quipo dot it> |
// +----------------------------------------------------------------------+
//
-// $Id: Queue.php,v 1.21 2007/01/20 11:24:17 quipo Exp $
+// $Id: Queue.php,v 1.22 2007/02/15 10:30:09 quipo Exp $
/**
* Class for handle mail queue managment.
@@ -98,8 +98,8 @@
* // end usage example
* -------------------------------------------------------------------------
*
-* @version $Revision: 1.21 $
-* $Id: Queue.php,v 1.21 2007/01/20 11:24:17 quipo Exp $
+* @version $Revision: 1.22 $
+* $Id: Queue.php,v 1.22 2007/02/15 10:30:09 quipo Exp $
* @author Radek Maciaszek <chief@php.net>
*/
@@ -150,7 +150,7 @@
* Mail_Queue - base class for mail queue managment.
*
* @author Radek Maciaszek <wodzu@tonet.pl>
- * @version $Id: Queue.php,v 1.21 2007/01/20 11:24:17 quipo Exp $
+ * @version $Id: Queue.php,v 1.22 2007/02/15 10:30:09 quipo Exp $
* @package Mail_Queue
* @access public
*/
@@ -316,7 +316,7 @@
if (!PEAR::isError($result)) {
$this->container->setAsSent($mail);
- if($mail->isDeleteAfterSend()) {
+ if ($mail->isDeleteAfterSend()) {
$this->deleteMail($mail->getId());
}
} else {
@@ -366,10 +366,11 @@
*
* @param object MailBody object
* @return mixed True on success else pear error class
+ * @param bool $set_as_sent
*
* @access public
*/
- function sendMail($mail)
+ function sendMail($mail, $set_as_sent=true)
{
$recipient = $mail->getRecipient();
$hdrs = $mail->getHeaders();
@@ -377,7 +378,11 @@
if (empty($this->send_mail)) {
$this->factorySendMail();
}
- return $this->send_mail->send($recipient, $hdrs, $body);
+ $sent = $this->send_mail->send($recipient, $hdrs, $body);
+ if ($sent and $set_as_sent) {
+ $this->container->setAsSent($mail);
+ }
+ return $sent;
}
// }}}
http://cvs.php.net/viewvc.cgi/pear/Mail_Queue/package.xml?r1=1.31&r2=1.32&diff_format=u
Index: pear/Mail_Queue/package.xml
diff -u pear/Mail_Queue/package.xml:1.31 pear/Mail_Queue/package.xml:1.32
--- pear/Mail_Queue/package.xml:1.31 Wed Jan 31 14:49:27 2007
+++ pear/Mail_Queue/package.xml Thu Feb 15 10:30:09 2007
@@ -57,6 +57,7 @@
issue. If you want to remove it, you can do it manually with a custom error
handler.
- added new Creole container (Randy Syring)
+- fixed bug #4092: flag a mail with setAsSent() method within the sendMail() method
- minor fixes
- switched to package.xml v.2
</notes>