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 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results