[balsa] * libbalsa/mailbox_imap.c: do not create empty address lists.
- From: Pawel Salek <pawels src gnome org>
- To: svn-commits-list gnome org
- Subject: [balsa] * libbalsa/mailbox_imap.c: do not create empty address lists.
- Date: Thu, 11 Jun 2009 15:03:07 -0400 (EDT)
commit 82e7d87b64e1d47cfb32b0005cfd9db09e2fe284
Author: Pawel Salek <pawsa theochem kth se>
Date: Thu Jun 11 21:00:32 2009 +0200
* libbalsa/mailbox_imap.c: do not create empty address lists.
This makes the message compose code believe that reply-to is set.
ChangeLog | 5 +++++
libbalsa/mailbox_imap.c | 10 ++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 90bb62b..294f7dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-11 Pawel Salek
+
+ * libbalsa/mailbox_imap.c: do not create empty address lists.
+ This make message compose code believe that reply-to is set.
+
2009-06-07 Peter Bloomfield
Build with threads disabled
diff --git a/libbalsa/mailbox_imap.c b/libbalsa/mailbox_imap.c
index 972cae3..579f655 100644
--- a/libbalsa/mailbox_imap.c
+++ b/libbalsa/mailbox_imap.c
@@ -549,6 +549,9 @@ mi_reconnect(ImapMboxHandle *h)
else if(rc==IMR_SEVERED) \
libbalsa_information(LIBBALSA_INFORMATION_WARNING, \
_("IMAP connection has been severed. Reconnecting...")); \
+ else if(rc==IMR_PROTOCOL) \
+ libbalsa_information(LIBBALSA_INFORMATION_WARNING, \
+ _("IMAP protocol error. Try enabling bug workarounds.")); \
else if(rc==IMR_BYE) {char *msg = imap_mbox_handle_get_last_msg(h); \
libbalsa_information(LIBBALSA_INFORMATION_WARNING, \
_("IMAP server has shut the connection: %s Reconnecting..."), msg); \
@@ -1854,9 +1857,12 @@ static InternetAddressList *
internet_address_new_list_from_imap_address_list(ImapAddress *list)
{
InternetAddress *addr;
- InternetAddressList *res = internet_address_list_new();
+ InternetAddressList *res;
+
+ if (!list)
+ return NULL;
- for (; list; list = list->next) {
+ for (res = internet_address_list_new(); list; list = list->next) {
addr = internet_address_new_from_imap_address(&list);
if (addr) {
internet_address_list_add(res, addr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]