Skip to content

Commit

Permalink
Fix logging recipient.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Aug 25, 2014
1 parent 64c4521 commit 7132a68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions framework/Core/lib/Horde/Core/ActiveSync/Connector.php
Expand Up @@ -873,6 +873,9 @@ public function mail_getMaillog($mid)
*/
public function mail_logMaillog($action, $mid, $recipients = null)
{
if (!empty($recipients)) {
$recipients = array('recipients' => $recipients);
}
if ($this->_registry->hasMethod('logMaillog', $this->_registry->hasInterface('mail'))) {
$this->_registry->mail->logMaillog($action, $mid, $recipients);
}
Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -1944,7 +1944,7 @@ public function sendMail(
$this->_connector->mail_logMaillog(
$mailer->reply ? 'reply' : 'forward',
$mailer->imapMessage->getHeaders()->getValue('Message-ID'),
$mailer->forward ? array($mailer->headers->getValue('To')) : null);
$mailer->forward ? $mailer->headers->getValue('To') : null);
$this->_imap->setImapFlag(
$mailer->parentFolder,
$mailer->id,
Expand Down

0 comments on commit 7132a68

Please sign in to comment.