I finally got it to work by piping to sendmail.  Seems to be adequate for
what I want to do.

Now all I have to do is design my patented, foolproof methodology for
distinguishing spam from real mail so that I can encode the rules in the
script.  There must be a way!  Also, this may allow me to do something about
getting rid of HTML in mail, which I can't stand.

----- Original Message -----
From: "Matthew Seaman" <[EMAIL PROTECTED]>
To: "FreeBSD Questions" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 09:14
Subject: Re: Getting Perl scripts to work as mail filters


> On Thu, Dec 19, 2002 at 01:13:17AM +0100, Mxsmanic wrote:
> > What about appending directly to the mailbox file under /var/mail/$USER
with
> > the script?  It looks like the format of the file is very simple.  Why
> > wouldn't that work?  I've tried writing to it, but I can't, at least not
> > when the script runs from the aliases file (works fine when I run it
myself,
> > though).
>
> mail.local(8) is probably what you want to use to do that.  However
> your main problem will be getting sendmail to setuid() to the required
> user before calling the mymail script.
>
> Cheers,
>
> Matthew
>
> --
> Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
>                                                       Savill Way
>                                                       Marlow
> Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to