X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-reply.c;h=27ef37bd914cd0af1da57f8dd60bf33f1509cfce;hp=64f70bf74256fe317df62181212531cd36e91e7d;hb=8d46f053043e2645da8a7c4d85d3cd321f9a5e3a;hpb=eeffa305eb302f52e326f7cb72a787556b8a7f00 diff --git a/notmuch-reply.c b/notmuch-reply.c index 64f70bf7..27ef37bd 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -427,13 +427,13 @@ guess_from_received_header (notmuch_config_t *config, notmuch_message_t *message if (strcasestr(primary, domain)) { free(mta); - return primary; - } - for (i = 0; i < other_len; i++) - if (strcasestr (other[i],domain)) { - free(mta); - return other[i]; + return primary; } + for (i = 0; i < other_len; i++) + if (strcasestr (other[i],domain)) { + free(mta); + return other[i]; + } } free (mta); }