From 6a2c137ecb099e9f9bcaaf0c88cd654dd3de8df5 Mon Sep 17 00:00:00 2001 From: Bron Gondwana Date: Wed, 24 Dec 2008 23:30:38 +1100 Subject: [PATCH] Mailwasher bug workaround. The program MailWasher (http://www.mailwasher.net/) has a bug where it can't handle getting the CAPABILITY response when it didn't ask for it (i.e. in response to a successful login) This patch removes that information. Clients will fall back to asking for it if they want it anyway. --- imap/imapd.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/imap/imapd.c b/imap/imapd.c index c3bc97c..f20b40c 100644 --- a/imap/imapd.c +++ b/imap/imapd.c @@ -2196,9 +2196,7 @@ void cmd_login(char *tag, char *user) /* authstate already created by mysasl_proxy_policy() */ imapd_userisadmin = global_authisa(imapd_authstate, IMAPOPT_ADMINS); - prot_printf(imapd_out, "%s OK [CAPABILITY ", tag); - capa_response(CAPA_PREAUTH|CAPA_POSTAUTH); - prot_printf(imapd_out, "] %s\r\n", reply); + prot_printf(imapd_out, "%s OK %s\r\n", tag, reply); /* Create telemetry log */ imapd_logfd = telemetry_log(imapd_userid, imapd_in, imapd_out, 0); -- 1.5.6.5