[Dovecot] How about a "pipe" plugin?

Nicolas Boullis nicolas.boullis at ecp.fr
Thu May 24 00:02:20 EEST 2007


Hi,

I have written a plugin so that each time a message is added to a  
specific box, a program is run and the message is piped into it. Note  
that the message is also really added to the box.

I've been using it for nearly 3 month, for spam/ham learning, and have  
not had any problem with it. I guess it could also be used to  
implement an out box (I remember seeing someone asking for such a  
feature on this list). Currently, I use it with a config like this:

(...)
namespace private {
    separator = .
    location = maildir:/var/mail/%u
    inbox = yes
    hidden = no
}

namespace public {
    separator = .
    prefix = learn.
    location = maildir:/var/learn/%u
    inbox = no
    hidden = no
}
(...)
plugin {
(...)
   pipe = /var/learn/%u/.spam:spamc -d some.host -L spam
   pipe2 = /var/learn/%u/.ham:spamc -d some.host -L ham
(...)
}


Would people be interested by such a feature? If enough people show  
some interest, I can try to convince my boss to let me release this  
plugin GPL-licensed.


Cheers,

Nicolas Boullis



More information about the dovecot mailing list