case 'imp.reply':
case 'imp.forward':
case 'imp.redirect':
- case 'dimp.request':
- case 'dimp.sticky':
var log, tmp,
msg = m.message;
this.Growler = new Growler({ location: 'br' });
}
- if ($w('dimp.request dimp.sticky').indexOf(m.type) == -1) {
- msg = msg.unescapeHTML().unescapeHTML();
- }
-
- // TODO: dimp.request
this.Growler.growl(msg, {
className: m.type.replace('.', '-'),
- life: (m.type == 'horde.error') ? 10 : 5,
- sticky: true
-// sticky: m.type == 'dimp.sticky'
+ life: 8,
+ sticky: m.type == 'horde.error'
});
if (tmp = $('hordeAlertslog')) {
array_unshift($part_info, 'id');
}
+ /* Retrieve any history information for this message. */
+ if (!$preview && !empty($GLOBALS['conf']['maillog']['use_maillog'])) {
+ IMP_Maillog::displayLog($mime_headers->getValue('message-id'));
+ }
+
+ /* Do MDN processing now. */
+ if ($imp_ui->MDNCheck($folder, $index, $mime_headers)) {
+ $result['msgtext'] .= $imp_ui->formatStatusMsg(array('text' => array(_("The sender of this message is requesting a Message Disposition Notification from you when you have read this message."), sprintf(_("Click %s to send the notification message."), Horde::link('', '', '', '', 'DimpCore.doAction(\'SendMDN\',{folder:\'' . $folder . '\',index:' . $index . '}); return false;', '', '') . _("HERE") . '</a>'))));
+ }
+
/* Build body text. This needs to be done before we build the
* attachment list that lives in the header. */
foreach ($parts_list as $mime_id => $mime_type) {
$result = Horde::callHook('_imp_hook_dimp_messageview', array($result), 'imp');
}
- /* Retrieve any history information for this message. */
- if (!empty($GLOBALS['conf']['maillog']['use_maillog'])) {
- if (!$preview) {
- IMP_Maillog::displayLog($mime_headers->getValue('message-id'));
- }
-
- /* Do MDN processing now. */
- if ($imp_ui->MDNCheck($folder, $index, $mime_headers)) {
- $confirm_link = Horde::link('', '', '', '', 'DimpCore.doAction(\'SendMDN\',{folder:\'' . $folder . '\',index:' . $index . '}); return false;', '', '') . _("HERE") . '</a>';
- $GLOBALS['notification']->push(sprintf(_("The sender of this message is requesting a Message Disposition Notification from you when you have read this message. Click %s to send the notification message."), $confirm_link), 'dimp.request', array('content.raw'));
- }
- }
-
if (!$preview) {
$result['list_info'] = $imp_ui->getListInformation($mime_headers);
}
/* Generate the view link. */
$view_link = IMP::generateIMPUrl('view.php', $imp_mbox['mailbox'], $index, $mailbox_name);
-/* Retrieve any history information for this message. */
-if (!IMP::$printMode && !empty($conf['maillog']['use_maillog'])) {
- /* Do MDN processing now. */
- if ($imp_ui->MDNCheck($imp_mbox['mailbox'], $index, $mime_headers, Util::getFormData('mdn_confirm'))) {
- $confirm_link = Horde::link(htmlspecialchars(Util::addParameter($selfURL, 'mdn_confirm', 1))) . _("HERE") . '</a>';
- $notification->push(sprintf(_("The sender of this message is requesting a Message Disposition Notification from you when you have read this message. Please click %s to send the notification message."), $confirm_link), 'horde.message', array('content.raw'));
- }
-}
-
/* Everything below here is related to preparing the output. */
if (!IMP::$printMode) {
/* Set the status information of the message. */
$atc_parts = $display_ids = array();
$msgtext = '';
+/* Do MDN processing now. */
+if (!IMP::$printMode &&
+ $imp_ui->MDNCheck($imp_mbox['mailbox'], $index, $mime_headers, Util::getFormData('mdn_confirm'))) {
+ $msgtext .= $imp_ui->formatStatusMsg(array('text' => array(_("The sender of this message is requesting a Message Disposition Notification from you when you have read this message."), sprintf(_("Click %s to send the notification message."), Horde::link(htmlspecialchars(Util::addParameter($selfURL, 'mdn_confirm', 1))) . _("HERE") . '</a>'))));
+}
+
$show_parts = Util::getFormData('show_parts', $prefs->getValue('parts_display'));
if ($show_parts == 'all') {
$atc_parts = array_keys($parts_list);
}
/* Growler notification styles. */
-#Growler div.dimp-sticky {
- background-color: #ebe20c;
- background-image: url("graphics/warning.png");
- border-color: #807b00;
- color: #000;
-}
#Growler div.imp-reply {
background-image: url("graphics/mail_answered.png");
}
background-image: url("graphics/locked.png");
}
-#Growler div.dimp-sticky {
- background-image: url("graphics/warning.png");
-}
#Growler div.imp-reply {
background-image: url("graphics/mail_answered.png");
}