Roger Binns
2007-Jun-09 21:23 UTC
[Dovecot] lazy_expunge and emails from Inbox, doesn't list INBOX in deleted
I'm using the dovecot available on Ubuntu Feisty (1.0rc17) and am trying
to migrate from courier-imap. A really important feature for me from
courier is that expunged messages end up in Trash where they are removed
after 7 days.
I can get an approximation of this feature as described in the
documentation:
namespace private {
prefix = INBOX.
seperator = .
inbox = yes
}
namespace private {
prefix = DELETED.
seperator = .
location = maildur:~/Maildir/deleted
}
lazy_expunge = DELETED. DELETED. DELETED.
This all works fine except for messages that were deleted from the
Inbox. They do end up in the right place (~/Maildir/deleted/cur) but
that location is not listed as a subscribable folder.
Here you can see that deleted messages from my ciontope folder show up,
but not the inbox.
a LIST "DELETED." *
* LIST (\HasNoChildren) "." "DELETED.ciontope"
a OK List completed.
You can't examine the namespace itself:
a EXAMINE DELETED
a NO Unknown namespace.
a EXAMINE DELETED.
a NO Invalid mailbox name
But the folder does exist:
a EXAMINE DELETED.INBOX
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 4 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1181423860] UIDs valid
* OK [UIDNEXT 5] Predicted next UID
a OK [READ-ONLY] Select completed.
Is there any way to convince dovecot to list DELETED.INBOX so that
clients can see it an subscribe to it?
Roger
Timo Sirainen
2007-Jun-10 19:28 UTC
[Dovecot] lazy_expunge and emails from Inbox, doesn't list INBOX in deleted
On Sat, 2007-06-09 at 14:23 -0700, Roger Binns wrote:> namespace private { > prefix = DELETED. > seperator = . > location = maildur:~/Maildir/deletedinbox = no> }Does that help?> lazy_expunge = DELETED. DELETED. DELETED.Have you tried what happens if you try to expunge mails from DELETED.mailbox? When I wrote the code I assumed all those namespaces would be different. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070610/a97400d5/attachment-0002.bin>
Roger Binns
2007-Jun-10 22:13 UTC
[Dovecot] lazy_expunge and emails from Inbox, doesn't list INBOX in deleted
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Timo Sirainen wrote:> On Sat, 2007-06-09 at 14:23 -0700, Roger Binns wrote: >> namespace private { >> prefix = DELETED. >> seperator = . >> location = maildur:~/Maildir/deleted > > inbox = no > >> } > > Does that help?Nope. However I have a disgusting workaround :-) In Maildir/deleted I create .INBOX/ and within that directory I then symlink cur/new/tmp to Maildir/deleted/{cur/new/tmp}. Everything works fine and the correct content is shown. I am patiently waiting for the day when courier style Trash is implemented :-)> >> lazy_expunge = DELETED. DELETED. DELETED. > > Have you tried what happens if you try to expunge mails from > DELETED.mailbox? When I wrote the code I assumed all those namespaces > would be different.It works fine. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGbHefmOOfHg372QQRAoFmAKCKINGfDFMUCHoCELSYv37D4iLtzgCgrfNy lqr8lHaB8D6HCKu7e4iGFnk=lGUG -----END PGP SIGNATURE-----
Charles Marcus
2007-Jun-11 10:42 UTC
[Dovecot] lazy_expunge and emails from Inbox, doesn't list INBOX in deleted
On 6/9/2007, Roger Binns (rogerb at rogerbinns.com) wrote:> namespace private { > prefix = DELETED. > seperator = . > location = maildur:~/Maildir/deleted > }Curious... was this copy/pasted from dovecot -n output? Or was that last line misspelling of 'maildur' a typo? Just one reason why copy/pasted output of dovecot -n is preferred... -- Best regards, Charles