X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=program%2Fsteps%2Fmail%2Fshow.inc;fp=program%2Fsteps%2Fmail%2Fshow.inc;h=5f8790bfcac773802f73e665503c3b6b4e65c2cf;hb=e8a0682b96f5b7f297e58d101735ba20a0cc3a89;hp=de30bead282127a21026b161b4252fbdf931ebe8;hpb=b68022ca3782d5eb5a1a7ef6f8cf7abe1dc15bd6;p=roundcube.git diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index de30bea..5f8790b 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -15,7 +15,7 @@ | Author: Thomas Bruederli | +-----------------------------------------------------------------------+ - $Id: show.inc 2822 2009-07-31 09:07:54Z alec $ + $Id: show.inc 2933 2009-09-08 08:04:17Z alec $ */ @@ -74,8 +74,18 @@ if ($_GET['_uid']) { $OUTPUT->set_env('sender', $MESSAGE->sender['string']); $OUTPUT->set_env('permaurl', rcmail_url('show', array('_uid' => $MESSAGE->uid, '_mbox' => $mbox_name))); $OUTPUT->set_env('mailbox', $mbox_name); + if ($CONFIG['trash_mbox']) $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']); + if ($CONFIG['flag_for_deletion']) + $OUTPUT->set_env('flag_for_deletion', true); + if ($CONFIG['read_when_deleted']) + $OUTPUT->set_env('read_when_deleted', true); + if ($CONFIG['skip_deleted']) + $OUTPUT->set_env('skip_deleted', true); + if ($CONFIG['display_next']) + $OUTPUT->set_env('display_next', true); + if (!$OUTPUT->ajax_call) $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); @@ -143,9 +153,6 @@ if ($_GET['_uid']) { $OUTPUT->set_env('last_uid', $last); } - if ($CONFIG['display_next']) - $OUTPUT->set_env('display_next', true); - if (!$MESSAGE->headers->seen) $RCMAIL->plugins->exec_hook('message_read', array('uid' => $MESSAGE->uid, 'mailbox' => $IMAP->mailbox, 'message' => $MESSAGE));