Re: PHP script for removing/forwarding suspected spam from pop3 mailbox
| From: | Stephen Allen | Date: | Fri, 12 Aug 2005 16:50:36 +0000 |
| Subject: | Re: PHP script for removing/forwarding suspected spam from pop3 mailbox | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220520@lists.php.net to get a copy of this message | ||
On Thu, Aug 11, 2005 at 02:39:57PM +0100 or thereabouts, I. Gray wrote:
> Hi.
>
> I'd like to find or write a script that I can run every so often (hourly
> for example) from cron that will check my pop3 mailboxes for any emails
> with ****SPAM**** in the subject line and either delete them or forward
> them to another email address. The best way would be to bundle all the
> emails together and forward these as attachments to another email
> address that I would use as spam.
Why use PHP for this, I would use procmail and filter at the tail of the
SpamAssassin rule.