Expunge SPAM messages older than the retention time period. Refs #2290

If SpamFolder is not defined, only old messages with X-Spam-Flag: YES
header are expunged from the INBOX folder.  Otherwise any message
older than the retention time period is expunged from the given
SpamFolder.