Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I seem to remember a patch to mutt that allowed to modify the path of the mailbox in mbox-hook in include the date. For example, you could have this:

mbox-hook Maildir +Archive/%y/%m/maildir

Which would save the emails in Archive/2011/12/maildir if they were send during December 2011.

Anyone knows what it was called or if it still is supported? I seem to remember that there was an option in the BSD ports to enable it but cannot find it now.

If not, does anyone know how I could achieve the same thing?

share|improve this question
up vote 1 down vote accepted

It is called mbox-hook supporting printf-like sequnces in mailbox. Sadly, it appears not to be maintained any more.

However, it appears that you can still use the patch if you know how to code.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.