X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-reply.c;h=27ef37bd914cd0af1da57f8dd60bf33f1509cfce;hb=19f0ca7ee2e7d87ba154eeb51c02a3c29b3de417;hp=64f70bf74256fe317df62181212531cd36e91e7d;hpb=eeffa305eb302f52e326f7cb72a787556b8a7f00;p=notmuch 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); }