masqmail
diff src/accept.c @ 411:9b93c0a3bd8c
Ensure lvals, rvals and components of address strucs are stripped.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 29 Feb 2012 12:06:33 +0100 |
parents | aa40710f09fe |
children |
line diff
1.1 --- a/src/accept.c Wed Feb 29 12:05:47 2012 +0100 1.2 +++ b/src/accept.c Wed Feb 29 12:06:33 2012 +0100 1.3 @@ -199,8 +199,7 @@ 1.4 1.5 DEBUG(5) debugf("hdr->value = '%s'\n", hdr->value); 1.6 1.7 - addr = g_strdup(hdr->value); 1.8 - g_strchomp(addr); 1.9 + addr = g_strstrip(g_strdup(hdr->value)); 1.10 msg->return_path = create_address_qualified(addr, 1.11 FALSE, msg->received_host); 1.12 if (msg->return_path) {