[Dovecot] fixing deleted-to-trash-plugin
Hi,
I'm currently trying to make the deleted-to-trash-plugin work with dovecot v1.2.4, without this plugin the trash mailbox is pretty useless with mail clients like Evolution and Outlook, I still can't believe this functionality isn't intergrated into dovecot since it doesn't even influence the operation of other mail clients that do support this option theirselfs (even when turned on, the plugin detects this and doesn't break the client's functionality).
I have modified the plugin to run without errorsin 1.2.4, when using a mail client which doesn't support this feature in the client itself, (according to my debug and the mail-log plugin output) everything works, but the mails are deleted as expected but not visible in the Trash box, it looks like they where copied to /dev/null :P (even though the log output makes me think otherwise).
Log output: Sep 09 20:21:09 IMAP(xxx@xxx.xxx): Info: opening Trash succeeded Sep 09 20:21:09 IMAP(xxx@xxx.xxx): Info: from INBOX to Trash, previous action from (null) Sep 09 20:21:09 IMAP(xxx@xxx.xxx): Info: copy: uid=11, dest=Trash, msgid=7706BCE6-6882-473C-B7F3-62AE3F75F632@xxx.xxx, size=1718 Sep 09 20:21:09 IMAP(xxx@xxx.xxx): Info: copying to Trash succeeded Sep 09 20:21:09 IMAP(xxx@xxx.xxx): Info: delete: uid=11, msgid=7706BCE6-6882-473C-B7F3-62AE3F75F632@xxx.xxx
The clients I used to test: Evolution and Outlook (they both don't support this feature from the client) and the mail client on an iPhone (which does support this feature, the plugin detects that the client already copied the mail to the Trash box and skips it).
I'm really stuck here :( no errors, the logs tell me everything went fine, but it didn't. The source is attached, any help is greatly appreciated!
Gr, Lex Brugman
On Wed, 2009-09-09 at 20:42 +0200, Lex Brugman wrote:
I'm currently trying to make the deleted-to-trash-plugin work with dovecot v1.2.4, without this plugin the trash mailbox is pretty useless with mail clients like Evolution and Outlook, I still can't believe this functionality isn't intergrated into dovecot
That's because it breaks the normal IMAP way of doing things and I'd hate to use a server with that feature enabled. So sorry, I'm not going to spend any time at all on this feature.
On Sun, 2009-09-13 at 20:49 -0400, Timo Sirainen wrote:
On Wed, 2009-09-09 at 20:42 +0200, Lex Brugman wrote:
I'm currently trying to make the deleted-to-trash-plugin work with dovecot v1.2.4, without this plugin the trash mailbox is pretty useless with mail clients like Evolution and Outlook, I still can't believe this functionality isn't intergrated into dovecot
That's because it breaks the normal IMAP way of doing things and I'd hate to use a server with that feature enabled. So sorry, I'm not going to spend any time at all on this feature.
As an alternative you could try if virtual mailboxes would handle this better. The basic idea would be to create a virtual Trash that contains all messages with \Deleted flag set. Something like:
~/Maildir/virtual/Trash/dovecot-virtual: * deleted
To use actual "Trash" mailbox name, you'd need to create:
namespace private { prefix = Trash. location = virtual:~/Maildir/virtual/Trash hidden = yes subscriptions = no }
You'll need a recent v1.2 to get this working.
On Sun, 13 Sep 2009 20:54:22 -0400, Timo Sirainen tss@iki.fi wrote:
On Sun, 2009-09-13 at 20:49 -0400, Timo Sirainen wrote:
On Wed, 2009-09-09 at 20:42 +0200, Lex Brugman wrote:
I'm currently trying to make the deleted-to-trash-plugin work with dovecot v1.2.4, without this plugin the trash mailbox is pretty useless with mail clients like Evolution and Outlook, I still can't believe this functionality isn't intergrated into dovecot
That's because it breaks the normal IMAP way of doing things and I'd hate to use a server with that feature enabled. So sorry, I'm not going to spend any time at all on this feature.
As an alternative you could try if virtual mailboxes would handle this better. The basic idea would be to create a virtual Trash that contains all messages with \Deleted flag set. Something like:
~/Maildir/virtual/Trash/dovecot-virtual: * deleted
To use actual "Trash" mailbox name, you'd need to create:
namespace private { prefix = Trash. location = virtual:~/Maildir/virtual/Trash hidden = yes subscriptions = no }
You'll need a recent v1.2 to get this working.
Thank you for your answer, unfortunately using a virtual folder as Trash will cause the folder to be empty again after an expunge. ... But I managed to fix the bug myself :-) : the deleted flag wasn't removed after copying the message which caused it to be deleted right after having been copied! (stupid me :P)
I have updated the wiki page: http://wiki.dovecot.org/Plugins/deleted-to-trash and attached the source to it, I hope this will help some other desperate people wanting to use Dovecot but missing this feature. Any feedback is welcome.
Lex Brugman escreveu:
I have updated the wiki page: http://wiki.dovecot.org/Plugins/deleted-to-trash and attached the source to it, I hope this will help some other desperate people wanting to use Dovecot but missing this feature. Any feedback is welcome.
just for curiosity .... the ' ... people wanting to use Dovecot but
missing this feature' called my attention.
This seems, IMHO, more a client-side feature missing than a
server-side one.
is there any other IMAP server with similar 'feature' ??? I have
never seen any .... but i confess i have seen pretty few different imap server running ....
do any other IMAP software daemon (like courier, for example) or any
other full email package (like Zimbra or even Exchange, for example) have this feature in server-side fashion ???
I'm not starting a flame war on this plugin should exist or not,
people should or not using it .... i really just wanna know if any other email systems/IMAP server have this feature for fixing a client-side feature lacking with some server-side workaround.
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
gertrudes@solutti.com.br
My SPAMTRAP, do not email it
This seems, IMHO, more a client-side feature missing than a server-side one. Could be, but this feature/plugin (i'm fine with using a
Leonardo Rodrigues wrote: plugin for this) on the server causes all clients to behave the same way (there are client's lacking this feature and most clients that do support this feature don't have an option to turn it off...), which is worth something :), and a plugin IS optional anyway ;).
is there any other IMAP server with similar 'feature' ??? I have never seen any .... but i confess i have seen pretty few different imap server running ....
do any other IMAP software daemon (like courier, for example) or any other full email package (like Zimbra or even Exchange, for example) have this feature in server-side fashion ??? My previous IMAP server: courier, has this feature, I can't recall the default setting, but it can be turned on and off in the configuration file. And I think the Exchange IMAP connector has this by default as Outlook is their default client, which lacks this feature.
Lex Brugman wrote:
clients like Evolution and Outlook, I still can't believe this functionality isn't intergrated into dovecot That's because it breaks the normal IMAP way of doing things and I'd hate to use a server with that feature enabled. So sorry, I'm not going to spend any time at all on this feature.
For Timo:
I dont know IMAP well and I don
t understand there it breaks normal
IMAP work but then working with damn stupid MUA like Outlook I really
need such feature. I don`t know how it works in Thunderbird but I like a
way it work. Delete to trash - it is a really good behavior for me.
I have updated the wiki page: http://wiki.dovecot.org/Plugins/deleted-to-trash and attached the source to it, I hope this will help some other desperate people wanting to use Dovecot but missing this feature. Any feedback is welcome.
So thank you Lex I will test it then upgrade to 1.2.
-- Best regards, Proskurin Kirill
participants (4)
-
Leonardo Rodrigues
-
Lex Brugman
-
Proskurin Kirill
-
Timo Sirainen