Poptart connects to a POP3 mail account and selectively deletes mail(s) that match the specified pattern(s). Useful mostly for clearing out spam from hosted mailboxes.
This script requires the following modules:
Copyright (c) 2007 John Sargent. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
usage: poptart [--test] [-v] host[:port] user password delete-option [...]
where delete-option is one of the following (all can appear multiple times) -R:<zone> use <zone> for RBL lookups -t:<regex> delete mails with a To: header matching <regex> -f:<regex> delete mails with a From: header matching <regex> -s:<regex> delete mails with a Subject: header matching <regex> -r:<regex> delete mails with a Received: header matching <regex> -V print version info -<header>:<regex>