[Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

2008-03-20 Thread Jan Oravec
Hi, Some email clients, like Evolution, use IMAP keywords to flag spam instead of moving mail to dedicated spam mailbox. This is very useful, as false positives can be easily "moved" to original mailbox simply by removing $Junk keyword. I couldn't find a way how to integrate antispam software, l

Re: [Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

2008-03-20 Thread Charles Marcus
On 3/20/2008 7:23 AM, Jan Oravec wrote: Some email clients, like Evolution, use IMAP keywords to flag spam instead of moving mail to dedicated spam mailbox. This is very useful, as false positives can be easily "moved" to original mailbox simply by removing $Junk keyword. Thunderbird does this

Re: [Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

2008-03-20 Thread Johannes Berg
Hi Jan, > Some email clients, like Evolution, use IMAP keywords to flag spam > instead of moving mail to dedicated spam mailbox. This is very useful, > as false positives can be easily "moved" to original mailbox simply by > removing $Junk keyword. Interesting idea, but the keyword my evolution u

Re: [Dovecot] Rootless installation gets ssl-parameters.dat errors

2008-03-20 Thread Timo Sirainen
On Wed, 2008-03-19 at 09:12 -0700, Daniel Bretoi wrote: > It would be useful to be able to run Dovecot rootless without having > to make your own build. Also, the location of the ssl-parameters.dat > would change per user since it's in a sandbox environment for us. I think one of the reasons

Re: [Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

2008-03-20 Thread Jef Driesen
Jan Oravec wrote: Some email clients, like Evolution, use IMAP keywords to flag spam instead of moving mail to dedicated spam mailbox. This is very useful, as false positives can be easily "moved" to original mailbox simply by removing $Junk keyword. I couldn't find a way how to integrate antisp

Re: [Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

2008-03-20 Thread Jan Oravec
Hi Johannes, > Interesting idea, but the keyword my evolution uses seems to be "Junk", > not "$Junk". You are right, I didn't checked it and copied "$Junk" from http://wiki.dovecot.org/MailboxFormat/Maildir > There isn't really, without some work. I have just committed this patch: > http://git

Re: [Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

2008-03-20 Thread Johannes Berg
Hi, > I guess that in need_keyword_hook case save_init/save_finish hooks will > have to check email for spams and keyword it. It is not clear how to > mark mail as spam if both need_folder_hook and need_keyword_hook are > true. Well, the need_keyword_hook variable is just internal. The point is t

Re: [Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

2008-03-20 Thread Timo Sirainen
On Thu, 2008-03-20 at 15:16 +0100, Johannes Berg wrote: > The thing is that I don't know what context the update_keywords function > runs in and whether it has a transaction at all, so I don't know how to > roll back. I suppose it would be possible to grab the original keyword > list before invoki

Re: [Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

2008-03-20 Thread Johannes Berg
> I haven't looked at your code, but struct mail always has a transaction > (mail->transaction). You could fail the transaction by hooking into > transaction_commit and calling rollback if your internal failure-flag > was set. > But that sounds a bit extreme. Indeed. But I suppose if I always ha

Re: [Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

2008-03-20 Thread Jan Oravec
> > I guess that in need_keyword_hook case save_init/save_finish hooks will > > have to check email for spams and keyword it. It is not clear how to > > mark mail as spam if both need_folder_hook and need_keyword_hook are > > true. > > Well, the need_keyword_hook variable is just internal. The poi

Re: [Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

2008-03-20 Thread Jan Oravec
> But that sounds a bit extreme. Aren't you just adding/removing a single > keyword? If so, you can use mail_update_keywords() to just add/remove > that without reading/touching other keywords. Wouldn't it make a difference to mail client (silent fail instead of reported fail)? signature.asc De

Re: [Dovecot] Rootless installation gets ssl-parameters.dat errors

2008-03-20 Thread Daniel Bretoi
On Mar 20, 2008, at 5:53 AM, Timo Sirainen wrote: On Wed, 2008-03-19 at 09:12 -0700, Daniel Bretoi wrote: It would be useful to be able to run Dovecot rootless without having to make your own build. Also, the location of the ssl-parameters.dat would change per user since it's in a sandbox env

[Dovecot] Is there a way to avoid deletion in a folder?

2008-03-20 Thread Fábio M. Catunda
Hi, I would like to know if it's possible to avoid message deletion in a specific folder. I'm using lazy-expunge like a Trash folder and I don't want the user to enter there and try to erase the message again. Any help is appreciated. Thanks.

Re: [Dovecot] Is there a way to avoid deletion in a folder?

2008-03-20 Thread Fábio M. Catunda
Sorry, I forgot to send some installation informations: dovecot version: 1.0.13 storage format: maildir Fábio M. Catunda escreveu: Hi, I would like to know if it's possible to avoid message deletion in a specific folder. I'm using lazy-expunge like a Trash folder and I don't want the user

Re: [Dovecot] Is there a way to avoid deletion in a folder?

2008-03-20 Thread Anders
Fábio M. Catunda wrote: I would like to know if it's possible to avoid message deletion in a specific folder. You can make that with access control, see http://wiki.dovecot.org/ACL Anders.

[Dovecot] IMAP creates .userid directory even after pop.

2008-03-20 Thread Jorgen Lundman
We are currently running dovecot-1.0.10 on Solaris 10 x86. Several users has noticed that they get different emails when using pop vs using IMAP. When I check a user's home directory, I find the following situation: /nfs/mail/1/1/hiro.11/mail/: drwx-- 6 176785 1000 512 Mar 2