10 Jun
2016
10 Jun
'16
1:57 a.m.
Hi,
I use dovecot and sieve_extprograms to encrypt all incoming messages with the help of a Python script. Now, I want to process the _original_ message a second time. However, as expected, the second filter is applied to the already filtered message.
For reference, here's a copy of the sieve script in question:
if address :matches "To" "X@Y.Z" { fileinto "INBOX"; filter "gpgit.py" ["X@Y.Z", "--encrypt"]; fileinto "encrypted"; filter "gpgit.py" ["X@Y.Z", "--wrap"]; # Should be applied to the original message but uses the result of the first filter command fileinto "wrapped"; stop; }
Does anyone have an idea how to modify the script to get the intended result?
Please cc me, as I'm not subscribed.
Thanks for your help Jeremias