Hi, ive written a very basic spam filter but need help finishing 3 of the sections. please see the uploaded attached file for the source code so far.
the three sections that need completing are;
i want a spam filter than retrieves email from an IMAP server and delivers it to a local machine using SMTP. then each line of an email is checked for HTML, if html>=60% of the lines contain html then the message is considerd as spam, otherwise it is classed as real mail.
most of the work has been done except the actual searching for the email for spam. this may seem easy but i cannot do it.