From a862043fe7d6095de0af7425ae5b2485bb896eb2 Mon Sep 17 00:00:00 2001 From: svncommit Date: Sun, 5 Oct 2008 03:05:16 +0000 Subject: restore some script environment variables removed in r1918 but needed in "show" action --- program/steps/mail/func.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'program') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index f2c4ea419..b7ef82ceb 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -73,6 +73,15 @@ if (empty($RCMAIL->action) || $RCMAIL->action == 'list') $OUTPUT->set_pagetitle(rcmail_localize_foldername($IMAP->get_mailbox_name())); } +else if ($RCMAIL->action == 'show') + { + // set current mailbox in client environment + $OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name()); + if ($CONFIG['trash_mbox']) + $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']); + if (!$OUTPUT->ajax_call) + rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); + } /** @@ -183,7 +192,7 @@ function rcmail_message_list($attrib) $out .= '' . "$col_name$sort\n"; } - $out .= ''.($attrib['attachmenticon'] ? sprintf($image_tag, $skin_path, $attrib['attachmenticon'], '') : '')."\n"; + $out .= ''.($attrib['attachmenticon'] ? sprintf($image_tag, $skin_path, $attrib['attachmenticon'], '') : ' ')."\n"; $out .= "\n\n"; // no messages in this mailbox -- cgit v1.2.3