Re: Archiving mail after a period of time

From: Tom 'Needs A Hat' Mitchell (mitch48_at_sbcglobal.net)
Date: 04/30/04

  • Next message: Matthew Saltzman: "Re: DHCP reserve IPs"
    Date: Fri, 30 Apr 2004 13:44:02 -0700
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    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.
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Matthew Saltzman: "Re: DHCP reserve IPs"

    Relevant Pages

    • Re: Question about Kmail filters
      ... server a copy of the downloaded mail. ... I would like to set up a filter that: ... You setup fetchmail to fetch the mail for your from the pop account (if you have other mailboxes, you can let it to fetch them all) and deliver the mail to procmail for local delivery. ...
      (comp.windows.x.kde)
    • procmail and samba
      ... I'm setting up a debian mail server with mailboxes in another machine ... The problem I'm having is that procmail fails to write mail into the ... did is change my mailboxes from mbox to Maildir format because I had read ...
      (Debian-User)
    • Re: copy old mail to different folder
      ... > If you have procmail then this is doable, ... then overwrite the original mailboxes with the tempfiles. ... having it run whenever Mutt exits. ... Learned a lot from studying and tweaking days-between.sh. ...
      (comp.mail.mutt)
    • Re: copy old mail to different folder
      ... >> If you have procmail then this is doable, ... then overwrite the original mailboxes with the tempfiles. ... having it run whenever Mutt exits. ... > Learned a lot from studying and tweaking days-between.sh. ...
      (comp.mail.mutt)
    • Re: mutt folders and filters
      ... Nancy McGough has a very good procmail tutorial at the Infinite Ink ... ~/.procmailrc and making procmail recipies to sort your mail. ... You can tell mutt about your different mailboxes by saving something ...
      (RedHat)