[plug] Receiving emails to a script

Shayne O'Neill shayne at guild.murdoch.edu.au
Wed Apr 7 01:22:56 WST 2004


I use lines like this;-

infotech: "|/var/mail/mailadapter.py infotech"

in the alias file.

(which fwd's mail to infotech at guild.rarara to my mailadapter.py script
the infotech at the end is just a paramater to the script telling it which
email addy its recieving.



------------------------------------
"Must not Sleep! Must warn others!"
-Aesop.
Shayne O'Neill. Indymedia. Fun.
http://www.perthimc.asn.au

On Tue, 6 Apr 2004, Randal Adamson wrote:

> Hi,
>
> Has anyone played with receiving emails into a script? I am after some
> pointers. I hope to do a script in Perl. From what I can gather I need
> to run it in the ~/.forward file with some code like this:
>
> |/path/to/my/script.pl
>
> Looking thru my O'Reilly Sendmail book - they talk about something
> called smrsh - and that sendmail has locked down users from using the
> .forward file. Which probably has something to do with why I can't get
> mine to work properly.
>
> I've been doing a bit of googling and can't seem to get the info I need.
>
> So, any info whether this is the correct way or not would be muchly
> appreciated.
>
> Not that it should matter, but I'm using Debian for this.
>
> Many thanks,
>
> Ranz
>
>
> _______________________________________________
> PLUG discussion list: plug at plug.linux.org.au
> http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
>




More information about the plug mailing list