Re: Getting Perl scripts to work as mail filters

2002-12-19 Thread Ken McGlothlen
| Bloated in the sense of complexity. My script is one file; I install it by | changing one line in /etc/mail/aliases. Procmail cannot compete with that. It's . . . an illusory simplicity, I suspect. But that's okay; it's something everyone has to learn once in a while. :) Procmail has some r

Re: Getting Perl scripts to work as mail filters

2002-12-19 Thread Warren Block
On Fri, 20 Dec 2002, Mxsmanic wrote: > *** There's nothing wrong with reinventing procmail like this, but I'm > curious why you consider it "bloated"--it's under 64K on my system. *** > > Bloated in the sense of complexity. My script is one file; I install it by > changing one line in /etc/mail/

Re: Getting Perl scripts to work as mail filters

2002-12-19 Thread Mxsmanic
*** There's nothing wrong with reinventing procmail like this, but I'm curious why you consider it "bloated"--it's under 64K on my system. *** Bloated in the sense of complexity. My script is one file; I install it by changing one line in /etc/mail/aliases. Procmail cannot compete with that. I

Re: Getting Perl scripts to work as mail filters

2002-12-19 Thread Warren Block
On Thu, 19 Dec 2002, Mxsmanic wrote: > 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. The

RE: Getting Perl scripts to work as mail filters

2002-12-19 Thread Barry Byrne
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Mxsmanic > 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 spa

Re: Getting Perl scripts to work as mail filters

2002-12-19 Thread Mxsmanic
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 wo

Re: Getting Perl scripts to work as mail filters

2002-12-19 Thread Matthew Seaman
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 scr

Re: Getting Perl scripts to work as mail filters

2002-12-18 Thread Ken McGlothlen
"Mxsmanic" <[EMAIL PROTECTED]> writes: | What about appending directly to the mailbox file under /var/mail/$USER with | the script? I'd recommend against that. Using the sendmail interface is just as easy programmatically as appending it to /var/mail/whatever, plus you don't run into any messy i

Re: Getting Perl scripts to work as mail filters

2002-12-18 Thread Mark
- Original Message - From: "Mxsmanic" <[EMAIL PROTECTED]> To: "Mark" <[EMAIL PROTECTED]>; "Barry Byrne" <[EMAIL PROTECTED]>; "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Thursday, December 19, 2002 1:13 AM Subject: Re: Getti

Re: Getting Perl scripts to work as mail filters

2002-12-18 Thread Jeff Jirsa
On Thu, 19 Dec 2002, 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 al

Re: Getting Perl scripts to work as mail filters

2002-12-18 Thread Mxsmanic
tions" <[EMAIL PROTECTED]> Sent: Wednesday, December 18, 2002 23:50 Subject: Re: Getting Perl scripts to work as mail filters > - Original Message - > From: "Mxsmanic" <[EMAIL PROTECTED]> > To: "Barry Byrne" <[EMAIL PROTECTED]>; &

Re: Getting Perl scripts to work as mail filters

2002-12-18 Thread Mark
- Original Message - From: "Mxsmanic" <[EMAIL PROTECTED]> To: "Barry Byrne" <[EMAIL PROTECTED]>; "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Wednesday, December 18, 2002 7:19 PM Subject: Re: Getting Perl scripts to work as mail fil

Re: Getting Perl scripts to work as mail filters

2002-12-18 Thread Ken McGlothlen
"Mxsmanic" <[EMAIL PROTECTED]> writes: | What do I have to do to make a simple Perl script filter incoming mail for a | mailbox? I wrote a script that just reads standard input and writes it to | standard output, then put it in my home directory, then changes | /etc/mail/aliases to point to it, l

RE: Getting Perl scripts to work as mail filters

2002-12-18 Thread Barry Byrne
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Mxsmanic > *** Well it looks like your script is being run - what should your script > do? *** > Heck, it's so simple I can list it here: > #!/usr/bin/perl > >while ($inputline = ) >{ >

Re: Getting Perl scripts to work as mail filters

2002-12-18 Thread Mxsmanic
*** Well it looks like your script is being run - what should your script do? *** Heck, it's so simple I can list it here: --- #!/usr/bin/perl while ($inputline = ) { $inputline =~ s/18 Dec 2002/29 Dec 2013/; print STDOUT $inputline; } --- The s/// stuff is just to give me

RE: Getting Perl scripts to work as mail filters

2002-12-18 Thread Barry Byrne
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Mxsmanic > Here are the two relevant log entries after I tried to mail something from > the console: > > Dec 18 18:31:10 myserver sendmail[97621]: gBIHVAo97621: > from=root, size=39, > class=0, nrcpts=

Re: Getting Perl scripts to work as mail filters

2002-12-18 Thread Mxsmanic
t; <[EMAIL PROTECTED]>; "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Wednesday, December 18, 2002 15:28 Subject: RE: Getting Perl scripts to work as mail filters > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Beha

RE: Getting Perl scripts to work as mail filters

2002-12-18 Thread Barry Byrne
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Mxsmanic > 'Are you sure there is no error - did you check the sendmail log?' > > Yup. maillog mentions the message being sent, but indicates no error. Can you post the log entry - does it say maile

Re: Getting Perl scripts to work as mail filters

2002-12-18 Thread Mxsmanic
'Are you sure there is no error - did you check the sendmail log?' Yup. maillog mentions the message being sent, but indicates no error. 'You will need to ensure the script is listed in your sm.bin directory (man smrsh).' I thought smrsh was not enabled by default (?). Also, if it couldn't fin

RE: Getting Perl scripts to work as mail filters

2002-12-18 Thread Barry Byrne
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Mxsmanic > What do I have to do to make a simple Perl script filter incoming > mail for a > mailbox? I wrote a script that just reads standard input and writes it to > standard output, then put it in

Re: Getting Perl scripts to work as mail filters

2002-12-18 Thread Matthew Seaman
On Wed, Dec 18, 2002 at 02:46:14PM +0100, Mxsmanic wrote: > What do I have to do to make a simple Perl script filter incoming mail for a > mailbox? I wrote a script that just reads standard input and writes it to > standard output, then put it in my home directory, then changes > /etc/mail/aliase