diff options
author | Aleksander Machniak <alec@alec.pl> | 2019-12-18 13:49:51 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2019-12-18 13:49:51 +0300 |
commit | 226097fc3fe87578e9bd987c18181524096723ba (patch) | |
tree | aec7046ad86e4587c02fb9fe7a35f4db5b828c22 /program | |
parent | 5f30dc68a3b67eedb57a5f0115b4bad783cb3347 (diff) |
Markasjunk: Fix marking more than one message as spam/ham with email_learn driver (#7121)
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcmail_sendmail.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/program/include/rcmail_sendmail.php b/program/include/rcmail_sendmail.php index b90c23912..9ed65f756 100644 --- a/program/include/rcmail_sendmail.php +++ b/program/include/rcmail_sendmail.php @@ -362,11 +362,12 @@ class rcmail_sendmail /** * Message delivery, and setting Replied/Forwarded flag on success * - * @param Mail_mime $message Message object + * @param Mail_mime $message Message object + * @param bool $disconnect Close SMTP connection after delivery * * @return bool True on success, False on failure */ - public function deliver_message($message) + public function deliver_message($message, $disconnect = true) { // Handle Delivery Status Notification request $smtp_opts = array('dsn' => $this->options['dsn_enabled']); @@ -374,7 +375,7 @@ class rcmail_sendmail $sent = $this->rcmail->deliver_message($message, $this->options['from'], $this->options['mailto'], - $smtp_error, $mailbody_file, $smtp_opts, true + $smtp_error, $mailbody_file, $smtp_opts, $disconnect ); // return to compose page if sending failed |