On 3 Oct 2018, at 9.03, Chris <chris2...@postbox.xyz> wrote: > > On Tue, 2 Oct 2018 18:04:21 +0200 > Chris wrote: > >> Is this because the mailbox is >> part of public namespace? > > Or are they expunged because they're duplicates? Is there any check? > Based on Message ID?
No.. None of this makes sense. Dovecot doesn't auto-expunge \Deleted mails in any situation. I see your tool says: parser.add_option("", "--no-close", dest='no_close', action="store_true", help='Do not "close" mailbox when done. Some servers will purge deleted messages on a close command.') If it's sending CLOSE, that explains it. It's not just "some servers", it's all IMAP servers. There's UNSELECT command to close without expunging.