English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have to do a piece of coursework using python, run through linux. The question is to design a simple spam filtering program which retrieves email from an imap server and deliver it to your local machine using smtp.
The program should examine each message for the presence of spam, if the message is considered spam it should be written to a spam file otherwise it should be posted to your local machine using smtp.
Any ideas or helpful websites?

2006-12-13 23:42:04 · 4 answers · asked by ilovestooky30 2 in Computers & Internet Programming & Design

4 answers

The following pages should be of help:

http://docs.python.org/lib/SMTP-objects.html
http://docs.python.org/lib/module-imaplib.html

Simply read these docs, and manipulate the data as needed. Best of luck with your course.

2006-12-13 23:57:15 · answer #1 · answered by Doctor A 2 · 2 0

Don't know what your level of knowledge of Python is like, but I found this website extremely helpful when learning the language to start with:
http://www.diveintopython.org

Python has built-in libraries for dealing with SMTP and writing to files. Look them up in the help system (or go to http://docs.python.org/lib/lib.html if you don't have that installed).

The hardest part is working out what messages are considered spam. I don't know of an easy way of doing this (if I did, you can bet I'd use it myself). Or can you assume that there some tagging already being done by a spam scanning service?

2006-12-14 01:58:30 · answer #2 · answered by Daniel R 6 · 2 0

in case you would be able to desire to make video games C++ is the main familiar language, yet C#, Java, and Python are greater handy to comprehend. in case you attempt to initiate with C++ you have an incredibly complicated time.

2016-10-05 07:24:48 · answer #3 · answered by haslinger 4 · 0 0

www.nmt.edu/tcc/help/lang/python

www.python.org/

www.python.org/doc/Summary.html

www.engin.umd.umich.edu/CIS/course.des/cis400/python/python.html

check with the above links ..

2006-12-13 23:46:00 · answer #4 · answered by Manis 4 · 1 0

fedest.com, questions and answers