procmail
[Top] [All Lists]

procmail and formail

1996-02-14 16:00:48
Firstly, please refer to the previous email that I've
sent you regarding my not being able to get formail to
work from within .procmailrc.

I have finally managed to get it to work. I had been
trying, in vain, to get any errors printed to my procmail
error log file. I finally put LOG= in my recipe, in a last-ditch
effort to get information about any errors, as follows:

:0 hc
* ? test $ON_VACATION = true
* !^Subject:.*MATERIAL LIST XFER TO PIC
* !^Subject:.*VENDOR TRANSFER NOTICE
* !^Subject:.*FABRICATION PACKAGE TRANSFER
* !^Subject:.*RELEASE FOR CHECK FILM
* !^Subject:.*SUBMITTED
LOG=| ($FORMAIL -r;\
   echo $IM_NOT_HERE) | $SENDMAIL -t

As the man page says, this should've written to my LOGFILE. It
didn't. But it DID activate the pipe in the recipe. So I think 
my problem is:

1. My .forward file using

   "IFS=' '; exec procmail -p /users/mf/mspec/voorhees/.procmailrc #voorhees"

   (which didn't work) instead of

   "| procmail -p /users/mf/mspec/voorhees/.procmailrc #voorhees"

   (which does work).

2. My .procmailrc file not acknowledging the presence of the pipe
   without assigning the piped command to a variable (in this case
   LOG).

At any rate, the action line in this recipe now works for 
sending autoreplies. I thought you might be interested in these
cludges since nothing about them (as far as I've read) appears
to be in any of the procmail package documentation. Our system
here is pretty normal: HP-UX, sendmail 5.65, Elm 2.4 PL23, et al.

Let me know if I'm doing something wrong (by what I've shown
you).

Best regards,
Joe
_____________________________________________________________________
Joe Voorhees
Hewlett-Packard
San Diego Printer Division (SPR)
16399 West Bernardo Drive
San Diego, California 92127-1899

Technical Information Services
Manufacturing Engineering Specialist/Systems Administrator

E-Mail:      voorhees(_at_)sdd(_dot_)hp(_dot_)com
Phone:       (619)655-8423
Pager:       (619)526-0891
M/S:         61U-59A

<Prev in Thread] Current Thread [Next in Thread>