[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Handling email by PERL
- Subject: Re: [cobalt-users] Handling email by PERL
- From: Elmer Fuddpucker <elmer@xxxxxxxxxxxxxx>
- Date: Thu May 24 06:30:29 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Thu, 24 May 2001, Steve Churcher wrote:
} Im hoping someone can help.. I would like to pass a certain email address
} through to a perl script for manipulation - eg an automated system.
Nothing to it. You do this via the pipe command in your /etc/alias
file:
Alias: "|/path/to/perl/script"
You'll need to run newaliases after adding the code to the
/etc/aliases file.
It's not quite as slick, but you can also do this with
procmail on virtual host basis (the proceedure above is server
wide). The syntex is a bit different. Typing man procmailex at the
prompt should provide the clues you need though.
I'm not that bright so having a working example tends to
make life easier on me when I set out to learn this kind of thing.
And when I did just that I grabbed a copy of mailback.pl from a link
I found on http://freshmeat.net. A search there for Mailback ought
to lead you to the script - it's open source. Chop off what you
don't need and put your code in it's place.
hth
brent
Elmer Fuddpucker's WWW Directory
http://www.fuddpucker.com/