Sven Hartge sven@svenhartge.de wrote:
Robert Schetterer robert@schetterer.org wrote:
Am 24.08.2012 15:13, schrieb Sven Hartge:
Is is possible to forcibly expunge a message at once, directly after a client has marked it as deleted? Kind of the opposite of the lazy_expunge plugin?
hm perhaps as workaround
http://wiki2.dovecot.org/Plugins/deleted-to-trash and do often http://wiki2.dovecot.org/Plugins/Expire via cron i.e doveadm expunge -A mailbox Trash savedbefore 1h
I stumbled upon deleted_to_trash 5 minutes ago. This could work, if the code still works with dovecot 2.1.
Nope, does not compile (dovecot-dev headers are installed):
cc
-fPIC -shared -Wall
-I/usr/include/dovecot
-I/usr/include/dovecot/src
-I/usr/include/dovecot/src/lib
-I/usr/include/dovecot/src/lib-storage
-I/usr/include/dovecot/src/lib-mail
-I/usr/include/dovecot/src/lib-imap
-I/usr/include/dovecot/src/lib-index
-DHAVE_CONFIG_H
deleted-to-trash-plugin.c -o lib_deleted_to_trash_plugin.so
deleted-to-trash-plugin.c: In function ‘mailbox_open_or_create’:
deleted-to-trash-plugin.c:79: error: ‘MAILBOX_FLAG_KEEP_RECENT’ undeclared (first use in this function)
deleted-to-trash-plugin.c:79: error: (Each undeclared identifier is reported only once
deleted-to-trash-plugin.c:79: error: for each function it appears in.)
deleted-to-trash-plugin.c: In function ‘copy_deleted_mail_to_trash’:
deleted-to-trash-plugin.c:136: warning: passing argument 1 of ‘mailbox_keywords_unref’ from incompatible pointer type
/usr/include/dovecot/mail-storage.h:612: note: expected ‘struct mail_keywords **’ but argument is of type ‘struct mailbox *’
deleted-to-trash-plugin.c:136: error: too many arguments to function ‘mailbox_keywords_unref’
make: *** [lib_deleted_to_trash_plugin.so] Error 1
Grüße, Sven.
-- Sigmentation fault. Core dumped.