On Fri, Nov 27, 2015 at 04:49:17PM +0100, bastian-muttu...@t6l.de wrote: > On 27Nov15 16:33 +0200, Danny wrote: > > O.k ... I tried various combinations but it does not seem to work > > > > folder-hook .FreeBSD push > > 'T~s>5d<enter>;s/incoming/os/bsd/FreeBSD-OLD<enter> is > > what I tried last ... > > Right. Of course I inserted some typo. ~s is the metachar for the > subject of the mail. Try it with a ~d which corresponds to the date > received. > > folder-hook .FreeBSD push > 'T~d>5d<enter>;s/incoming/os/bsd/FreeBSD-OLD<enter> > > Watch out: > The first argument to folder-hook is a regexpr. So be careful with that. > .FreeBSD will (most probably) match both of your mailboxes FreeBSD and > FreeBSD-OLD. > > Better try first: > > folder-hook FreeBSD$ push > 'T~d>5d<enter>;s/incoming/os/bsd/FreeBSD-OLD<enter> > > Here, the '$' marks the end of a line, thus the folder FreeBSD-OLD will > not be matched. > Nice Bastian, I may also have a use for something like this.
One thought, if I'm away for a week or more this would archive several days of unread mail. Adding a simple ~R to the pattern seems to eliminate this concern. Are there any side-effects I overlook? folder-hook FreeBSD$ push 'T~R~d>5d<enter>;s/incoming/os/bsd/FreeBSD-OLD<enter> Jon -- Jon H. LaBadie j...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)