diff options
Diffstat (limited to 'mail/qmail/patches/patch-an')
-rw-r--r-- | mail/qmail/patches/patch-an | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mail/qmail/patches/patch-an b/mail/qmail/patches/patch-an new file mode 100644 index 00000000000..7f0797b1b6e --- /dev/null +++ b/mail/qmail/patches/patch-an @@ -0,0 +1,63 @@ +$NetBSD: patch-an,v 1.1 2004/04/10 05:30:06 schmonz Exp $ + +--- qmail-smtpd.c.orig 1998-06-15 06:53:16.000000000 -0400 ++++ qmail-smtpd.c +@@ -51,12 +51,12 @@ void straynewline() { out("451 See http: + + void err_bmf() { out("553 sorry, your envelope sender is in my badmailfrom list (#5.7.1)\r\n"); } + void err_nogateway() { out("553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)\r\n"); } +-void err_unimpl() { out("502 unimplemented (#5.5.1)\r\n"); } ++void err_unimpl(arg) char *arg; { out("502 unimplemented (#5.5.1)\r\n"); } + void err_syntax() { out("555 syntax error (#5.5.4)\r\n"); } + void err_wantmail() { out("503 MAIL first (#5.5.1)\r\n"); } + void err_wantrcpt() { out("503 RCPT first (#5.5.1)\r\n"); } +-void err_noop() { out("250 ok\r\n"); } +-void err_vrfy() { out("252 send some mail, i'll try my best\r\n"); } ++void err_noop(arg) char *arg; { out("250 ok\r\n"); } ++void err_vrfy(arg) char *arg; { out("252 send some mail, i'll try my best\r\n"); } + void err_qqt() { out("451 qqt failure (#4.3.0)\r\n"); } + + +@@ -67,11 +67,11 @@ void smtp_greet(code) char *code; + substdio_puts(&ssout,code); + substdio_put(&ssout,greeting.s,greeting.len); + } +-void smtp_help() ++void smtp_help(arg) char *arg; + { +- out("214 qmail home page: http://pobox.com/~djb/qmail.html\r\n"); ++ out("214 netqmail home page: http://qmail.org/netqmail\r\n"); + } +-void smtp_quit() ++void smtp_quit(arg) char *arg; + { + smtp_greet("221 "); out("\r\n"); flush(); _exit(0); + } +@@ -232,7 +232,7 @@ void smtp_ehlo(arg) char *arg; + smtp_greet("250-"); out("\r\n250-PIPELINING\r\n250 8BITMIME\r\n"); + seenmail = 0; dohelo(arg); + } +-void smtp_rset() ++void smtp_rset(arg) char *arg; + { + seenmail = 0; + out("250 flushed\r\n"); +@@ -316,8 +316,8 @@ int *hops; + if (flagmaybex) if (pos == 7) ++*hops; + if (pos < 2) if (ch != "\r\n"[pos]) flagmaybey = 0; + if (flagmaybey) if (pos == 1) flaginheader = 0; ++ ++pos; + } +- ++pos; + if (ch == '\n') { pos = 0; flagmaybex = flagmaybey = flagmaybez = 1; } + } + switch(state) { +@@ -365,7 +365,7 @@ void acceptmessage(qp) unsigned long qp; + out("\r\n"); + } + +-void smtp_data() { ++void smtp_data(arg) char *arg; { + int hops; + unsigned long qp; + char *qqx; |