return Horde_Text_Filter::filter(IMP::filterText($subject), 'text2html', array('parselevel' => Horde_Text_Filter_Text2html::MICRO, 'class' => null, 'callback' => null));
}
+ /**
+ * Redirect to mailbox after deleting a message?
+ *
+ * @return boolean Return to mailbox?
+ */
+ public function moveAfterAction()
+ {
+ return (($_SESSION['imp']['protocol'] != 'pop') &&
+ !IMP::hideDeletedMsgs($GLOBALS['imp_mbox']['mailbox']) &&
+ !$GLOBALS['prefs']->getValue('use_trash'));
+ }
+
}
$GLOBALS['start'] = $startIndex;
}
-function _moveAfterAction()
-{
- return (($_SESSION['imp']['protocol'] != 'pop') &&
- !IMP::hideDeletedMsgs($GLOBALS['imp_mbox']['mailbox']) &&
- !$GLOBALS['prefs']->getValue('use_trash'));
-}
require_once dirname(__FILE__) . '/lib/Application.php';
new IMP_Application(array('init' => true));
$indices_array = array($mailbox_name => array($index));
$imp_flags = IMP_Imap_Flags::singleton();
+$imp_ui = new IMP_UI_Message();
switch ($actionID) {
case 'blacklist':
require IMP_BASE . '/mailbox.php';
exit;
}
- if (_moveAfterAction()) {
+ if ($imp_ui->moveAfterAction()) {
$imp_mailbox->setIndex(1, 'offset');
}
}
$action = str_replace('_report', '', $actionID);
switch (IMP_Spam::reportSpam($indices_array, $action)) {
case 1:
- if (_moveAfterAction()) {
+ if ($imp_ui->moveAfterAction()) {
$imp_mailbox->setIndex(1, 'offset');
}
break;
$message_url = Horde::applicationUrl('message.php');
$self_link = Horde_Util::addParameter(IMP::generateIMPUrl('message.php', $imp_mbox['mailbox'], $index, $mailbox_name), array('start' => $msgindex, 'message_token' => $message_token));
-/* Create the IMP_UI_Message:: object. */
-$imp_ui = new IMP_UI_Message();
-
/* Develop the list of headers to display. */
$basic_headers = $imp_ui->basicHeaders();
$display_headers = $msgAddresses = array();