| | |
| | | // go back to list if message not found (wrong UID) |
| | | if (empty($MESSAGE->headers)) { |
| | | $OUTPUT->show_message('messageopenerror', 'error'); |
| | | if ($RCMAIL->action=='preview' && template_exists('messagepreview')) |
| | | if ($RCMAIL->action=='preview' && $OUTPUT->template_exists('messagepreview')) |
| | | $OUTPUT->send('messagepreview'); |
| | | else { |
| | | $RCMAIL->action = 'list'; |
| | |
| | | $OUTPUT->set_env('sender', $MESSAGE->sender['string']); |
| | | |
| | | // check for unset disposition notification |
| | | if ($MESSAGE->headers->mdn_to && !$MESSAGE->headers->mdn_sent && |
| | | $mbox_name != $CONFIG['drafts_mbox'] && $mbox_name != $CONFIG['sent_mbox']) |
| | | if ($MESSAGE->headers->mdn_to && |
| | | !$MESSAGE->headers->mdn_sent && |
| | | $IMAP->check_permflag('MDNSENT') && |
| | | $mbox_name != $CONFIG['drafts_mbox'] && |
| | | $mbox_name != $CONFIG['sent_mbox']) |
| | | { |
| | | if (intval($CONFIG['mdn_requests']) === 1) |
| | | { |
| | |
| | | 'blockedobjects' => 'rcmail_remote_objects_msg')); |
| | | |
| | | |
| | | if ($RCMAIL->action=='print' && template_exists('printmessage')) |
| | | if ($RCMAIL->action=='print' && $OUTPUT->template_exists('printmessage')) |
| | | $OUTPUT->send('printmessage'); |
| | | else if ($RCMAIL->action=='preview' && template_exists('messagepreview')) |
| | | else if ($RCMAIL->action=='preview' && $OUTPUT->template_exists('messagepreview')) |
| | | $OUTPUT->send('messagepreview'); |
| | | else |
| | | $OUTPUT->send('message'); |