Mercurial > masqmail
changeset 315:c98aa884d2cb
added comments
author | meillo@marmaro.de |
---|---|
date | Mon, 25 Apr 2011 15:15:34 +0200 (2011-04-25) |
parents | e74ee75453db |
children | d596ac8b5afb |
files | src/deliver.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/deliver.c Mon Apr 25 15:14:04 2011 +0200 +++ b/src/deliver.c Mon Apr 25 15:15:34 2011 +0200 @@ -235,7 +235,8 @@ return ok; } -/* make a list of rcpt's of a message that are local return a new copy of the list */ +/* make a list of rcpt's of a message that are local + return a new copy of the list */ void msg_rcptlist_local(GList * rcpt_list, GList ** p_local_list, GList ** p_nonlocal_list) { @@ -559,12 +560,14 @@ continue; } + /* filter by allowed return paths (= envelope sender) */ if (!route_is_allowed_mail_local(route, msgout->msg->return_path) - || !route_is_allowed_return_path(route, msgout->msg-> return_path)) { + || !route_is_allowed_return_path(route, msgout->msg->return_path)) { destroy_msg_out(msgout_cloned); continue; } + /* filter by allowed rcpt addrs (= envelope rcpts) */ GList *rcpt_list_allowed = NULL, *rcpt_list_notallowed = NULL; msg_rcptlist_route(route, msgout_cloned->rcpt_list, &rcpt_list_allowed, &rcpt_list_notallowed);