Make find_account_by_envelope_from case insensitive Problem: My email going to the default mail server instead of the one for bphilips AT suse.de. This was my MUA was writing the from address as BPhilips AT suse.de since I was replying to an email addressed in that casing. Signed-off-by: Brandon Philips --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: msmtp/src/conf.c =================================================================== --- msmtp.orig/src/conf.c +++ msmtp/src/conf.c @@ -206,7 +206,7 @@ account_t *find_account_by_envelope_from { acc_list = acc_list->next; acc_from = ((account_t *)(acc_list->data))->from; - if (acc_from && strcmp(from, acc_from) == 0) + if (acc_from && strcasecmp(from, acc_from) == 0) { a = acc_list->data; break;