Re: folder-hook to move messages after 2 weeks to another folder.
You may want to consider ignoring messages older than two weeks when you synchronize. With OfflineIMAP, for example, this is controlled by "maxage" in [Account] sections. On 2016年03月27日 14時38分, Peter Terpstra wrote: Dear readers, I have: folder-hook =inbox "push T~d>2w=read-mail" ..which works, but has an issue. The issue is that when there are no messages to move it moves the first message of the inbox to readmail, disregarding the 2w. Does anyone know a solution to this? Kind Regards, Peter
Re: folder-hook to move messages after 2 weeks to another folder.
~ Grady Martin [2016-03-29 04:13:01 -0400]: You may want to consider ignoring messages older than two weeks when you synchronize. With OfflineIMAP, for example, this is controlled by "maxage" in [Account] sections. Thank you kindly for the answer. If it cannot be solved within mutt i would prefer to do something like this in a cronjob. find $INBOX -maxdepth 1 -type f -mtime +14 -exec mv -v -t $READM {} \; Kindly, Peter