Re: Archiving mail after a period of time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 28, 2004 at 09:41:01PM +0100, Ed Jones wrote:

> 
> I'm running procmail to sort my incoming mail into different mailboxes
> (pretty much the standard use for procmail!).
> 
> I'd like to start archiving mail from these mailboxes after a certain period
> (perhaps a month). Obviously, I could simply write a cron script....

Has anyone tried  a procmail rule like this?

 WEEKFILE="/home/person/mail/Archive/`date +%y-%m-%V`-inlog"
 DUMMY=âtest -e ${WEEKFILE} || touch ${WEEKFILE}â
 :0 c
 ${WEEKFILE}

Hmmm, It needs a directory test too.

I saw something like this in a Google posting and thought that using
"date" to generate useful file names for mail archives would do the
trick.

This does not compress them. But that is easy to do or perhaps
unwanted when burning them on a CDROM.  Uncompressed you should be
able to do simple stuff on the CDROM like grep and:

    mutt -f /mnt/cdrom/person/mail/Archive/04-04-18-inlog


-- 
	T o m  M i t c h e l l 
	/dev/null the ultimate in secure storage.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux