My program that I am developing right now downloads e-mail messages from a POP3 server and parses the subject line to look for distinct numbers.

For instance, if an email comes through with the subject line "05-905843" then it will split that into 2 parts ("05" being one part and "905843" the other part) and work with those numbers. I want to find out how I can determine if there is a junk mail that has entered the system and how I can ignore those exceptions?