aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index a126697b6d..8c92f0479f 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1095,26 +1095,11 @@ mail_generate_reply (CamelFolder *folder, CamelMimeMessage *message, const char
d(printf ("we are looking for the mailing list called: %s\n", mlist));
- i = max = 0;
-
- /* some mailing-lists set the Reply-To to the list address */
- reply_to = camel_mime_message_get_reply_to (message);
- if (reply_to) {
- max = camel_address_length (CAMEL_ADDRESS (reply_to));
- for (i = 0; i < max; i++) {
- camel_internet_address_get (reply_to, i, &name, &address);
- if (!g_strncasecmp (address, mlist, len))
- break;
- }
- }
-
- if (i == max) {
- max = camel_address_length (CAMEL_ADDRESS (to_addrs));
- for (i = 0; i < max; i++) {
- camel_internet_address_get (to_addrs, i, &name, &address);
- if (!g_strncasecmp (address, mlist, len))
- break;
- }
+ max = camel_address_length (CAMEL_ADDRESS (to_addrs));
+ for (i = 0; i < max; i++) {
+ camel_internet_address_get (to_addrs, i, &name, &address);
+ if (!g_strncasecmp (address, mlist, len))
+ break;
}
if (i == max) {