[Dovecot] Howto make deleted itens visible to users?
Hi!
I'm using lazy_expunge to backup that are deleted/expunged, but I would like it to be visible to the user.
I tried something like: namespace private { prefix = .EXPUNGED/ separator = / location = maildir:~/Maildir/.Apagadas } namespace private { prefix = .DELETED/ separator = / location = maildir:~/Maildir/.Apagadas } namespace private { prefix = .DELETED/.EXPUNGED/ separator = / location = maildir:~/Maildir/.Apagadas/ }
But neither OE nor TB shows the messages. (yes, i subscribed the ".Apagadas" maildir).
Anybody can give me this little tip?
Thanks a lot.
[]'s, Catunda!
!DSPAM:46f1105715318362916074!
On Wed, 2007-09-19 at 09:05 -0300, "Fábio M. Catunda" wrote:
Hi!
I'm using lazy_expunge to backup that are deleted/expunged, but I would like it to be visible to the user.
I tried something like: namespace private { prefix = .EXPUNGED/ separator = / location = maildir:~/Maildir/.Apagadas }
I guess ~/Maildir is visible in default namespace? You shouldn't do that. The locations should be different for each of these namespaces and they shouldn't be visible in other namespaces.
The clients would see them under ".EXPUNGED" mailbox. You may want to change that prefix to something else, like "Expunged messages/". Also since you're using '/' separator here, you must be using '/' separator in your default namespace as well. If you aren't, change the separator in these namespaces also, and use a prefix such as "Expunged messages.".
Thanks for your replay Timo!
What I realy would like is to have a single folder like "Deleted Messages" or something else where all deleted messages go to.
But I imagine that its not possible couse a maildir cant have messages and folders inside it, right? So, if the user deletes an imap folder it must go to a different location than deleted messages. I'm not pretty sure about that, but I have been reading a bit and I belive that its true.
Anyway, is there a way to have all deleted messages in one folder, even it it have been deleted from another folder, something like:
/INBOX /DRAFTS/ /NAGIOSWARNINGS/ /Message1 /Message2 /Message3 /Deleted/
When I delete Message1 it goes to /Deleted When I delete NAGIOSWARNINS, then Message1, Message2 and Message3 gost to /Deleted. If I delete an empty folder it goes to /dev/null :-)
Thankz a lot and sorry about my poor english!
Timo Sirainen wrote:
On Wed, 2007-09-19 at 09:05 -0300, "Fábio M. Catunda" wrote:
Hi!
I'm using lazy_expunge to backup that are deleted/expunged, but I would like it to be visible to the user.
I tried something like: namespace private { prefix = .EXPUNGED/ separator = / location = maildir:~/Maildir/.Apagadas }
I guess ~/Maildir is visible in default namespace? You shouldn't do that. The locations should be different for each of these namespaces and they shouldn't be visible in other namespaces.
The clients would see them under ".EXPUNGED" mailbox. You may want to change that prefix to something else, like "Expunged messages/". Also since you're using '/' separator here, you must be using '/' separator in your default namespace as well. If you aren't, change the separator in these namespaces also, and use a prefix such as "Expunged messages.".
!DSPAM:46f596af81761392120616!
Thanks for your replay Timo!
What I realy would like is to have a single folder like "Deleted Messages" or something else where all deleted messages go to.
But I imagine that its not possible couse a maildir cant have messages and folders inside it, right? So, if the user deletes an imap folder it must go to a different location than deleted messages. I'm not pretty sure about that, but I have been reading a bit and I belive that its true. Where did you get that from? Certainly you can. Assuming your mail client uses a trash can, deleting folders will move those folders (and
Fábio M. Catunda wrote: their messages) into the trash can as subfolders. If you can have /INBOX/Folder1/Folder2 - there's no difference with /TRASH/Folder1/Folder2. Delete behavior is specified by the client - not the server.
Daniel L. Miller escreveu:
Thanks for your replay Timo!
What I realy would like is to have a single folder like "Deleted Messages" or something else where all deleted messages go to.
But I imagine that its not possible couse a maildir cant have messages and folders inside it, right? So, if the user deletes an imap folder it must go to a different location than deleted messages. I'm not pretty sure about that, but I have been reading a bit and I belive that its true. Where did you get that from? Certainly you can. Assuming your mail client uses a trash can, deleting folders will move those folders (and
Fábio M. Catunda wrote: their messages) into the trash can as subfolders. If you can have /INBOX/Folder1/Folder2 - there's no difference with /TRASH/Folder1/Folder2. Delete behavior is specified by the client - not the server.
So why do I need 3 different folders for lazy_expunge? I realy prefer to send all messages and folders (deleted or expunged) to the same folder, is that possible?
Thanks a lot.
!DSPAM:46f7fc9c117086491211187!
On Mon, 2007-09-24 at 15:07 -0300, "Fábio M. Catunda" wrote:
So why do I need 3 different folders for lazy_expunge? I realy prefer to send all messages and folders (deleted or expunged) to the same folder, is that possible?
Well, looks like it's possible to have all of the 3 point to same namespace, but it's not possible to have all expunged messages go to a single mailbox. lazy_expunge just wasn't designed to work like that.
participants (3)
-
"Fábio M. Catunda"
-
Daniel L. Miller
-
Timo Sirainen