Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Spam Killer

0.00/5 (No votes)
20 Mar 2002 1  
Delete unwanted mails from your PO3 server

Sample Image - spamkiller.jpg

Introduction

Spam killer deletes unwanted emails from your POP3 server and cleans out your mailbox. It can filter the subject, from, to, and size fields. The program is very simple.

After authentication it sends the STAT command to the server, A sample response of the STAT command is given below

C: STAT
S: +OK 2 320

From this we know the number of emails in the server Then it send the LIST command to server. A sample response of the LIST command is given below

C: LIST
S: +OK 2 messages (320 octets)
S: 1 120
S: 2 200
S: .

Then it check the size of each mail and filters out those emails that are too large. Once this is done the application sends the TOP nmessage 0 command to the server. It can then retrieve the headers from the messages and filter mails the given subject, from, and To strings.

Once this is done our mailbox will be clean!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here