Operating System - HP-UX
1753802 Members
8162 Online
108805 Solutions
New Discussion

Re: to/from/subject collection

 
Kent Ostby
Honored Contributor

Re: to/from/subject collection

I actually have a script that does this every two minutes although I just display it so I can see if I have gotten anything new.

It's obviously fairly easy.

grep -e Subject: -e To: -e From: /var/mail/ >> /tmp/alog

Oz
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Jeff_Traigle
Honored Contributor

Re: to/from/subject collection

Maybe something simpler...

Since these are POP users, I'm guessing they don't know how to spell UNIX, much less have access to the command line of the mail server.

Set up a dummy account, maybe named abuse. Set up a .forward file for each user to forward the email to that account as well as to their own inbox like this:

abuse
username

Then you can process the abuse account inbox at your leisure with no concern that you'll miss any.
--
Jeff Traigle