masqmail
diff src/parse.c @ 274:89199eda6144
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.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Fri, 03 Dec 2010 19:33:54 -0300 |
parents | 00724782b6c9 |
children | 41958685480d |
line diff
1.1 --- a/src/parse.c Fri Dec 03 19:25:43 2010 -0300 1.2 +++ b/src/parse.c Fri Dec 03 19:33:54 2010 -0300 1.3 @@ -186,7 +186,7 @@ 1.4 /* we now have a non-space char that is not 1.5 the beginning of a comment */ 1.6 1.7 - if (*p == '@') { 1.8 + if (*p == '@' || *p == ',') { 1.9 /* the last word was the local_part of an addr-spec */ 1.10 *local_begin = b; 1.11 *local_end = e; 1.12 @@ -204,6 +204,7 @@ 1.13 *domain_end = e; 1.14 } else { 1.15 /* unqualified? */ 1.16 + /* something like `To: alice, bob' with -t */ 1.17 *domain_begin = *domain_end = NULL; 1.18 } 1.19 break;