🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by John Price-Wilkin Fri, 22 Jan 1993 14:41
piping to a filter
#1355
Author: 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)
Re: piping to a filter (one more piece of info)
#1358
Author: John Price-Wilkin
Date: Fri, 22 Jan 1993 16:36
22 lines
1296 bytes
In article <1993Jan22.144107.27409@murdoch.acc.Virginia.EDU>  
jpw@sansfoy.lib.virginia.edu (John Price-Wilkin) writes:
> I'm trying to have mail with a specified subject piped through a filter  
[text ommitted]
> 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.
> 


A followup.  Several of my previously sent messages came back, and they  
had the perhaps useful piece of information:

slocal: missing argument to -user
554 "| /usr/local/mh/lib/slocal -user $USER"... 554 unknown mailer error 1

I've since tried with a change to the .forward substituting my login id  
for $USER, but this doesn't seem to help either.

John Price-Wilkin
jpw@Virginia.EDU
jpw@sansfoy.lib.virginia.edu (NeXTMail)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads