After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680744 - IMAP: Does not update folder structure
IMAP: Does not update folder structure
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
3.6.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[imap]
Depends on:
Blocks:
 
 
Reported: 2012-07-28 11:40 UTC by Fabien Tassin
Modified: 2013-09-14 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
eds patch (1015 bytes, patch)
2012-08-17 13:02 UTC, Milan Crha
committed Details | Review

Description Fabien Tassin 2012-07-28 11:40:19 UTC
using git/master, I see a bunch of IMAP logs in the console during each update.

(evolution:18074): evolution-mail-WARNING **: Failed to refresh folders: IMAP command failed: Mailbox does not exist, or must be subscribed to.

it's not clear what it is about, esp without seeing the folder names.

Breakpoint 1, g_log (log_domain=log_domain@entry=0xae7b0ff9 "evolution-mail", 
    log_level=log_level@entry=G_LOG_LEVEL_WARNING, 
    format=format@entry=0xae7c0765 "Failed to refresh folders: %s")
    at /build/buildd/glib2.0-2.33.6/./glib/gmessages.c:788
788	in /build/buildd/glib2.0-2.33.6/./glib/gmessages.c
(gdb) bt
  • #0 g_log
    at /build/buildd/glib2.0-2.33.6/./glib/gmessages.c line 788
  • #1 refresh_folders_exec
    at mail-send-recv.c line 1045
  • #2 mail_msg_proxy
    at mail-mt.c line 423
  • #3 g_thread_pool_thread_proxy
    at /build/buildd/glib2.0-2.33.6/./glib/gthreadpool.c line 309
  • #4 g_thread_proxy
    at /build/buildd/glib2.0-2.33.6/./glib/gthread.c line 801
  • #5 start_thread
    at pthread_create.c line 308
  • #6 clone
    at ../sysdeps/unix/sysv/linux/i386/clone.S line 130

Comment 1 Fabien Tassin 2012-08-09 19:53:19 UTC
I patched evo locally to include camel_folder_get_full_name (folder) in the warning: it seems it happens for stuff i re-organized a long time ago (like a folder renamed, or split in two), or for branch nodes in the folder tree (like if i have Lists/foo and Lists/bar, I have to subscribe to Lists in evo otherwise foo and bar are greyed out, but Lists alone doesn't exist server side).

Also, the problem is when I go to the Subscriptions dialog, old names keep appearing, even after a refresh.

(My imap server is Courier-imap)
Comment 2 Fabien Tassin 2012-08-10 13:06:21 UTC
To clarify the previous comment.

I use procmail to split my incoming emails.

So if i'm subscribed to some mailing lists, say "foo" and "bar", and I want them stored in IMAP folders named "Lists/foo/" and "Lists/bar/", I write this in my procmailrc to go to respectively ".Lists.foo/ and ".Lists.bar/".
This means that ".Lists/" itself doesn't exist server side (it's a node in the imap tree, but it doesn't have any email directly in it).

But in evolution, when I browse the folders tree, "Lists" is listed and I have to subscribe to it in order to be able to subscribe to its sub-folders "Lists/foo" and "Lists/bar".
In the end, evolution complains that "Lists" "does not exist, or must be subscribed to".
And as I have a lot of such folders, my logs are flooded by those warnings.
Comment 3 Milan Crha 2012-08-10 13:14:55 UTC
Thanks for the clarification. As we spoke on IRC, the errors are emitted on these "virtual" folders, and on renamed folders. As you said, rename folder on one machine, evolution finds the new folder on the other machine, but it doesn;t remove the removed (the old-named) folder from its cache, and then claims on the old-named folder. This is with IMAP provider (not imapx).
Comment 4 Milan Crha 2012-08-17 12:49:05 UTC
Confirming, I can reproduce this with server-side renamed folder. I'm not sure how with the "virtual" folders, the error message can be correct, as it seems to be returned from the server.
Comment 5 Milan Crha 2012-08-17 13:02:46 UTC
Created attachment 221599 [details] [review]
eds patch

for evolution-data-server;

This makes folder structure update on IMAP server with IMAP provider work again, the problem was with "check in all namespaces", if one namespace failed, the update of folder structure was discarded completely, even other namespaces could get list of folders. If you ever saw in a log "LIST failed: wildcards not permitted in username", then that's the one who caused it (beside that it's after my change).
Comment 6 Milan Crha 2012-08-17 13:04:00 UTC
Created commit 5dbeb5d in eds master (3.5.90+)