On Sat, Jun 10, 2000 at 09:00:54AM +0200, Anzej Becan wrote:
> 
> I want to run perl script and do some actions if comes mail on
> [EMAIL PROTECTED] So I created .qmail-test file with contents:
>       | ./perlscript.pl
> 
> Problem now is how to import this mail into script and parse it. Any idea or
> example script?

Take a look at e.g. Russell Nelsons eliminate-dups script, 
(link found on <http://www.qmail.org/>)

  http://qmail.x42.com/eliminate-dups

I also encourage you to check out how the environment looks like when in the
script.

This could be done through a simple echo-script found here:

  http://x42.com/qmail/scripts/

(Note that DTLINE, RPLINE and UFLINE includes a trailing newline)

Run that in a .qmail-echo-default file and you'll get the mail script
environment back. Thus you can experiment with extended addresses and see
how the various EXT and HOST variables change. 

/magnus 

--
http://x42.com/qmail/

Reply via email to