I have set the IMAP_EMPTYTRASH=Trash:7 in the imapd configuration file,
however the mail in the Trash folder doesn't get deleted and some is well
over seven days old.
Hint: the datetime stamp on the actual file doesn't have anything to do
with when the message was actually moved to Trash. You could move last
month's mail into Trash, and it will still have a month-old datestamp.