Doh. Don't remove things from the hash table while foreach'ing it. (And
authorDan Winship <danw@src.gnome.org>
Tue, 3 Jul 2001 15:24:55 +0000 (15:24 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 3 Jul 2001 15:24:55 +0000 (15:24 +0000)
commiteb26af29fb01d483c822064847f3765d39bf6ae7
tree4e483704387fd59e1d29a8b2f65a2863b215ab9c
parentd507215aadc398461e213f1d77c769b064723788
Doh. Don't remove things from the hash table while foreach'ing it. (And

* providers/imap/camel-imap-message-cache.c
(camel_imap_message_cache_clear): Doh. Don't remove things from
the hash table while foreach'ing it. (And can't use foreach_remove
either because we have to remove them in a weird order). Fixes
#3618.

* providers/imap/camel-imap-folder.c (imap_get_message): If the
server returns OK from the FETCH BODY, but there's no parseable
BODY response, it's probably because there's an UN-parseable BODY
response, implying the message is badly formatted, MIMEwise. In
that case, fall back to fetching the message as a single part.
camel/ChangeLog
camel/providers/imap/camel-imap-folder.c
camel/providers/imap/camel-imap-message-cache.c