Can i develop spam filter in C# ? if is it so , where do i start ?

I can't tell you how to check for spam in email, but StopForumSpam has an API that lets you can search by ip address, email address or username. This has stopped probably 99% of the spam I got before I started checking on that site. I see no reason why it won't work for emails as well as web sites.

A spam filter, at its basic level, is simply a set of rules applied to your data and it scores points based on those rules.

For example;
1. Does this address exist in the CBL = 1000 points
2. Does the subject contain "$1,000,000" = 20 points
3. Does the body contain "You have won the lottery!" = 50 points
4. Do I know this email address personally? = -20 points

Then you total up the scores and see if it is above your threshold.

To do this in C# would be pretty straightforward, string search and the like. The actual application integration might actually be more difficult.

could anyone please send some reference links for string manipulations ? like the whole body of text can be divided into tokens. sort of something.

We aim to please. MSDN should be your friend. Here is The String class, all the string manipulation you want! Happy programming.