1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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();
}
|