diff options
author | Milan Crha <mcrha@redhat.com> | 2009-11-10 18:46:41 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-11-10 18:46:41 +0800 |
commit | b9953ceaed91acfcca24a54240ff51847526e6a8 (patch) | |
tree | 46b10672faa374ed0fb072e480d52a1032f2d2a0 /composer | |
parent | 5beeca1f80c3a618feeeb2c5b7e09cc47b64387d (diff) | |
download | gsoc2013-evolution-b9953ceaed91acfcca24a54240ff51847526e6a8.tar gsoc2013-evolution-b9953ceaed91acfcca24a54240ff51847526e6a8.tar.gz gsoc2013-evolution-b9953ceaed91acfcca24a54240ff51847526e6a8.tar.bz2 gsoc2013-evolution-b9953ceaed91acfcca24a54240ff51847526e6a8.tar.lz gsoc2013-evolution-b9953ceaed91acfcca24a54240ff51847526e6a8.tar.xz gsoc2013-evolution-b9953ceaed91acfcca24a54240ff51847526e6a8.tar.zst gsoc2013-evolution-b9953ceaed91acfcca24a54240ff51847526e6a8.zip |
Bug #250046 - Composer addresses reading fixes
- Check for no addresses properly (in post-to only when shown)
- Check for garbage addresses and warn user about those
- Use garbage text in To/CC/Bcc fields when user typed them
Diffstat (limited to 'composer')
-rw-r--r-- | composer/e-msg-composer.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index c10ef997d4..d079c524a0 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -418,7 +418,8 @@ set_recipients_from_destv (CamelMimeMessage *msg, seen_hidden_list = TRUE; } - camel_address_decode (CAMEL_ADDRESS (target), text_addr); + if (camel_address_decode (CAMEL_ADDRESS (target), text_addr) <= 0) + camel_internet_address_add (target, "", text_addr); } } @@ -432,14 +433,16 @@ set_recipients_from_destv (CamelMimeMessage *msg, seen_hidden_list = TRUE; } - camel_address_decode (CAMEL_ADDRESS (target), text_addr); + if (camel_address_decode (CAMEL_ADDRESS (target), text_addr) <= 0) + camel_internet_address_add (target, "", text_addr); } } for (i = 0; bcc_destv != NULL && bcc_destv[i] != NULL; ++i) { text_addr = e_destination_get_address (bcc_destv[i]); if (text_addr && *text_addr) { - camel_address_decode (CAMEL_ADDRESS (bcc_addr), text_addr); + if (camel_address_decode (CAMEL_ADDRESS (bcc_addr), text_addr) <= 0) + camel_internet_address_add (bcc_addr, "", text_addr); } } @@ -3967,7 +3970,7 @@ e_msg_composer_is_exiting (EMsgComposer *composer) void e_msg_composer_request_close (EMsgComposer *composer) { - g_return_val_if_fail (composer != NULL, FALSE); + g_return_if_fail (composer != NULL); composer->priv->application_exiting = TRUE; } |