Grep mails by subject with shell script

Peter Bücker buecker at phil-fak.uni-duesseldorf.de
Tue Sep 12 13:16:39 EDT 2006


Walter Willmertinger wrote:
> Is there someway to grep the user's mails by subject, content of mail or
> similar?
> I just found the way to do it by going to the spool directory what is
> only allowed to root.

You can execute your shell script as root by using sudo
(http://www.gratisoft.us/sudo/). This is also possible from cron jobs.

Plenty of documentation regarding sudo is available online and via your
system's man pages.


More information about the Info-cyrus mailing list