+2001-02-15 Dan Winship <danw@ximian.com>
+
+ * providers/imap/camel-imap-folder.c (fetch_medium): IMAP4
+ (pre-rev1) doesn't allow BODY.PEEK[], so use RFC822.PEEK instead
+ in that case.
+
2001-02-14 Christopher James Lahey <clahey@ximian.com>
* camel-mime-filter-charset.c (complete, filter),
char *result, *p;
CAMEL_IMAP_STORE_LOCK (store, command_lock);
- response = camel_imap_command (store, folder, ex,
- "UID FETCH %s BODY.PEEK[%s]",
- uid, section_text);
+ if (store->server_level < IMAP_LEVEL_IMAP4REV1 && !*section_text) {
+ response = camel_imap_command (store, folder, ex,
+ "UID FETCH %s RFC822.PEEK");
+ } else {
+ response = camel_imap_command (store, folder, ex,
+ "UID FETCH %s BODY.PEEK[%s]",
+ uid, section_text);
+ }
CAMEL_IMAP_STORE_UNLOCK (store, command_lock);
if (!response)
return NULL;