aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-02-04 12:12:01 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-02-04 12:42:09 -0800
commit9953e9a5a85b3ffbf62b86a6aa9bd0322d425f81 (patch)
tree9d9be8eb042727139cbbf31af77890e8461a6651 /notmuch-reply.c
parent9041c1389cfddb79bf4cc268f5cd94d4af41c27a (diff)
notmuch-reply: Add missing whitespace.
Some recently-added functions were to hard for me to read without the expected whitespace. Fix these.
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r--notmuch-reply.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c
index cb42de45..31679a57 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -208,18 +208,26 @@ mailing_list_munged_reply_to (notmuch_message_t *message)
header = notmuch_message_get_header (message, "reply-to");
list = internet_address_list_parse_string (header);
+
if (internet_address_list_length (list) != 1)
return 0;
+
address = internet_address_list_get_address (list, 0);
if (INTERNET_ADDRESS_IS_GROUP (address))
return 0;
+
mailbox = INTERNET_ADDRESS_MAILBOX (address);
addr = internet_address_mailbox_get_addr (mailbox);
+
/* Note that strcasestr() is a GNU extension, strstr() might be sufficient */
if (strcasestr (notmuch_message_get_header (message, "to"), addr) == 0 ||
strcasestr (notmuch_message_get_header (message, "cc"), addr) == 0)
+ {
return 1;
- return 0; }
+ }
+
+ return 0;
+}
/* Augments the recipients of reply from the headers of message.
*
@@ -271,6 +279,7 @@ add_recipients_from_message (GMimeMessage *reply,
if (from_addr == NULL)
from_addr = addr;
}
+
return from_addr;
}