cyrus-imapd expunging on delete

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

 



Hi all,

I was wondering why my mails vanished as soon as I marked them as deleted, even though I have "show deleted messages" set in my MUA.
The logs show "Expunged 1 messages from user.myuser" as soon as I delete the mail.

Now at first I thought this was some MUA issue but deleting the mail manually in an imap session shows the same behaviour. Let's take this mail "2189" for example:

> . search unseen
> * SEARCH 2189
> . OK Completed (1 msgs in 0.000 secs)
>
> . fetch 2189 (flags)
> * 2189 FETCH (FLAGS (\Seen))
> . OK Completed (0.000 sec)

Now I mark it as deleted, which should only set the flag without expunging the mail:

> . store 2189 +flags \deleted
> * 2189 FETCH (FLAGS (\Deleted \Seen))
> . OK Completed

Alas, at this point I already see "imaps: Expunged 1 messages from user.myuser" in the logs. I would have expected this behaviour if "autoexpunge" was set (even though I did not close the index yet), but that's not the case.

The mail is still flagged as \Deleted as the index is still open:

> . fetch 2189 (flags)
> * 2189 FETCH (FLAGS (\Deleted \Seen))
> . OK Completed (0.001 sec)

Once I issue a noop or change the folder forth and back:

> . noop
> * 2189 EXPUNGE
> . OK Completed

(or)

> . select someotherfolder
> * OK [CLOSED] Ok
> . select INBOX
> * OK [CLOSED] Ok

the mail is gone:

> . fetch 2189 (flags)
> . NO No matching messages (0.000 sec)

Why is this? I even tried explicitly setting "autoexpunge: no", which changed nothing.

This is my config:

admins: cyrus
servername: myservername
postmaster: postmaster
serverinfo: min

sasl_mech_list: login plain
sasl_pwcheck_method: auxprop


defaultdomain: mydomain.exmaple
partition-default: /var/spool/imap
hashimapspool: yes
tcp_keepalive: 1
tcp_keepalive_idle: 600
sieve_maxscripts: 20
unixhierarchysep: no
statuscache: yes

autoexpunge: no
expunge_mode: delayed
delete_mode: delayed

autocreate_inbox_folders: Archives | Drafts | Sent | Junk | Trash | Learn Ham | Learn Spam
conversations: yes
conversations_db: twoskip
search_engine: xapian
search_index_headers: no
search_batchsize: 8192
defaultsearchtier: t1
t1searchpartition-default: /var/spool/imap-search

sasl_auxprop_plugin: sql
# sasl_sql_* settings stripped

sync_log: yes
sync_log_channels: backup replica squatter
# backup_sync_* settings stripped
# replica_sync_* settings stripped
# tls_* settings stripped
# path settings stripped


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]
  Powered by Linux