At Sat Nov 29 18:17:38 2003, mairhtin wrote: > > Hello, > > I am having a devil of a time trying to find out how to add to the > procmail.log. > > What I want is to have the To: listed in the log, along with the > From and Subject. Currently, the From:, Subject:, and the > destination folder are shown as below : > > >From [EMAIL PROTECTED] Sat Nov 29 10:12:35 2003 > Subject: FW: DMV VLF Calculator > Folder: /var/spool/mail/joseph 4997 > >From [EMAIL PROTECTED] Sat Nov 29 10:12:43 2003 > Subject: * SPAM ****** Airline Tickets: Best Price Guaranteed > Folder: /var/spool/mail/spam 3267 > > But for reporting purposes, I want the TO: to show as well. I > turned on verbose and WHOA! WAY too much information. > > Is there a way to add the To: to the regular log file for reporting > purposes?
According to the procmailrc man page, you can log anything you want to the procmail log file by assigning it to the LOG variable. You should be able to use the "formail" command to extract the To: header. So, it *looks* like you can do this: LOG=`formail -X "To:"` > I asked this on the sendmail usenet group and was basically told to > flip off, they don't do procmail. How RUDE! :) People can be blunt on Usenet. But procmail is not sendmail, so it's hardly surprising they suggested you go elsewhere. The same would happen here if you started posting questions about some other anti-spam software (except we might be more polite than if this were usenet :-) Martin -- Martin Radford | "Only wimps use tape backup: _real_ [EMAIL PROTECTED] | men just upload their important stuff -o) Registered Linux user #9257 | on ftp and let the rest of the world /\\ - see http://counter.li.org | mirror it ;)" - Linus Torvalds _\_V ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk