aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c9
1 files changed, 6 insertions, 3 deletions
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;