home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / mail / mh / 1534 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.5 KB  |  39 lines

  1. Newsgroups: comp.mail.mh
  2. Path: sparky!uunet!srvr1.engin.umich.edu!uvaarpa!murdoch!usenet
  3. From: jpw@sansfoy.lib.virginia.edu (John Price-Wilkin)
  4. Subject: piping to a filter
  5. Message-ID: <1993Jan22.144107.27409@murdoch.acc.Virginia.EDU>
  6. Keywords: .maildelivery, slocal, pipe
  7. Sender: usenet@murdoch.acc.Virginia.EDU
  8. Organization: University of Virginia
  9. Date: Fri, 22 Jan 1993 14:41:07 GMT
  10. Lines: 27
  11.  
  12. I'm trying to have mail with a specified subject piped through a filter  
  13. that removes mail headers, names the file the contents of the subject  
  14. line, and puts the message in a directory based on month and date.  I've  
  15. written the filter in perl (iau-er) and tested it extensively. I've got a  
  16. working .maildelivery, which I've been able to use to save messages  
  17. matching the criteria to specified directories (but not going through the  
  18. filter).  When I try to put everything together, the mail disappears  
  19. mysteriously.  The .maildelivery file looks like this:
  20.  
  21. Subject FOO | A "/home/jpw/bin/iau-er"
  22. default - > ? /usr/spool/mail/jpw
  23.  
  24. If I do an slocal -verbose, I get:
  25.  
  26.  slocal -user $USER -verbose < foo-message
  27.         delivering to pipe "/home/jpw/bin/iau-er", wins.
  28.  
  29. I also did a debug, and while I don't really know how to read its  
  30. responses, nothing looked striking.
  31.  
  32. Can someone tell me what I'm doing wrong?  I'm afraid it's awfully  
  33. simple-minded, but I'm stumped.  Incidentally, I'm using MH 6.7 "UCI  
  34. Version" on the NeXT.
  35.  
  36. John Price-Wilkin
  37. jpw@Virginia.EDU
  38. jpw@sansfoy.lib.virginia.edu (NeXTMail)
  39.