From c21d4bc7d69829918311c991dfffeb33282ca861 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 3 Jun 2013 19:22:52 +0200 Subject: Bug #250046 - Empty group address as recipient prevents message send Empty group addresses were left as-is when sending an email directly, not through Outbox, which could cause a send error through SMTP. Expanding group addresses, or removing empty groups, from a list or recipients before sending the message fixes the issue. --- libemail-engine/mail-ops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libemail-engine/mail-ops.c') diff --git a/libemail-engine/mail-ops.c b/libemail-engine/mail-ops.c index ec3e9bc992..dccd001335 100644 --- a/libemail-engine/mail-ops.c +++ b/libemail-engine/mail-ops.c @@ -635,6 +635,9 @@ mail_send_message (struct _send_queue_msg *m, service, cancellable, error)) goto exit; + /* expand, or remove empty, group addresses */ + em_utils_expand_groups (CAMEL_INTERNET_ADDRESS (recipients)); + if (!camel_transport_send_to_sync ( CAMEL_TRANSPORT (service), message, from, recipients, cancellable, error)) -- cgit v1.2.3