Zitat von Timo Sirainen <tss@iki.fi>:
doveadm expunge -u user@domain mailbox dovecot-list savedbefore 30d
I'm trying to evaluate this at first with "search" but I'm just getting nothing returned from the command. I've a folder "Test" with many messages in it with the subject "test". I'm running the doveadm search command:
# doveadm -Dv search -u lehmann@ans-netz.de mailbox Test subject 'test'
doveadm(user): Debug: Loading modules from directory: /usr/local/lib/dovecot
doveadm(user): Debug: Module loaded:
/usr/local/lib/dovecot/lib20_expire_plugin.so
doveadm(user): Debug: Loading modules from directory:
/usr/local/lib/dovecot/doveadm
doveadm(user): Debug: Module loaded:
/usr/local/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so
doveadm(user): Debug: Skipping module doveadm_quota_plugin, because
dlopen() failed:
/usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so:
Undefined symbol "quota_user_module" (this is usually intentional, so
just ignore this message)
doveadm(user): Debug: Skipping module doveadm_zlib_plugin, because
dlopen() failed:
/usr/local/lib/dovecot/doveadm/lib10_doveadm_zlib_plugin.so: Undefined
symbol "i_stream_create_deflate" (this is usually intentional, so just
ignore this message)
doveadm(user): Debug: expire: Iterating only a single user, ignoring
expire database
doveadm(lehmann@ans-netz.de): Debug: auth input: lehmann@ans-netz.de
uid=89 gid=89 home=/usr/local/vpopmail/domains/ans-netz.de/lehmann
doveadm(lehmann@ans-netz.de): Debug: Effective uid=89, gid=89,
home=/usr/local/vpopmail/domains/ans-netz.de/lehmann
doveadm(lehmann@ans-netz.de): Debug: maildir++:
root=/usr/local/vpopmail/domains/ans-netz.de/lehmann, index=,
control=, inbox=/usr/local/vpopmail/domains/ans-netz.de/lehmann
#
As you can see - only debug information - no messages listed. Attached you'll find the telnet output to show that there are messages:
# telnet 0 143 Trying 0.0.0.0... Connected to 0. Escape character is '^]'.
- OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE STARTTLS AUTH=PLAIN] Dovecot ready. . login lehmann@ans-netz.de password . OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND
UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1
CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH
LIST-STATUS] Logged in . SELECT "Test" - FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)]
Flags permitted. - 7 EXISTS
- 2 RECENT
- OK [UIDVALIDITY 1294061093] UIDs valid
- OK [UIDNEXT 8] Predicted next UID
- OK [HIGHESTMODSEQ 1] Highest . OK [READ-WRITE] Select completed. . fetch 1:7 (body[header.fields (subject)])
- 1 FETCH (BODY[HEADER.FIELDS (SUBJECT)] {17} Subject: test
)
- 2 FETCH (BODY[HEADER.FIELDS (SUBJECT)] {17} Subject: test
)
- 3 FETCH (BODY[HEADER.FIELDS (SUBJECT)] {17} Subject: test
)
- 4 FETCH (BODY[HEADER.FIELDS (SUBJECT)] {17} Subject: test
)
- 5 FETCH (BODY[HEADER.FIELDS (SUBJECT)] {17} Subject: test
)
- 6 FETCH (BODY[HEADER.FIELDS (SUBJECT)] {17} Subject: test
)
- 7 FETCH (BODY[HEADER.FIELDS (SUBJECT)] {17} Subject: test
) . OK Fetch completed.
This message was sent using IMP, the Internet Messaging Program.