aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-store.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-03-26 07:02:40 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-03-26 07:02:40 +0800
commit047bd6e78e58fa139c193b799bf503fb0dd2afee (patch)
tree37ad2b981cf03e62cba3a69c70b5f2881367a5b4 /camel/providers/imap/camel-imap-store.c
parentfdb168db90c81b4feca1bd99b139feaebb59f2f9 (diff)
downloadgsoc2013-evolution-047bd6e78e58fa139c193b799bf503fb0dd2afee.tar
gsoc2013-evolution-047bd6e78e58fa139c193b799bf503fb0dd2afee.tar.gz
gsoc2013-evolution-047bd6e78e58fa139c193b799bf503fb0dd2afee.tar.bz2
gsoc2013-evolution-047bd6e78e58fa139c193b799bf503fb0dd2afee.tar.lz
gsoc2013-evolution-047bd6e78e58fa139c193b799bf503fb0dd2afee.tar.xz
gsoc2013-evolution-047bd6e78e58fa139c193b799bf503fb0dd2afee.tar.zst
gsoc2013-evolution-047bd6e78e58fa139c193b799bf503fb0dd2afee.zip
If the server is imap.web.de, just ask for all the headers rather than
2004-03-25 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'camel/providers/imap/camel-imap-store.c')
-rw-r--r--camel/providers/imap/camel-imap-store.c5
1 files changed, 5 insertions, 0 deletions
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 */