procmail
[Top] [All Lists]

Re: deleting old mails

2005-10-06 04:38:26
On Thu, Oct 06, 2005 at 11:39:05AM +0200, Francesco Peeters wrote:
On Thu, October 6, 2005 9:08, Dallman Ross said:
On Thu, Oct 06, 2005 at 08:05:48AM +0200, Francesco Peeters wrote:

And you can save even more cycles by having a script in the
crontab to rewrite the rc every day, so the date is actually a
piece of text in the file itself. ;-)

That's what I thought I said.



What *I* read is that you suggested to put the date in an extra
file and include that every time the recipe is run.

Yes, that's true.  An extra rcfile.

What I suggested as an alternative is rewriting the recipe on
a daily basis by concatenating 2 template files and the date
file: Header_template + datefile + footer_template = recipe.

Okay, that would work as well.  Once we read the file once, though,
under the separate-file schema, it's in the cache and re-reads are
very fast.

Btw, procmail at start-up knows the current time:

   1:34pm [~/Mail] 623[1]> procmail -m VERBOSE=y DEFAULT=/dev/null /dev/null < 
/dev/null
  procmail: [15014] Thu Oct  6 13:34:29 2005
  procmail: Assigning "DEFAULT=/dev/null"
  procmail: Rcfile: "/dev/null"
  procmail: Assigning "MAILDIR=/net/u/1/d/dman"
  procmail: Assigning "LASTFOLDER=/dev/null"
  procmail: Opening "/dev/null"
    Folder: /dev/null 

Too bad we can't harness that knowledge somewhere inside the rcfile.

Dallman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>