From: dave@bfnet.com To: Russell Nelson Subject: Re: PATCH: make qmail-popup recognize CAPA keyword Date: 14 Dec 1998 12:07:12 -0800 Russell> Can I put a copy of this on www.qmail.org or do you have it Russell> published somewhere already? Not published anywhere but on the qmail list. Please feel free to put a copy on www.qmail.org. Dave ---------------------------------------------------------------- There is a new extension to the pop3 protocol that the beta versions of Eudora are wielding against my servers: the "CAPA" keyword. Basically, the client says "CAPA" and the server has to reply with something like: +OK Capability list follows APOP . There can be other capabilities, I guess, but the only one I care about is APOP. Appended is a totally minimal patch to make qmail-popup reply with a totally minimal capabilities list when hit with the "CAPA" keyword. Dave --- 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,19 @@ *space++ = 0; doanddie(arg,space - arg,space); } +void pop3_capa(arg) char *arg; +{ + puts("+OK Capability list follows\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 }