🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mh
Article #1355

piping to a filter

#1355
From: John Price-Wilkin
Date: Fri, 22 Jan 1993 14:41
27 lines
1558 bytes
I'm trying to have mail with a specified subject piped through a filter  
that removes mail headers, names the file the contents of the subject  
line, and puts the message in a directory based on month and date.  I've  
written the filter in perl (iau-er) and tested it extensively. I've got a  
working .maildelivery, which I've been able to use to save messages  
matching the criteria to specified directories (but not going through the  
filter).  When I try to put everything together, the mail disappears  
mysteriously.  The .maildelivery file looks like this:

Subject FOO | A "/home/jpw/bin/iau-er"
default - > ? /usr/spool/mail/jpw

If I do an slocal -verbose, I get:

 slocal -user $USER -verbose < foo-message
        delivering to pipe "/home/jpw/bin/iau-er", wins.

I also did a debug, and while I don't really know how to read its  
responses, nothing looked striking.

Can someone tell me what I'm doing wrong?  I'm afraid it's awfully  
simple-minded, but I'm stumped.  Incidentally, I'm using MH 6.7 "UCI  
Version" on the NeXT.

John Price-Wilkin
jpw@Virginia.EDU
jpw@sansfoy.lib.virginia.edu (NeXTMail)
Technical Details
Message-ID: <1993Jan22.144107.27409@murdoch.acc.Virginia.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!srvr1.engin.umich.edu!uvaarpa!murdoch!usenet

Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.mh
Path: arc1-ca.pugleaf.net!sparky!uunet!srvr1.engin.umich.edu!uvaarpa!murdoch!usenet
From: jpw@sansfoy.lib.virginia.edu (John Price-Wilkin)
Subject: piping to a filter
Message-ID: <1993Jan22.144107.27409@murdoch.acc.Virginia.EDU>
Keywords: .maildelivery, slocal, pipe
Sender: usenet@murdoch.acc.Virginia.EDU
Organization: University of Virginia
Date: Fri, 22 Jan 1993 14:41:07 GMT
Lines: 27