Mercurial > masqmail
comparison src/masqmail.h @ 237:5f9f3a65032e
refactoring: new function split_rcpts() replaces two others
split_rcpts() merges rcptlist_with_one_of_hostlist() and
rcptlist_with_addr_is_local() into one with hardly adding complexity
I'd actually say that the overall complexity decreased.
Have a look at the comment for split_rcpts() in route.c
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Fri, 22 Oct 2010 11:56:47 -0300 |
parents | 996b53a50f55 |
children | 0509d0c933a7 |
comparison
equal
deleted
inserted
replaced
236:5a0e8ed56c2a | 237:5f9f3a65032e |
---|---|
496 | 496 |
497 /* route.c */ | 497 /* route.c */ |
498 msgout_perhost *create_msgout_perhost(gchar * host); | 498 msgout_perhost *create_msgout_perhost(gchar * host); |
499 void destroy_msgout_perhost(msgout_perhost * mo_ph); | 499 void destroy_msgout_perhost(msgout_perhost * mo_ph); |
500 void rewrite_headers(msg_out * msgout, connect_route * route); | 500 void rewrite_headers(msg_out * msgout, connect_route * route); |
501 void rcptlist_with_one_of_hostlist(GList * rcpt_list, GList * host_list, GList **, GList **); | 501 void split_rcpts(GList* rcpt_list, GList* localnets, GList** rl_local, GList** rl_localnet, GList** rl_others); |
502 void rcptlist_with_addr_is_local(GList * rcpt_list, GList ** p_rcpt_list, GList ** p_non_rcpt_list); | |
503 gboolean route_strip_msgout(connect_route * route, msg_out * msgout); | 502 gboolean route_strip_msgout(connect_route * route, msg_out * msgout); |
504 msg_out *route_prepare_msgout(connect_route * route, msg_out * msgout); | 503 msg_out *route_prepare_msgout(connect_route * route, msg_out * msgout); |
505 GList *route_msgout_list(connect_route * route, GList * msgout_list); | 504 GList *route_msgout_list(connect_route * route, GList * msgout_list); |
506 gboolean route_is_allowed_return_path(connect_route * route, address * ret_path); | 505 gboolean route_is_allowed_return_path(connect_route * route, address * ret_path); |
507 gboolean route_is_allowed_mail_local(connect_route * route, address * ret_path); | 506 gboolean route_is_allowed_mail_local(connect_route * route, address * ret_path); |