[Dovecot] IMAP and sieve
moozer
bigmoozer at gmail.com
Mon Dec 19 11:56:57 EET 2011
On 2011-12-19 10:45, Stephan Bosch wrote:
> On 12/19/2011 10:27 AM, moozer wrote:
>> I am currently setting up an IMAP server for archiving purposes. The
>> goal is to drag an email to the IMAP folder, and then have a server-side
>> sieve script to put it in the right folder.
> [...]
>> I notice this part:
>> "plugin is intended to be used only by binaries: lda lmtp (we're imap)"
>>
>> So the question is if it is possible to run sieve server-side sieve
>> scripts on emails copied using IMAP.
>
> Not directly. There is some standardization effort done to achieve
> something like that:
>
> http://tools.ietf.org/html/draft-ietf-sieve-imap-sieve-02
>
> But this is not implemented so far.
>
This is the exact thing I was looking for. Too bad that I am ahead of my
time :-)
>> Suggestions are most welcome.
>
> What you can do is run the Sieve filter in some (in)cron job (or by
> means of some other trigger). For Dovecot v2.1 there is now a special
> sieve-filter command line tool to perform the filtering on a folder.
> However, it is not released yet.
>
> For older Dovecot versions you can use this recipe to re-filter mail:
>
> http://wiki2.dovecot.org/HowTo/RefilterMail
>
At first glance it looks like using dovecot as a generic IMAP server,
fetch mail, run filters and ask the IMAP server to move the mail.
It could work also.
> Regards,
>
> Stephan.
>
>
Thank you for a good answer.
I will reevaluate my plan based on this.
moozer
More information about the dovecot
mailing list