0 votes

how to apply spam filter on fetching email by pop3 or imap means i want that if message contains virus then automatically goes to spam folder not to inbox folder is that possible by using spam filter then please send example

by

1 Answer

0 votes
 
Best answer

Mail.dll is an IMAP/POP3 client, it's not a server side component.

It can of course run on the server side and perform service related tasks, however
it accesses messages only after they are put in the INBOX (or any father folder) by the email server, not before that.

Most servers have a spam extensions included in them that work automatically.

If for some reason you's like to evaluate if doenloaded messages are spam or not you can train and use BayesianMailFilter class:
https://www.limilabs.com/blog/net-email-spam-filter

by (300k points)
selected by
...