Mercurial > masqmail
comparison 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 |
comparison
equal
deleted
inserted
replaced
410:cff967b2f51e | 411:9b93c0a3bd8c |
---|---|
197 if (hdr_list) { | 197 if (hdr_list) { |
198 hdr = (header *) (g_list_first(hdr_list)->data); | 198 hdr = (header *) (g_list_first(hdr_list)->data); |
199 | 199 |
200 DEBUG(5) debugf("hdr->value = '%s'\n", hdr->value); | 200 DEBUG(5) debugf("hdr->value = '%s'\n", hdr->value); |
201 | 201 |
202 addr = g_strdup(hdr->value); | 202 addr = g_strstrip(g_strdup(hdr->value)); |
203 g_strchomp(addr); | |
204 msg->return_path = create_address_qualified(addr, | 203 msg->return_path = create_address_qualified(addr, |
205 FALSE, msg->received_host); | 204 FALSE, msg->received_host); |
206 if (msg->return_path) { | 205 if (msg->return_path) { |
207 DEBUG(3) debugf("setting return_path to %s\n", | 206 DEBUG(3) debugf("setting return_path to %s\n", |
208 addr_string(msg->return_path)); | 207 addr_string(msg->return_path)); |