Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [VM] Why is vm closing imap session on each vm-get-new-mail?

2 views
Skip to first unread message

Uday Reddy

unread,
Aug 16, 2017, 11:05:35 AM8/16/17
to ma...@kermodei.com, vm
ma...@kermodei.com writes:

>
> Does anyone know why vm-imap closes sessions after retrieving
> mail? The "The IMAP session protocol" section in vm-imap.e
> describes this but doesn't indicate the motivation. There is
> also some discusion in the "The IMAP sessions work as follows"
> indicates this is because another connection may have deleted
> messages.

VM uses message numbers to interact with the IMAP server rather than UIDs,
because they are generally faster. But message numbers can get invalidated
under certain operations (whether they actually get invalidated or not
depends on the server). So, whenever that happens, VM has to reload the
message list (which takes time).

I have noticed that the IMAP servers as well as the network itself are
getting slower and slower over time. Perhaps it is time to rethink the old
decisions.

> I have changed calls to vm-establish-new-folder-imap-session to
> vm-re-establish-folder-imap-session and all seems to work fine
> and it's much faster.

It can lead to corruption or message loss by using out-of-date message
numbers. So definitely a bad idea!

Cheers,
Uday

0 new messages