X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Frouters%2Faccept.c;h=eb5b9551148b10f70c1200fe74850945b158953e;hb=78598e6a6a8cda8d1b50685188682749929df614;hp=ef2a2854ae1bac14f3a1bc1aee51f6f7a1b7ad63;hpb=6023a6ad2ac0294879b14127f62795095da573b5;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/routers/accept.c b/src/src/routers/accept.c index ef2a2854a..eb5b95511 100644 --- a/src/src/routers/accept.c +++ b/src/src/routers/accept.c @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2009 */ +/* Copyright (c) University of Cambridge 1995 - 2018 */ /* See the file NOTICE for conditions of use and distribution. */ @@ -32,6 +32,18 @@ accept_router_options_block accept_router_option_defaults = { }; +#ifdef MACRO_PREDEF + +/* Dummy entries */ +void accept_router_init(router_instance *rblock) {} +int accept_router_entry(router_instance *rblock, address_item *addr, + struct passwd *pw, int verify, address_item **addr_local, + address_item **addr_remote, address_item **addr_new, + address_item **addr_succeed) {return 0;} + +#else /*!MACRO_PREDEF*/ + + /************************************************* * Initialization entry point * @@ -105,7 +117,7 @@ DEBUG(D_route) debug_printf("%s router called for %s\n domain = %s\n", rc = rf_get_errors_address(addr, rblock, verify, &errors_to); if (rc != OK) return rc; -/* Set up the additional and removeable headers for the address. */ +/* Set up the additional and removable headers for the address. */ rc = rf_get_munge_headers(addr, rblock, &extra_headers, &remove_headers); if (rc != OK) return rc; @@ -125,4 +137,5 @@ addr->prop.remove_headers = remove_headers; return rf_queue_add(addr, addr_local, addr_remote, rblock, pw)? OK : DEFER; } +#endif /*!MACRO_PREDEF*/ /* End of routers/accept.c */