auto delete email in mailbox

Gary Stainburn gary.stainburn at ringways.co.uk
Mon Mar 29 15:10:10 UTC 2004


On Monday 29 March 2004 4:01 pm, Chris Purcell wrote:
> > We are using the stock Sendmail and all mail is stored in the
> > /var/spool/mail directory under individual mailboxes as the name of the
> > login on the server.  Basically we made no change to it from the
> > original  installation of RHEL AS.
>
> Sendmail uses the mbox format, where each email in a users mailbox is
> stored in a single text file.  This makes it more difficult to implement
> what you want to do.  If you switched to Postfix and Maildir-style
> mailboxes, you could easily write a Perl or bash script that would execute
> daily via cron to do what you want.  If you want to make the switch, I'll
> see if I can write it....
>
> Chris

I've not used them personally, but Perl does have modules on CPAN for handling 
mbox format files too. It may be worth looking at those rather than go 
through the hastle of changing MTAs
-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     





More information about the redhat-list mailing list