<<< Date Index >>>     <<< Thread Index >>>

Re: folder-hook to archive old messages problem



* Raphael Brunner <lilo-@xxxxxx> [2008-01-15 22:08 +0100]:
> I use the follow hook to tag old messages and save it to a
> archive-folder:
> 
> folder-hook =051-Sent-Mail          
> 'push<tag-pattern>~r>12m!~F<enter><tag-prefix><save-message>+052-Sent-Archive<enter><sync-mailbox>'
> 
> Now, the problem is, if there's no message to move to this folder
> (because today is'nt any new message >12m), then, if I leave the folder,
> mutt save just the message on top. And this message is from today! Then,
> mutt ignore the date and save at least one message. And this should'nt
> be!
> 
> Now, my question: Is there a simply way to solve my problem or maybe
> someone want the same 'idea' behind and has a working solution?

Use <tag-prefix-cond> instead of <tag-prefix>. This was introduced to
solve exactly this problem.

Nicolas

-- 
http://www.rachinsky.de/nicolas