-
Notifications
You must be signed in to change notification settings - Fork 1
/
qmail-popup-CAPA-2.patch
48 lines (42 loc) · 1.5 KB
/
qmail-popup-CAPA-2.patch
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
From: Ximenes Zalteca <ximenes@mythic.net>
Subject: qmail-pop3d and CAPA
Date: Sat, 3 Apr 1999 23:11:44 -0500
I've noticed that beta versions of Eudora (which my clients
will eventually update to when they are released, I presume) tell the
pop server 'CAPA' to determine what commands are supported when they
log in. I'm still undecided about whether or not this -should- be
supported, but I went ahead and modified the existing patch (that
just returns 'APOP') to function more like Eudora expects anyway.
Basically, I took a look at what qpopper says (I presume that
if anything returns the correct information, it's qpopper) and made
qmail-popup say the same thing (minus strange stuff that I don't
think it supports).
You may want to remove the APOP line if you don't actually
-use- APOP, Other than that, the rest of the commands are supported
by vanilla qmail-popup.
Xi
--- qmail-1.03/qmail-popup.c Mon Jun 15 03:53:16 1998
+++ new-qmail-1.03/qmail-popup.c Thu Dec 10 16:52:59 1998
@@ -155,11 +155,23 @@
*space++ = 0;
doanddie(arg,space - arg,space);
}
+void pop3_capa(arg) char *arg;
+{
+ puts("+OK Capability list follows\r\n");
+ puts("TOP\r\n");
+ puts("UIDL\r\n");
+ puts("LAST\r\n");
+ puts("USER\r\n");
+ puts("APOP\r\n");
+ puts(".\r\n");
+ flush();
+}
struct commands pop3commands[] = {
{ "user", pop3_user, 0 }
, { "pass", pop3_pass, 0 }
, { "apop", pop3_apop, 0 }
+, { "capa", pop3_capa, 0 }
, { "quit", pop3_quit, 0 }
, { "noop", okay, 0 }
, { 0, err_authoriz, 0 }