Re: sorting outgoing mail
Procmail is a delivery agent; it only handles incoming mail. Very true. Ergo, if you /want/ to use procmail to sort outgoing mail, then make it also be incoming mail. Namely, you can BCC yourself, and in your procmail recipes check to see if you are the sender. One downside of doing this though is that if you also BCC others, it won't be reflected in the copy you BCC yourself. -Chip -- Chip Killian http://www.cs.ucsd.edu/~ckillian/ UCSD Graduate Student, Computer Science
Re: sorting outgoing mail
Procmail is a delivery agent; it only handles incoming mail. Automatically sorting outgoing mail (i.e. putting mail into different folders as it is sent) requires send-hooks. While it's true that procmail can act as a delivery agent, it can also filter any mail that you feed into it. If you sent $sendmail to a program that first filters the message, then injects the message to SMTP, you can external outbound message filtering. #!/bin/sh ## ## Use this as $sendmail in mutt ## procmail -p -f [EMAIL PROTECTED] -m $HOME/.procmailrc.outgoing Make sure that .procmailrc.outgoing **always** acts on a message copy using rules beginning with :0 c. Then make sure that the last rule in .procmailrc.outgoing, the one that catches all messages coming into the filter, is like this: :0 | /usr/lib/sendmail -oi -oem -t I haven't tested this approach at all, but it seems like it should work. :) -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago Polka music needs to prevail. John Ziobrowski, Polka America Corporation
Re: sorting outgoing mail
* Joseph [EMAIL PROTECTED] [01-01-70 11:34]: Can I use procmail for sorting outgoing mail or I need to use hooks? Yes, you can use procmail via hooks. Write a hook to pipe a copy of your outgoing mail thru a *special* procmailrc containing recipies reflecting your intent. The process would be very similar to a *sandbox* setup to test procmail recipies. 0: !formail procmail -m special.rc Not Tested! an email with some explanation of a sandbox for procmail and a site reference are available: http://wahoo.wahoo.no-ip.org/~pat/sandbox.txt This would be easy to accomplish if the fcc can be a script (I don't know). or, perhaps (also not tested): 0: c | formail procmail -m special.rc 0 | /usr/lib/sendmail -oi -oem -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org
Re: sorting outgoing mail
On 25Sep2007 21:52, Kyle Wheeler [EMAIL PROTECTED] wrote: | On Tuesday, September 25 at 08:29 PM, quoth Joseph: | I know procmail is used to sort an incoming mail but what about outgoing | mail. | Can I use procmail for sorting outgoing mail or I need to use hooks? | | Procmail is a delivery agent; it only handles incoming mail. | Automatically sorting outgoing mail (i.e. putting mail into different | folders as it is sent) requires send-hooks. Well, yes and no. You do have to contrive to hand a copy of the message to procmail, but if you do that it will happily file that copy away for you. I have mutt's sendmail setting set to a shell script that: - sends the message for real - copies the message to a few folders, usually =spool-out I have daemon script watching spool-out that hands messages found there to procmail using the spool-out/.procmailrc file. And lo, my messages are filed. Cheers, -- Cameron Simpson [EMAIL PROTECTED] DoD#743 http://www.cskk.ezoshosting.com/cs/ Perseverance is not a long race; it is many short races one after another. - Walter Elliott
sorting outgoing mail
I know procmail is used to sort an incoming mail but what about outgoing mail. Can I use procmail for sorting outgoing mail or I need to use hooks? -- #Joseph
Re: sorting outgoing mail
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday, September 25 at 08:29 PM, quoth Joseph: I know procmail is used to sort an incoming mail but what about outgoing mail. Can I use procmail for sorting outgoing mail or I need to use hooks? Procmail is a delivery agent; it only handles incoming mail. Automatically sorting outgoing mail (i.e. putting mail into different folders as it is sent) requires send-hooks. ~Kyle - -- I believe that every human has a finite number of heart-beats. I don't intend to waste any of mine running around doing exercises. -- Neil Armstrong -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iD8DBQFG+clRBkIOoMqOI14RAtqlAJ9+2tAHY7OxScljMnyANSrld7JKawCfZSeO lIz40fFjmu59hyEgeTySRv8= =RF+4 -END PGP SIGNATURE-