From 6b17199c52305193a95e810a8f2351691231d278 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 31 Jul 1999 22:03:58 +0000 Subject: Postfix-aware. svn path=/trunk/; revision=2520 --- fetchmail.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index eaf1886a..de0977f3 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -887,9 +887,12 @@ static int load_params(int argc, char **argv, int optind) memset(&def_opts, '\0', sizeof(struct query)); def_opts.smtp_socket = -1; def_opts.smtpaddress = (char *)0; - save_str(&def_opts.antispam, STRING_DUMMY, 0)->val.status.num = 571; - save_str(&def_opts.antispam, STRING_DUMMY, 0)->val.status.num = 550; - save_str(&def_opts.antispam, STRING_DUMMY, 0)->val.status.num = 501; +#define ANTISPAM(n) save_str(&def_opts.antispam, STRING_DUMMY, 0)->val.status.num = (n) + ANTISPAM(571); /* sendmail */ + ANTISPAM(550); /* old exim */ + ANTISPAM(501); /* new exim */ + ANTISPAM(554); /* Postfix */ +#undef ANTISPAM def_opts.server.protocol = P_AUTO; def_opts.server.timeout = CLIENT_TIMEOUT; -- cgit v1.2.3