Skip to content

Commit

Permalink
Add IMP_Api::logRecipient.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 23, 2014
1 parent a4c2f9a commit 0162821
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions imp/docs/CHANGES
Expand Up @@ -2,6 +2,7 @@
v6.2.0-git
----------

[mjr] Add IMP_Api::logRecipient.
[mms] Remove the mail_domain preference.
[mjr] Add display of reccurence data to iTip viewer (Request #12919).
[mms] Allow HTML data to be pasted within HTML compose editor paste dialog.
Expand Down
16 changes: 16 additions & 0 deletions imp/lib/Api.php
Expand Up @@ -302,6 +302,22 @@ public function favouriteRecipients($limit,
return $GLOBALS['injector']->getInstance('IMP_Sentmail')->favouriteRecipients($limit, $filter);
}

/**
* Log an entry to the IMP_Sentmail system.
*
* @param string $action The performed action. One of:
* 'new', 'reply', 'forward', 'redirect',
* or 'mdn'.
* @param string|array $recipients The message recipients.
* @param string $message_id The message-id.
* @param boolean $success Was the message successfully sent?
*/
public function logRecipient($reason, $recipients, $message_id, $success = true)
{
$GLOBALS['injector']->getInstance('IMP_Sentmail')->log(
$reason, $message_id, $recipients, $success);
}

/**
* Returns the Horde_Imap_Client object created using the IMP credentials.
*
Expand Down
1 change: 1 addition & 0 deletions imp/package.xml
Expand Up @@ -33,6 +33,7 @@
</stability>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [mjr] Add IMP_Api::logRecipient.
* [mms] Remove the mail_domain preference.
* [mjr] Add display of reccurence data to iTip viewer (Request #12919).
* [mms] Allow HTML data to be pasted within HTML compose editor paste dialog.
Expand Down

0 comments on commit 0162821

Please sign in to comment.