From 6efadfc8d38730f3ee6d0bbcd53bdc24ef094116 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 25 Aug 2013 09:03:01 +0200 Subject: Fix so additional headers are added to all messages sent (#1489284) --- program/lib/Roundcube/rcube.php | 4 ++++ program/steps/mail/sendmail.inc | 1 + 2 files changed, 5 insertions(+) (limited to 'program') diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index fbf9540ad..af9c069cf 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -1397,6 +1397,10 @@ class rcube 'options' => $options, )); + if ($plugin['abort']) { + return isset($plugin['result']) ? $plugin['result'] : false; + } + $from = $plugin['from']; $mailto = $plugin['mailto']; $options = $plugin['options']; diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index cf22a2af9..1a92844c0 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -455,6 +455,7 @@ if (!empty($CONFIG['useragent'])) { } // exec hook for header checking and manipulation +// Depracated: use message_before_send hook instead $data = $RCMAIL->plugins->exec_hook('message_outgoing_headers', array('headers' => $headers)); // sending aborted by plugin -- cgit v1.2.3