Re: FCC to a program/pipe?
David G. Andersen [EMAIL PROTECTED] wrote: I've been digging around for a bit trying to figure out the best way to do this: How can I set mutt up to pipe an auto-FCC of my outgoing mail to a program, instead of a file? Mutt already sends every mail you send to a program... The MTA! The variable that sets the program that will be launced is called sendmail and has the default value /usr/sbin/sendmail -oem -oi. You could, however, write your own script, and simply have your script capture the outgoing message, do whatever you want with it, and then ALSO call the real sendmail program, so that your mail still gets delivered. Then you'd set $sendmail to point to your script. After suitable testing, of course. -- David DeSimone | The doctrine of human equality reposes on this: [EMAIL PROTECTED] | that there is no man really clever who has not Hewlett-Packard | found that he is stupid. -- Gilbert K. Chesterson Richardson IT|PGP: 5B 47 34 9F 3B 9A B0 0D AB A6 15 F1 BB BE 8C 44
FCC to a program/pipe?
I've been digging around for a bit trying to figure out the best way to do this: How can I set mutt up to pipe an auto-FCC of my outgoing mail to a program, instead of a file? (The obvious attempt of FCC to |program doesn't work; a fairly extensive read of the docs didn't suggest that such a thing was possible, but I figured I'd ask before digging through the source). Thanks! -Dave -- work: [EMAIL PROTECTED] me: [EMAIL PROTECTED] MIT Laboratory for Computer Science http://www.angio.net/
Re: FCC to a program/pipe?
FCC to a local file which is watched by the external program? On 06-Mar-02 at 00:16, David G. Andersen's inspired musing was thus : I've been digging around for a bit trying to figure out the best way to do this: How can I set mutt up to pipe an auto-FCC of my outgoing mail to a program, instead of a file? (The obvious attempt of FCC to |program doesn't work; a fairly extensive read of the docs didn't suggest that such a thing was possible, but I figured I'd ask before digging through the source). Thanks! -Dave -- work: [EMAIL PROTECTED] me: [EMAIL PROTECTED] MIT Laboratory for Computer Science http://www.angio.net/ -- |-Simon White |-Internet Services Manager |-MTDS S.A. |-tel +212.3.767.4861 |-fax +212.3.767.4863 |-14, rue 16 novembre |-Rabat, Kingdom of Morocco
Re: FCC to a program/pipe? - FIFO? atchange?
* David G. Andersen [EMAIL PROTECTED] [020306 09:29]: I've been digging around for a bit trying to figure out the best way to do this: How can I set mutt up to pipe an auto-FCC of my outgoing mail to a program, instead of a file? use a file which was created a FIFO - that's the best way (I think). (i have no experience with this, unfortunately.) and then there is a program which watches files for events, triggering programs if necessary. atchange Sven
Re: FCC to a program/pipe?
FCC to a local file which is watched by the external program? If you chose this route, i suggest you use maildir format -- then you can just use a short shell script to look for new files, process them, and delete them. -- Mike Schiraldi VeriSign Applied Research msg25101/pgp0.pgp Description: PGP signature