Greetings, A probably simple question and answer: can a sieve script be executed on outgoing messages? I already use deliver on postfix, perhaps the sieve script could be executed when saving to the Sent folder? Regards, -- Marcio Merlone
Am 06.02.2013 14:36, schrieb Marcio Merlone:> A probably simple question and answer: can a sieve script be executed on outgoing messages? I already use deliver > on postfix, perhaps the sieve script could be executed when saving to the Sent folder?there are complete different things happening for incoming messages and save sent messages you do NOT want get sieve in action if you drag&drop messages between folders and do this for sent messages would trigger the same since the client acts the same way -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20130206/f336a688/attachment-0004.bin>
Am 06.02.2013 14:53, schrieb Reindl Harald:> > > Am 06.02.2013 14:36, schrieb Marcio Merlone: >> A probably simple question and answer: can a sieve script be executed on outgoing messages? I already use deliver >> on postfix, perhaps the sieve script could be executed when saving to the Sent folder? > > there are complete different things happening > for incoming messages and save sent messages > > you do NOT want get sieve in action if you drag&drop > messages between folders and do this for sent messages > would trigger the same since the client acts the same way > >Sorry Harald, i dont agree, this would be a nice feature to have in fact we internally disussed this allready, it might be used for workaround imap bugs of new outlook, and for auto flagging and auto sorting mails, anyway at recent i see no way to get it real on the tec side , but that might change in the future with i.e relation to rfc4550 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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 6 Feb 2013, Robert Schetterer wrote:> Am 06.02.2013 14:53, schrieb Reindl Harald: >> Am 06.02.2013 14:36, schrieb Marcio Merlone: >>> A probably simple question and answer: can a sieve script be executed on outgoing messages? I already use deliver >>> on postfix, perhaps the sieve script could be executed when saving to the Sent folder? >> >> there are complete different things happening >> for incoming messages and save sent messages >> >> you do NOT want get sieve in action if you drag&drop >> messages between folders and do this for sent messages >> would trigger the same since the client acts the same way > > Sorry Harald, i dont agree, this would be a nice feature to have > in fact we internally disussed this allready, it might be used for > workaround imap bugs of new outlook, and for auto flagging and auto > sorting mails, anyway at recent i see no way to get it real on the tec > side , but that might change in the future with i.e relation to rfc4550A combination of BCC (instead of IMAP-Append to Sent) and a stable detection of "outgoing" will work. E.g. BCC: myaccount+outgoing at mydomain Then Sieve must be able to detect subaddressing or default mailbox to fileinto. First is not availble for all installations. Last is not available at all, I think. Maybe in combination with a "From" check and/or check of last recieved header to prevent misuse, when an insider (needs to know the subaddress) mails to myaccount+outgoing at mydomain from an external MTA. Using BCC instead of IMAP-Append-to-Sent also has the advantages that the message is transferred only once and that the Recieved header has the queueid for later trouble shooting. Kind regards, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBURJ6f13r2wJMiz2NAQImZAf+PWNSGGA5rlep9Onf2GXMpGYpvkDpGj1G DcWRykGEO9kGhQwbO/B7AIQ21bCI9PrYg2pRN9XMGpH4RF9ippsICjlOW9Eo2n5X Lt/0dd/Jdyj5UhbvdcxzI1VLfDItbl2N6mNBTClo9V/DDKjo5W89gzIaxOQoTIvz LTGj1EFn17UUtP67/uE4zUcJ7/+rc2BhLcBL2ZpJXbKT4WFvjT/THuJ2UagYTdhZ 9+nvtNyxq54iGQzja5dR8CEXbcuyVtIgY5MZXBP3PMIfGrkfcTP8Iz4dTV0caO4/ QqrSJfe/K50h7pnYr+PlnjMtKu3vbDwkr/Qk8o4I4lBYlAwZtKKyjg==YsoM -----END PGP SIGNATURE-----
Em 06-02-2013 13:19, Robert Schetterer escreveu:> Am 06.02.2013 14:53, schrieb Reindl Harald: >> Am 06.02.2013 14:36, schrieb Marcio Merlone: >>> A probably simple question and answer: can a sieve script be executed on outgoing messages? I already use deliver >>> on postfix, perhaps the sieve script could be executed when saving to the Sent folder? >> there are complete different things happening >> for incoming messages and save sent messages >> >> you do NOT want get sieve in action if you drag&drop >> messages between folders and do this for sent messages >> would trigger the same since the client acts the same way > Sorry Harald, i dont agree, this would be a nice feature to have > in fact we internally disussed this allready, it might be used for > workaround imap bugs of new outlook, and for auto flagging and auto > sorting mails, anyway at recent i see no way to get it real on the tec > side , but that might change in the future with i.e relation to rfc4550My specific need in this case is that we must forward copy all mails with a specific subject and/or destination to a mail account for auditing and registry purposes. It already works for messages which has at least on inside destination (multiple exact same copies when multiple inside destination, but what the heck...), but if a message is sent with only outside destinations I get no copy. It should work similar to postfix always_bcc, but only when a criteria matches. Regards. -- Marcio Merlone
* Steffen Kaiser <skdovecot at smail.inf.fh-brs.de>:> On Wed, 6 Feb 2013, Robert Schetterer wrote: > > > Am 06.02.2013 14:53, schrieb Reindl Harald: > >> Am 06.02.2013 14:36, schrieb Marcio Merlone: > >>> A probably simple question and answer: can a sieve script be executed on outgoing messages? I already use deliver > >>> on postfix, perhaps the sieve script could be executed when saving to the Sent folder?Barry (Leiba) wrote <http://tools.ietf.org/rfc/rfc6785.txt>. AFAIK it awaits further discussion. p at rick -- [*] 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
On 2/6/2013 5:24 PM, Patrick Ben Koetter wrote:> Barry (Leiba) wrote <http://tools.ietf.org/rfc/rfc6785.txt>. AFAIK it > awaits further discussion. p at rickThis is on my TODO list, but Dovecot will need to gain IMAP METADATA support first. Regards, Stephan.
Am 06.02.2013 16:57, schrieb Marcio Merlone:> It should work similar to postfix always_bcc, but only when a criteria > matches.incomming mails can be filtered through sieve, always_bcc etc and + adressing maybe be a way to solve this, i tested somthing like this for mail archiving, however the filter rules may get complex 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
Em 06-02-2013 15:40, Robert Schetterer escreveu:> Am 06.02.2013 16:57, schrieb Marcio Merlone: >> It should work similar to postfix always_bcc, but only when a criteria >> matches. > incomming mails can be filtered through sieve, always_bcc etc and + > adressing maybe be a way to solve this, i tested somthing like this > for mail archiving, however the filter rules may get complexIncoming is done with sieve, the problem comes to outgoing without any rcpt to inside, in which case it becomes incoming too. It must happen only on a specific subject.... -- Marcio Merlone