On Thu, 2002-11-14 at 19:39, HvR wrote:
the shell command get the complete msg as stdin so all the script needs to do is: cat - > /tmp/file and then you can run formail on the /tmp/file
This only appears to work for the shell command in the _criterion_ section "Pipe Message to Shell Command". In the _action_ section it doesn't appear that the message is piped to the command. Not sure why these shell commands were implemented differently, but that appears to be the case.
On Thu, 2002-11-14 at 13:51, Cliff Wells wrote:Is there a way to pass the body of an email to an external program via a filter? (Please read the rest before replying). What I'm looking to do is write a Python script that extracts PGP keys from incoming email. I don't think passing the email to an external program in the criterion section would be good as then every email would be run through the external script which would be bad performance-wise. Rather, in the criterion section I filter on "Message body contains -----BEGIN PGP PUBLIC KEY BLOCK-----" and then I'd like to use a shell command in the action section to run the script if a match is found, but I'm not sure how to pass the body of the mail to the external program. Any suggestions? Are there %M or whatever arguments that can be appended to the shell command?_______________________________________________ evolution maillist - evolution ximian com http://lists.ximian.com/mailman/listinfo/evolution
-- Cliff Wells, Software Engineer Logiplex Corporation (www.logiplex.net) (503) 978-6726 x308 (800) 735-0555 x308
Attachment:
signature.asc
Description: This is a digitally signed message part