From 7a7ef7b687818c7b057d1472e6d1d00056030eff Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 8 Nov 2017 09:04:47 +0100 Subject: [PATCH] Don't treat .eml attachments to drafts as drafts --- program/steps/mail/show.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index 5ea437b78..2a9762253 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -276,7 +276,9 @@ function rcmail_message_buttons() $dbox = $RCMAIL->config->get('drafts_mbox'); // the message is not a draft - if ($MESSAGE->folder != $dbox && strpos($MESSAGE->folder, $dbox.$delim) !== 0) { + if ($MESSAGE->context + || ($MESSAGE->folder != $dbox && strpos($MESSAGE->folder, $dbox.$delim) !== 0) + ) { return ''; } @@ -522,7 +524,7 @@ function rcmail_message_summary($attrib) return; } - $header = rcmail_message_list_smart_column_name(); + $header = $MESSAGE->context ? 'from' : rcmail_message_list_smart_column_name(); $label = 'shortheader' . $header; $date = $RCMAIL->format_date($MESSAGE->headers->date, $RCMAIL->config->get('date_long', 'x')); $user = $MESSAGE->headers->$header;