Hi ScottThe attached script may get you started. It shreds all tickets in a named queue "SPAM-Shredder" that are older than 7 days (it takes todays date via POSIX and compares it to the LastUpdated field for the ticket and gets the queue via RT::Ticket->LimitQueue). You should be able to modify it to work with attachments as the shredder API seems to have the necessary bits: e.g RT::Shredder::Plugin::Attachments and RT::Shredder::Attachments.
It runs from /opt/rt3/local/bin Hope it helps regards Garry
shred_tickets.rtf
Description: Binary data
Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
