Comments on: .NET email spam filter https://www.limilabs.com/blog/net-email-spam-filter Fri, 09 Sep 2016 08:59:37 +0000 hourly 1 https://wordpress.org/?v=6.3.4 By: Limilabs support https://www.limilabs.com/blog/net-email-spam-filter#comment-11940 Wed, 09 May 2012 17:17:46 +0000 http://www.limilabs.com/blog/?p=2075#comment-11940 In reply to Chris.

@Chris

1.
You can take much less spam messages for initial learning process.
Thus you’ll need less ham messages.

2.
There is no such thing as generic ham messages.
As I said before: ham messages are very different for different people.

3.
I can’t provide you my emails for learning – they are confidential.
I don’t have knowledge of any publicly available archive of such messages.
You simply need to use your own messages.

]]>
By: Chris https://www.limilabs.com/blog/net-email-spam-filter#comment-11874 Wed, 09 May 2012 08:02:37 +0000 http://www.limilabs.com/blog/?p=2075#comment-11874 Hi,

I am creating a web mail client which can be used in many countries in many languages by many people from many companies who would receive mail from almost anywhere. I was wanting to automatically flag any suspected spam and automatically move it to their junk folder and from there the user can either delete it or mark it as not spam. I really love this software suite but I was really wanting a sort of plug-and-play spam filter that could be tweaked.

I was planning to have a base dictionary which would be duplicated for each user and when a user marked something as either spam (when something that should have in their opinion been marked as spam was not) or marked something as not spam (when something that was marked spam that in their opinion should not have been) their personal spam/ham dictionary is updated so it gets to learn what personally to them is considered spam.

I love that the spam archive is provided but I read in the documentation that the spam and ham folders should contain an equal number of emails. I don’t have the 7000 odd ham emails to match the spam archive. And now I realise that I would need spam and ham emails for each language.

Can you recommend a spam filter which provides a spam and ham dictionary to start with.

Sorry for all the questions. I am writing a CMS and I wanted to integrate an email client into it. I was going to use the inbuilt IMAP library, however I was wanting to include a spam filter into it and came across your library which has IMAP, POP3, SMTP and the SPAM Filter which would cut down quite a bit of development time as your library makes the job of connecting to mail server and retrieving and sending emails very easy. I have a lot of experience with web development but little with Bayesian filtering and other spam capturing techniques.

Do you possibly have an already existing “mbayes” english dictionary that you have used in your testing that you wouldn’t mind sharing to get me started?

Thanks again,

Chris

]]>
By: Limilabs support https://www.limilabs.com/blog/net-email-spam-filter#comment-11319 Sun, 06 May 2012 07:49:24 +0000 http://www.limilabs.com/blog/?p=2075#comment-11319 In reply to Chris.

@Chris

> Can you provide a ham archive[…]?
Not really. To achieve best results you should use ‘yours’ ham and spam messages.
Fortunately spam messages are similar in many countries. Ham messages are not.

They should be in your language, they should contain words your business uses.

For example ham messages would be very different for local pharmacy chain and for international IT company.

> Great software suite you guys have created!
Thanks!

]]>
By: Chris https://www.limilabs.com/blog/net-email-spam-filter#comment-11282 Sun, 06 May 2012 02:25:41 +0000 http://www.limilabs.com/blog/?p=2075#comment-11282 Hi,

You provide a spam archive sample. Can you provide a ham archive sample of the same size or a “mbayes” file to use as a basis to train on top of?

Thanks.

Great software suite you guys have created!

]]>
By: Limilabs support https://www.limilabs.com/blog/net-email-spam-filter#comment-1575 Mon, 02 Jan 2012 16:43:16 +0000 http://www.limilabs.com/blog/?p=2075#comment-1575 In reply to riham.

@riham,

Not sure what you mean by downloading complete folder.

You can download all emails from a single folder:

using(Imap imap = new Imap())
{
	imap.Connect("server");    // or ConnectSSL
	imap.UseBestLogin("user", "password");

	imap.Select("Folder");
	List<long> uids = imap.SearchFlag(Flag.All);
	foreach (long uid in uids)
	{
		var eml = imap.GetMessageByUID(uid);
		IMail email = new MailBuilder()
			.CreateFromEml(eml);
		Console.WriteLine(email.Subject);
	}
	imap.Close();
}
]]>
By: riham https://www.limilabs.com/blog/net-email-spam-filter#comment-1574 Fri, 30 Dec 2011 07:27:46 +0000 http://www.limilabs.com/blog/?p=2075#comment-1574 thanks , Can I download a complete folder?

]]>