# HG changeset patch # User markus schnalke # Date 1291415634 10800 # Node ID 89199eda61447900d8599bfc3bd1c6afcb839f41 # Parent 00724782b6c9a6c68cadd76757bf11dbd42d8c8e fixed `To: alice, bob' with -t If rcpt headers contained an unqualified address followed by more addresses, they habe not been recognized. This should be fixed now. diff -r 00724782b6c9 -r 89199eda6144 src/parse.c --- a/src/parse.c Fri Dec 03 19:25:43 2010 -0300 +++ b/src/parse.c Fri Dec 03 19:33:54 2010 -0300 @@ -186,7 +186,7 @@ /* we now have a non-space char that is not the beginning of a comment */ - if (*p == '@') { + if (*p == '@' || *p == ',') { /* the last word was the local_part of an addr-spec */ *local_begin = b; *local_end = e; @@ -204,6 +204,7 @@ *domain_end = e; } else { /* unqualified? */ + /* something like `To: alice, bob' with -t */ *domain_begin = *domain_end = NULL; } break;