From 047bd6e78e58fa139c193b799bf503fb0dd2afee Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 25 Mar 2004 23:02:40 +0000 Subject: If the server is imap.web.de, just ask for all the headers rather than 2004-03-25 Jeffrey Stedfast * providers/imap/camel-imap-folder.c (imap_update_summary): If the server is imap.web.de, just ask for all the headers rather than "HEADER.FIELDS.NOT (RECEIVED)". Actually, maybe we should always just query for the entire header block? (imap_get_message): If the server is brain-damaged (that's a technical term), always fetch the message in whole, never bother to try and fetch partial messages (Courier-IMAP gives us the wrong BODY responses fairly often). * providers/imap/camel-imap-store.c (connect_to_server): Set store->braindamaged to TRUE if we find the string "Courier-IMAP" in the greeting. svn path=/trunk/; revision=25190 --- camel/providers/imap/camel-imap-store.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'camel/providers/imap/camel-imap-store.c') diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index f60b91c683..32bb41179b 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -595,8 +595,13 @@ connect_to_server (CamelService *service, int ssl_mode, int try_starttls, CamelE return FALSE; } + if (!strncmp(buf, "* PREAUTH", 9)) store->preauthed = TRUE; + + if (strstr (buf, "Courier-IMAP")) + store->braindamaged = TRUE; + g_free (buf); /* get the imap server capabilities */ -- cgit v1.2.3