That looks something like what I need, but I need to basically remove individual messages by date to trim down the size of Junk mail folders on our IMAP server. I'm trying to run this automatically so ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results