procmail
[Top] [All Lists]

[Q] Piping to formail fails, but piping to sendmail works

1999-12-29 18:15:51
This recipe works fine:

  :0 c
  |$SENDMAIL sam

But when I try to use formail, it fails:

  :0 c
  |/usr/local/bin/formail | $SENDMAIL sam

  :0 c
  |(/usr/local/bin/formail) | $SENDMAIL sam

  # Even this does not work and /tmp perms are fine
  :0 c
  |cat >> /tmp/out

I realize formail isn't doing really anything above, but I'm just
trying to get a simple pipe to work correctly.  I simply cannot get
procmail to pipe to anything.  

What has changed?  I've upgraded procmail from 3.11 to 3.14 and moved
to Netbsd.  What am I trying to do?  There are some existing mailing
lists that use formail to reformat a couple of headers but trying to
pipe the message to formail just causes it to do nothing.

Here's the procmailrc file and the procmail log when I send a message
to the list.

---------------------------------------------------------------
VERBOSE=on
LOGFILE=/tmp/autoreplylog
LOGABSTRACT=all
MAILDIR=/root/alist
UMASK=003

:0 c 
|( /usr/local/bin/formail -f -q- \
-A"Errors-To: alist" \
-I"Sender: alist" ) \
|$SENDMAIL \
-f alist(_at_)Progressive-Systems(_dot_)Com \
-F 'Users mailing list' \
alist-of-users

:0
/dev/null

---------------------------------------------------------------

procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "MAILDIR=/root/alist"
procmail: Assigning "UMASK=003"
procmail: Assigning "LASTFOLDER=( /usr/local/bin/formail -f -q- \
-A"Errors-To: alist" \
-I"Sender: alist" ) \
|$SENDMAIL \
-f alist(_at_)Progressive-Systems(_dot_)Com \
-F 'Users mailing list' \
alist-of-users"
From sam(_at_)Progressive-Systems(_dot_)Com  Wed Dec 29 19:58:42 1999
 Subject: test from sam
  Folder: ( /usr/local/bin/formail -f -q- \ -A"Errors-To: alist" \ -I"S     699
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
From sam(_at_)Progressive-Systems(_dot_)Com  Wed Dec 29 19:58:42 1999
 Subject: test from sam
  Folder: /dev/null                                                         698
procmail: Executing "( /usr/local/bin/formail -f -q- \
-A"Errors-To: alist" \
-I"Sender: alist" ) \
|$SENDMAIL \
-f alist(_at_)Progressive-Systems(_dot_)Com \
-F 'Users mailing list' \
alist-of-users"


Any suggestions on what might be wrong.  The mail goes nowhere and I
have no evidence that formail even ran (hence the cat test above).
This procmailrc file worked (and still works) just fine with procmail
3.11.  But I don't think it is version related.

Thanks,
Sam

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