viewmail-info
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Uday Reddy
Subject: Re: [VM] Why is vm closing imap session on each vm-get-new-mail?
Date: Wed, 16 Aug 2017 16:03:04 +0100

address@hidden 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]