From fbed95fbdf7b393b6986391cb6c8bbf08220fdbd Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 2 Sep 2010 09:52:41 +0200 Subject: [PATCH] Fix bogus console warning message from IMAP offline journal There could be a deleted message in an offline journal in an IMAP account, and while replying such journal the error message was reported to the caller about not being able to find it, and the offline entry wasn't removed. This change ignores the error to be able to get rid of the entry. --- camel/providers/imap/camel-imap-journal.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/camel/providers/imap/camel-imap-journal.c b/camel/providers/imap/camel-imap-journal.c index e939596..b7cc289 100644 --- a/camel/providers/imap/camel-imap-journal.c +++ b/camel/providers/imap/camel-imap-journal.c @@ -328,8 +328,12 @@ imap_entry_play (CamelOfflineJournal *journal, CamelDListNode *entry, GError **e CamelMessageInfo *info; message = camel_folder_get_message (journal->folder, imap_entry->append_uid, error); - if (!message) - return -1; + if (!message) { + /* it seems message gone, just ignore the error and continue; + otherwise the entry would not be removed from the list */ + g_clear_error (error); + return 0; + } info = camel_folder_get_message_info (journal->folder, imap_entry->append_uid); camel_imap_append_resyncing ( -- 2.7.4