chad We don't forward spam because doing so will cause our MX servers to become blacklisted.
Procmail acts on incoming messages when they arrive, it doesn't do anything with messages that have already been delivered. You'll need to do this with an IMAP client instead.
Here's an example of how to do that with Python's imaplib, you could run this script daily via cron:
#!/bin/env python3
import imaplib
mailbox = 'xxx'
password = 'yyy'
mailserver = 'mail.us.opalstack.com'
age_in_days = 365
cutoff_date = (datetime.date.today() - datetime.timedelta(age_in_days)).strftime("%d-%b-%Y")
M = imaplib.IMAP4_SSL(mailserver)
M.login(mailbox, password)
M.select('INBOX')
typ, data = M.search(None, f'BEFORE {cutoff_date}')
for msgid in data[0].split():
M.store(msgid, '+FLAGS', '(\\Deleted)')
M.expunge()
M.close()
M.logout()