I'd like to use a trash folder in mutt. I know how to create a macro that moves mail to the trash folder instead of deleting. However, I'd also like to automatically delete messages that sit there for seven days (as Thunderbird can do).My mail is stored in maildir format. I could create a crontab that deleted files/messages from the trash directory, but it'd have to know when files were transferred. I thought a simple way might be to touch files as they were transferred. Then, I could just delete based on modification date. Is there a way to do make mutt touch files as it moves them, or is there a better way to delete files periodically from the trash?
Can I delete messages from the trash after x days in mutt?
mutt