O.k ... The messages older than 5 days gets tagged but not moved to the archived
folder ...

The mails gets put into ~/mail/incoming/operating_systems/FreeBSD (by procmail)
... the folder I want it to go to is
~/mail/incoming/archived/freebsd/freeBSD-Archived ...

I think I am getting the paths wrong ...

Thank You

Danny

On Nov 27 15, Jon LaBadie :
> To: mutt-users@mutt.org
> Date: Fri, 27 Nov 2015 14:41:16 -0500
> From: Jon LaBadie <mut...@jgcomp.com>
> Subject: Re: Move old messages
> User-Agent: Mutt/1.5.24 (2015-08-30)
> 
> 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)

Reply via email to