~/Maildir/.MailingList/cur Here are all Mails from years 2005 till 2008 I want to move the Mails from here to Maildir.subfolder 2008: ~/Maildir/MailingList.2008/cur$ for each mail X in current dir do if date of file contains "2008" M X { mv X ~/Maildir/MailingList.2008/cur$ } }