Prevent accidental loss of messages when renaming IMAP4 mailbox
authordmaus <dmaus>
Sun, 3 Jul 2011 13:28:56 +0000 (13:28 +0000)
committerdmaus <dmaus>
Sun, 3 Jul 2011 13:28:56 +0000 (13:28 +0000)
commitc21d060e5b2b1749993df4345532d87a675f97bf
treec5c1274c74866b78f57f114e99066e814a06dfc8
parent4c1dcabda301fd3fa7d4421e7c1a6079f92e621f
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