diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-11-25 11:14:13 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-11-25 11:14:13 +0100 |
commit | 297c1afb80bc73e595a6dad42adcd536cf947ea8 (patch) | |
tree | 487c8dbc1e33b14d4447dcf5ca4e2cf3a4ab3c7a /program | |
parent | 14d00daa1a86d2eed71ff3dd5092281a48ad037c (diff) |
Fix redundant colon after last address in print mode
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/func.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 9864ca7a0..33ac1a206 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1061,10 +1061,10 @@ function rcmail_localized_priority($value) '4' => 'low', '5' => 'lowest', ); - + if ($value && $labels_map[$value]) return rcube_label($labels_map[$value]); - + return ''; } @@ -1488,7 +1488,9 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null, $mailto = rcube_idn_to_utf8($mailto); if ($PRINT_MODE) { - $out .= sprintf('%s <%s>', Q($name), $mailto); + $out .= ($out ? ', ' : '') . sprintf('%s <%s>', Q($name), $mailto); + // for printing we display all addresses + continue; } else if (check_email($part['mailto'], false)) { if ($linked) { |