summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-08 08:04:17 +0000
committeralecpl <alec@alec.pl>2009-09-08 08:04:17 +0000
commit11ea2ac890100f4000b7db4b33672a8ad8ca01fb (patch)
treebc4c4cb897938346e6d1f91d8f8ac96186a65373 /program/steps
parentb48d9bf5d412a6f56f3f9ba4bad141ddfe175727 (diff)
- Fix delete in message view deletes permanently with flag_for_deletion=true (#1486101)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/show.inc13
1 files changed, 10 insertions, 3 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index 88961e9aa..c7431d6ed 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -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));