aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/imap.c b/imap.c
index 53474924..54309f7d 100644
--- a/imap.c
+++ b/imap.c
@@ -478,6 +478,15 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
*/
ok = PS_AUTHFAIL;
+ /* Yahoo hack - we'll just try ID if it was offered by the server,
+ * and IGNORE errors. */
+ {
+ char *tmp = strstr(capabilities, " ID");
+ if (tmp && !isalnum(tmp[3]) && strstr(ctl->server.via ? ctl->server.via : ctl->server.pollname, "yahoo.com")) {
+ (void)gen_transact(sock, "ID (\"guid\" \"1\")");
+ }
+ }
+
if ((ctl->server.authenticate == A_ANY
|| ctl->server.authenticate == A_EXTERNAL)
&& strstr(capabilities, "AUTH=EXTERNAL"))