procmail
[Top] [All Lists]

Re: formail khacks only in .procmailrc

1996-05-30 09:02:09
degennar(_at_)bmsrs(_dot_)usc(_dot_)edu (Ray DeGennaro (@Home via Eudora)) 
writes:
...
#This is the bad recipe
:0 c
| formail -i"Subject: "$USCSSSUBJECT | sendmail -oi 
degennar(_at_)bmsrs(_dot_)usc(_dot_)edu

Is there some reason that you've not quoting the $USCCSSSUBJECT?  If it
contains any spaces then the shell will break it into two or more args for
formail.  Try using:

:0 c
| formail -i"Subject: $USCSSSUBJECT" | $SENDMAIL -oi 
degennar(_at_)bmsrs(_dot_)usc(_dot_)edu


(Note that the -z flag on the formail command you used to extract the
Subject: to begin with zaps leading and trailing whitespace, but not
whitespace in the middle of the Subject:, say, between two words.)

Philip Guenther

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