OT: Removal of old 14+ mail from mbox-based mail spool (not maildir)

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Aug 17 18:35:33 GMT 2005


On 2005-08-17 14:15, Matt Juszczak <matt at atopia.net> wrote:
> >procmail ruleset, as long as you have tested the ruleset and found that
> >it works exactly like you want it to work.
>
> I'm actually trying to write a script with formail, but its being
> annoying:
>
> orion$ formail -s "parse.pl" < Spam
> parse.pl: 3: Syntax error: ")" unexpected
> parse.pl: 3: Syntax error: ")" unexpected
> parse.pl: 3: Syntax error: ")" unexpected
> orion$

Is the current working directory in your PATH?

> parse.pl is:
>
> #!/usr/bin/perl
>
> while (<STDIN>) {
>         print
> }

> and when I run parse.pl manually:
>
> orion$ echo "Yo" | ./parse.pl
> Yo
> orion$
>
> Weird eh?  Any ideas?



More information about the freebsd-questions mailing list