aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine/mail-ops.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-06-04 01:22:52 +0800
committerMilan Crha <mcrha@redhat.com>2013-06-04 01:23:31 +0800
commitc21d4bc7d69829918311c991dfffeb33282ca861 (patch)
tree39c3382c5e2cdbed0ef76425254665ca1a909632 /libemail-engine/mail-ops.c
parentd9781c4042da5892a53c986e27d6da8bc5076836 (diff)
downloadgsoc2013-evolution-c21d4bc7d69829918311c991dfffeb33282ca861.tar
gsoc2013-evolution-c21d4bc7d69829918311c991dfffeb33282ca861.tar.gz
gsoc2013-evolution-c21d4bc7d69829918311c991dfffeb33282ca861.tar.bz2
gsoc2013-evolution-c21d4bc7d69829918311c991dfffeb33282ca861.tar.lz
gsoc2013-evolution-c21d4bc7d69829918311c991dfffeb33282ca861.tar.xz
gsoc2013-evolution-c21d4bc7d69829918311c991dfffeb33282ca861.tar.zst
gsoc2013-evolution-c21d4bc7d69829918311c991dfffeb33282ca861.zip
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.
Diffstat (limited to 'libemail-engine/mail-ops.c')
-rw-r--r--libemail-engine/mail-ops.c3
1 files changed, 3 insertions, 0 deletions
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))