aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-07-31 22:03:58 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-07-31 22:03:58 +0000
commit6b17199c52305193a95e810a8f2351691231d278 (patch)
tree391d370ca4aee2fa932467ad70b08c6c582f80cc /fetchmail.c
parent72fc2c255f364507fbc87717cd54b9541f2f5189 (diff)
downloadfetchmail-6b17199c52305193a95e810a8f2351691231d278.tar.gz
fetchmail-6b17199c52305193a95e810a8f2351691231d278.tar.bz2
fetchmail-6b17199c52305193a95e810a8f2351691231d278.zip
Postfix-aware.
svn path=/trunk/; revision=2520
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;