procmail
[Top] [All Lists]

Weird problem

1998-03-26 13:07:08
I'm trying to write a recipe on my Netcom account that will bounce a 
file back to the sender if the subject line contains a certain phrase:

:0:
* ^Subject:.*sendme binfaq.*
| (formail -brt ; \
  cat "/ftp/pub/ms/mshaw/binfaq.txt"    ;\
  ) | $SENDMAIL -oi -t

The sender gets the bounce message, but it's empty.  Here's
what mailstat has to say, followed by the relevant portion
of .maillog.old:

mailstat output
---------------

Total  Number Folder
  -----  ------ ------
      0       1  ##   ) | $SENDMAIL -oi -t"
      0       1  ##   cat "/ftp/pub/ms/mshaw/binfaq.txt"    ;\
      0       1  ## cat: /ftp/pub/ms/mshaw/binfaq.txt: No such file or directory
      0       1  ## procmail: Couldn't determine implicit lockfile from " 
(formail -brt ; \
   1004       1  (formail -brt ; \   cat "/ftp/pub/ms/mshaw/binfaq.txt"    ;\
   5236       2 /u9/mshaw/.mailbox/inbox

.maillog.old
------------

procmail: Couldn't determine implicit lockfile from " (formail -brt ; \
  cat "/ftp/pub/ms/mshaw/binfaq.txt"    ;\
  ) | $SENDMAIL -oi -t"
cat: /ftp/pub/ms/mshaw/binfaq.txt: No such file or directory
From mshaw(_at_)asic(_dot_)sc(_dot_)ti(_dot_)com  Thu Mar 26 11:25:55 1998
 Subject: sendme binfaq
  Folder:  (formail -brt ; \   cat "/ftp/pub/ms/mshaw/binfaq.txt"    ;\    1004

Now, I *know* that the file exists:

% file /ftp/pub/ms/mshaw/binfaq.txt
/ftp/pub/ms/mshaw/binfaq.txt:   English text

I've also tried this without the doublequotes, and with binfaq.txt
in $HOME instead of the ftp directory.  Same result, except that it
doesn't explicitly complain about not finding the file (the lockfile
error, which I don't understand, is still there though).

Any ideas?  I'm using procmail v3.11pre4.

Thanks in advance....

Mark Shaw <mshaw(_at_)ti(_dot_)com>

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