Skip to content

Commit

Permalink
Expose IMP_Indices::mdnCheck via the API.
Browse files Browse the repository at this point in the history
Needed for Request: 14122
  • Loading branch information
mrubinsk committed Dec 10, 2015
1 parent b8a7575 commit 4610152
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions imp/lib/Api.php
Expand Up @@ -499,4 +499,18 @@ public function getMaillogChanges($ts)
);
}

/**
* Check if we need to send a MDN, and send if needed/able. Will only send
* MDN if the request does NOT need to be confirmed by the user.
*
* @param Horde_Mime_Headers $headers The headers of the message.
*
* @return boolean True if the MDN request was able to be sent.
*/
public function mdnSend(Horde_Mime_Headers $headers, $mailbox, $uid)
{
$indices = new IMP_Indices($mailbox, $uid);
return !$indices->mdnCheck($headers);
}

}

0 comments on commit 4610152

Please sign in to comment.