Fix redundant colon after last address in print mode

release-0.8
Aleksander Machniak 12 years ago
parent bc4a6a2711
commit c516e3a701

@ -1050,10 +1050,10 @@ function rcmail_localized_priority($value)
'4' => 'low',
'5' => 'lowest',
);
if ($value && $labels_map[$value])
return rcube_label($labels_map[$value]);
return '';
}
@ -1392,7 +1392,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) {

Loading…
Cancel
Save