[plug] Scripting for email
Mike Holland
myk at golden.wattle.id.au
Fri Aug 11 17:03:44 WST 2000
Hey! What happened to the "reply-to:" ???? I want it back!
Waaaa waaaaa whinge ...
On Fri, 11 Aug 2000, Bradley Browne wrote:
> a script could be written that would compare the date the file in
> /var/spool/mail/ was last modified and then send an email to me
> to let me know if it is more than 24 hours from "now" ago. Would
For a shell script, see 'test' which compares the dates on two files.
You can create a fererence point with: touch -d "1 day ago" filename
I would use perl, if you have the camel book.
> The next script would be a lot more difficult...perhaps. I have
> a user that gets his email forwarded to another account that he
Ahhh .. not difficult at all. Use "procmail". It is designed
for just this kind of thing, and the docs have plenty of examples.
--
Mike Holland <mike at golden.wattle.id.au>
--==--
More information about the plug
mailing list