Valery V. Sedletski
2013-Feb-26 13:20 UTC
[Dovecot] Sieve filters on folders, different from INBOX
Hi all Is it possible to configure Dovecot's sieve plugin to act on message arrival to folders, other than INBOX? I wish to move messages fetched by pop3 fetcher to special folder, or sort outgoing mail to folders, specific to their recipients. Thanhs in advance, WBR, valery
Robert Schetterer
2013-Feb-26 13:54 UTC
[Dovecot] Sieve filters on folders, different from INBOX
Am 26.02.2013 14:20, schrieb Valery V. Sedletski:> Hi all > > Is it possible to configure Dovecot's sieve plugin to act on message > arrival to folders, other than INBOX?sieve is invoked by lda or lmtp not "as arrive in inbox"> I wish to move messages fetched by pop3 fetcher to special folder, or sortif you use i.e getmail and maildir it may possible look http://pyropus.ca/software/getmail/getmailrc-examples> outgoing mail to folders, specificoutgoing mail is smtp, with i.e imap copy to sent folder etc if you want other folders your imap client should do it try i.e https://addons.mozilla.org/de/thunderbird/addon/send-filter/?src=search> to their recipients. > > Thanhs in advance,i guess what you want in gneral ,is more advanced ( new ) handling of mail workflow at all, look at list archives for more info on some stuff you asked, some may work in the future with new features in imap and sieve, but meanwhile you have to workaround> > WBR, > valery > > >Best Regards MfG Robert Schetterer -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstra?e 15, 81669 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Joerg Heidrich
Valery V. Sedletski
2013-Feb-26 14:40 UTC
[Dovecot] Sieve filters on folders, different from INBOX
>---- Original Message ---- >From: Robert Schetterer <rs at sys4.de> >To: dovecot at dovecot.org >Sent: ??, ??? 26, 2013, 5:55 PM >Subject: Re: [Dovecot] Sieve filters on folders, different from INBOX > >Am 26.02.2013 14:20, schrieb Valery V. Sedletski: >> Hi all >> >> Is it possible to configure Dovecot's sieve plugin to act on message >> arrival to folders, other than INBOX? > >sieve is invoked by lda or lmtp not "as arrive in inbox" > > >> I wish to move messages fetched by pop3 fetcher to special folder, or sort > >if you use i.e getmail and maildir it may possible > >look > >http://pyropus.ca/software/getmail/getmailrc-examplesI use mpop with a shell wrapper script. The fetcher is working on IMAP server side (not on user side, as usual). So, it is used to pull email from several POP3 servers to our IMAP server. The mail is stored in Maildir++ format. Yes, it is possible to configure fetcher to sort messages to folders by its own means, but I'd like to implement the mail sorting by means of Sieve filters. The user can easy configure filters in webmail interface, then it work with any IMAP client, because it is done on IMAP server side. So, if sieve is invoked by lda, then, probably, I could invoke dovecot-lda from wrapper script on each mail after it is fetched? But then it will be copied to INBOX... -- Is it possible to specify the other folder to deliver to, to the deliver program?> >> outgoing mail to folders, specific > >outgoing mail is smtp, with i.e imap copy to sent folder etc >if you want other folders your imap client should do it >So, I can invoke Sieve interpreter from SMTP server, or process it via dovecot-lda, like in fetcher case?> >try i.e > >https://addons.mozilla.org/de/thunderbird/addon/send-filter/?src=search > > >> to their recipients. >> >> Thanhs in advance, > >i guess what you want in gneral ,is more advanced ( new ) handling >of mail workflow at all, look at list archives for more info on >some stuff you asked, some may work in the future with new features in >imap and sieve, but meanwhile you have to workaround >I used such features with my old POP3 client (it was the good old PMMail in OS/2). But it worked on POP3 client side, with local folders. It seemed to be not very advanced, but I just got a case to implement the same with Dovecot and Exim :)>> >> WBR, >> valery >> >> >> > > > >Best Regards >MfG Robert Schetterer > >-- >[*] sys4 AG > >http://sys4.de, +49 (89) 30 90 46 64 >Franziskanerstra?e 15, 81669 M?nchen > >Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 >Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer >Aufsichtsratsvorsitzender: Joerg Heidrich
Valery V. Sedletski
2013-Feb-27 13:56 UTC
[Dovecot] Sieve filters on folders, different from INBOX
>> >> So, if sieve is invoked by lda, then, probably, I could invoke dovecot-lda from wrapper script on each mail >> after it is fetched? > >with getmail > >[destination] >type = MDA_external >path = /usr/lib/dovecot/deliver > >But then it will be copied to INBOX... -- Is it possible to specify the >other folder to deliver to, >> to the deliver program? > >the sieve filter invoked bx deliver does it, i.e rule > >if header :contains ... fileinto :create "folder" > >or whatever >Ah, yes. Really, I looked to mpop options, it can call various LDA's. And, dovecot-lda has "-m" parameter, which allows to specify the mailbox name. So, I can deliver the mail arrived by fetcher, via dovecot-lda, and Sieve filters will work. Also, as a bonus, delivering mail via LDA will correctly update user quotas -- the problem which resolved by itself :) Great :)>> >>> >>>> outgoing mail to folders, specific >>> >>> outgoing mail is smtp, with i.e imap copy to sent folder etc >>> if you want other folders your imap client should do it >>> >> >> So, I can invoke Sieve interpreter from SMTP server, or process it via dovecot-lda, like in fetcher case? > >in general ,i dont think so , there may be some workaround with server >bcc_copy and i.e plus adressing with sieve then for "sent" mail >Yes, this is a variant. But what if I modify the Dovecot post-login script (a wrapper for IMAP process), or add the sieve plugin to protocol "imap {mail_plugins = ...}" ? Will it be invoked on each operation with mailboxes?>> >>> >>> try i.e >>> >>> https://addons.mozilla.org/de/thunderbird/addon/send-filter/?src=search >>> >>> >>>> to their recipients.WBR, valery
Robert Schetterer
2013-Feb-27 15:29 UTC
[Dovecot] Sieve filters on folders, different from INBOX
Am 27.02.2013 14:56, schrieb Valery V. Sedletski:> Yes, this is a variant. But what if I modify the Dovecot post-login script (a wrapper for IMAP process), or > add the sieve plugin to protocol "imap {mail_plugins = ...}" ? Will it be invoked on each operation with > mailboxes?to my knowledge this will not work, and if will by like server/service overkill ,sieve at "send" stage maybe able in the future, meanwhile you have to workaround it, bc_copy in mailserver and plus-addressing might solve what you want, or as some plugin in the imap client ( thunderbird ) if list people would have other solutions, i would lucky to read Best Regards MfG Robert Schetterer -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstra?e 15, 81669 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Joerg Heidrich
Seemingly Similar Threads
- IMAP folders sort order
- Gnu sieve vs Dovecot sieve-filter - sieve-filter extremely slow at lda (writing emails to local mbox files)
- getmail and Dovecot LDA deliver
- Client Identification
- Bug#776094: dovecot-imapd: corrupts mailbox after trying to retrieve it (fwd)