Prevent accidental loss of messages when renaming IMAP4 mailboxelmo-imap4-new-search-root
commitedcc89727d8c5f803a05e877da27e6f9c67ac1cf
authordmaus <dmaus>
Sun, 3 Jul 2011 13:28:56 +0000 (3 13:28 +0000)
committerdmaus <dmaus>
Sun, 3 Jul 2011 13:28:56 +0000 (3 13:28 +0000)
tree341925ba2f278a0ebc7585d7fb46c2c650225da7
parent65d05ae772741f600db636fb324c342df5212b3b
Prevent accidental loss of messages when renaming IMAP4 mailbox

* elmo-imap4.el (elmo-imap4-session-unselect-mailbox): New
function. Leave selected state without silent EXPUNGE.
(elmo-folder-rename-internal): Use function.

CLOSE silently triggers EXPUNGE. Use UNSELECT (RFC3691) if the server
supports this extension, otherwise open mailbox read-only
(i.e. EXAMIME) before calling CLOSE.

Ported from branch elmo-imap4-compliance, deal with merge conflicts
later.
NEWS
elmo/ChangeLog
elmo/elmo-imap4.el