VM

vm-list-imap-folders slow

Bug #909773 reported by Uday Reddy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Triaged
Medium
Uday Reddy

Bug Description

vm-list-imap-folders is rather slow because the IMAP servers don't execute STATUS commands quickly.

Redo it with only the names of the folders listed, except when a prefix argument is given.

Tags: imap new

Related branches

Revision history for this message
Uday Reddy (reddyuday) wrote :

Other possibilities:

- Use a subscription list, to select the folders to be listed.

- Try the EXAMINE command on the server.

Revision history for this message
Uday Reddy (reddyuday) wrote :

Konrad Hinsen:

 > IMAP provides a "LIST" command which is required to be fast but doesn't give
 > the status of the folders, and a separate "STATUS" command which is allowed
 > to be slow and has to be queried individually for each folder. I would
 > expect that many IMAP implementations take it to be a license for being as
 > slow as possible.

I doubt it's a server problem, because Mulberry scans my 395 mailboxes
much faster then vm-list-imap-folders. Another candidate for
explaining the difference is threads: Mulberry runs multiple threads
that do IMAP requests in parallel.

Revision history for this message
Uday Reddy (reddyuday) wrote :

> I doubt it's a server problem, because Mulberry scans my 395 mailboxes
> much faster then vm-list-imap-folders. Another candidate for
> explaining the difference is threads: Mulberry runs multiple threads
> that do IMAP requests in parallel.

That kind of proves my point. Because IMAP servers do such a bad job,
Mulberry is having to beat them into shape by issuing multiple parallel
requests. Of course, on an overloaded IMAP server, that would achieve
nothing.

If you have a way of finding out what requests Mulberry is issuing, I can
try and duplicate that. I have had it in my mind to try out the EXAMINE
command instead of the STATUS command. It is counter-intuitive for EXAMINE
to be faster than STATUS, but who knows?

> My personal workaround is a specialized version of
> vm-list-imap-folders that checks only the folders to which messages
> can be delivered. That's only 20 out of 395, and speed is no longer a
> problem. Which points of course to the strong point of VM: it's a
> fully scriptable mail reader. Even if something is not perfect, you
> can at least work around it.

I might also try and implement a "subscription" feature so that we don't
have to look at all the folders.

Cheers,
Uday

Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.2.0 → 8.2.90a
Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.2.90a → 8.2.89a
Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.2.89a → 8.2.0
no longer affects: vm/8.2.x
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.