# HG changeset patch # User meillo@marmaro.de # Date 1303737334 -7200 # Node ID c98aa884d2cbed0ed91f8e5cc54098144c9b65db # Parent e74ee75453db898a72be7404f5649ab674e65b9a added comments diff -r e74ee75453db -r c98aa884d2cb src/deliver.c --- 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);