
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!