From 65dff8f812cc6b0c4fdd470905700143910289b2 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 23 Nov 2012 09:11:19 +0100 Subject: Fix hidden flag and default_addressbook settings handling --- program/steps/mail/compose.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps/mail') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index ffc1c7518..92ec88f1b 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -1615,7 +1615,7 @@ function rcmail_addressbook_list($attrib = array()) 'rel' => '%s', 'onclick' => "return ".JS_OBJECT_NAME.".command('list-adresses','%s',this)"), '%s')); - foreach ($RCMAIL->get_address_sources() as $j => $source) { + foreach ($RCMAIL->get_address_sources(false, true) as $j => $source) { $id = strval(strlen($source['id']) ? $source['id'] : $j); $js_id = JQ($id); -- cgit v1.2.3 From 297c1afb80bc73e595a6dad42adcd536cf947ea8 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 25 Nov 2012 11:14:13 +0100 Subject: Fix redundant colon after last address in print mode --- program/steps/mail/func.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'program/steps/mail') 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) { -- cgit v1.2.3