aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine/e-mail-session-utils.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-06-04 01:18:23 +0800
committerMilan Crha <mcrha@redhat.com>2013-06-04 01:22:03 +0800
commit5b0e9e7791cc960408fb772e9a1ec05037b5719a (patch)
treed30f024f22fe83bf193beada7425736cffa7e39a /libemail-engine/e-mail-session-utils.c
parent853c7125c183cef4b72cf6904cc21114066a3117 (diff)
downloadgsoc2013-evolution-5b0e9e7791cc960408fb772e9a1ec05037b5719a.tar
gsoc2013-evolution-5b0e9e7791cc960408fb772e9a1ec05037b5719a.tar.gz
gsoc2013-evolution-5b0e9e7791cc960408fb772e9a1ec05037b5719a.tar.bz2
gsoc2013-evolution-5b0e9e7791cc960408fb772e9a1ec05037b5719a.tar.lz
gsoc2013-evolution-5b0e9e7791cc960408fb772e9a1ec05037b5719a.tar.xz
gsoc2013-evolution-5b0e9e7791cc960408fb772e9a1ec05037b5719a.tar.zst
gsoc2013-evolution-5b0e9e7791cc960408fb772e9a1ec05037b5719a.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/e-mail-session-utils.c')
-rw-r--r--libemail-engine/e-mail-session-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libemail-engine/e-mail-session-utils.c b/libemail-engine/e-mail-session-utils.c
index 0938caeb33..1c9dcbb544 100644
--- a/libemail-engine/e-mail-session-utils.c
+++ b/libemail-engine/e-mail-session-utils.c
@@ -877,6 +877,9 @@ e_mail_session_send_to (EMailSession *session,
get_message_size (message, cancellable);
camel_message_info_set_flags (info, CAMEL_MESSAGE_SEEN, ~0);
+ /* expand, or remove empty, group addresses */
+ em_utils_expand_groups (CAMEL_INTERNET_ADDRESS (recipients));
+
/* The rest of the processing happens in a thread. */
context = g_slice_new0 (AsyncContext);