diff options
Diffstat (limited to 'mail/qmail/patches/patch-ak')
-rw-r--r-- | mail/qmail/patches/patch-ak | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/mail/qmail/patches/patch-ak b/mail/qmail/patches/patch-ak new file mode 100644 index 00000000000..adae72f70ce --- /dev/null +++ b/mail/qmail/patches/patch-ak @@ -0,0 +1,103 @@ +$NetBSD: patch-ak,v 1.1 2004/04/10 05:30:06 schmonz Exp $ + +--- qmail-pop3d.c.orig 1998-06-15 06:53:16.000000000 -0400 ++++ qmail-pop3d.c +@@ -66,14 +66,14 @@ void die_nomaildir() { err("this user ha + void die_scan() { err("unable to scan $HOME/Maildir"); die(); } + + void err_syntax() { err("syntax error"); } +-void err_unimpl() { err("unimplemented"); } ++void err_unimpl(arg) char *arg; { err("unimplemented"); } + void err_deleted() { err("already deleted"); } + void err_nozero() { err("messages are counted from 1"); } + void err_toobig() { err("not that many messages"); } + void err_nosuch() { err("unable to open that message"); } + void err_nounlink() { err("unable to unlink all deleted messages"); } + +-void okay() { puts("+OK \r\n"); flush(); } ++void okay(arg) char *arg; { puts("+OK \r\n"); flush(); } + + void printfn(fn) char *fn; + { +@@ -146,7 +146,7 @@ void getlist() + } + } + +-void pop3_stat() ++void pop3_stat(arg) char *arg; + { + int i; + unsigned long total; +@@ -161,15 +161,15 @@ void pop3_stat() + flush(); + } + +-void pop3_rset() ++void pop3_rset(arg) char *arg; + { + int i; + for (i = 0;i < numm;++i) m[i].flagdeleted = 0; + last = 0; +- okay(); ++ okay(0); + } + +-void pop3_last() ++void pop3_last(arg) char *arg; + { + puts("+OK "); + put(strnum,fmt_uint(strnum,last)); +@@ -177,7 +177,7 @@ void pop3_last() + flush(); + } + +-void pop3_quit() ++void pop3_quit(arg) char *arg; + { + int i; + for (i = 0;i < numm;++i) +@@ -192,7 +192,7 @@ void pop3_quit() + if (!stralloc_0(&line)) die_nomem(); + rename(m[i].fn,line.s); /* if it fails, bummer */ + } +- okay(); ++ okay(0); + die(); + } + +@@ -214,7 +214,7 @@ void pop3_dele(arg) char *arg; + if (i == -1) return; + m[i].flagdeleted = 1; + if (i + 1 > last) last = i + 1; +- okay(); ++ okay(0); + } + + void list(i,flaguidl) +@@ -238,7 +238,7 @@ void dolisting(arg,flaguidl) char *arg; + list(i,flaguidl); + } + else { +- okay(); ++ okay(0); + for (i = 0;i < numm;++i) + if (!m[i].flagdeleted) + list(i,flaguidl); +@@ -267,7 +267,7 @@ void pop3_top(arg) char *arg; + + fd = open_read(m[i].fn); + if (fd == -1) { err_nosuch(); return; } +- okay(); ++ okay(0); + substdio_fdbuf(&ssmsg,read,fd,ssmsgbuf,sizeof(ssmsgbuf)); + blast(&ssmsg,limit); + close(fd); +@@ -299,7 +299,7 @@ char **argv; + + getlist(); + +- okay(); ++ okay(0); + commands(&ssin,pop3commands); + die(); + } |