代码搜索结果

找到约 10,000 项符合 Python 的代码

autoconfigure.py

#!/usr/bin/env python """Automatically set up the user's mail client and SpamBayes. Example usage: >>> configure("mailer name") Where "mailer name" is any of the names below. Currently works wi

dibbler.py

""" *Introduction* Dibbler is a Python web application framework. It lets you create web-based applications by writing independent plug-in modules that don't require any networking code. Dibbler t

test_sb_server.py

#! /usr/bin/env python """Test the POP3 proxy is working correctly. Given no command line options, carries out a test that the POP3 proxy can be connected to, that incoming mail is classified, that

onepass.py

#!/usr/bin/env python """ Make one pass through a collection of ham and spam discarding anything that scores as ham or spam given the currently scored messages. (Sort of like one pass of the train-t

tte.py

#!/usr/bin/env python """ Train to exhaustion: train repeatedly on a pile of ham and spam until everything scores properly. usage %(prog)s [ -h ] -g file -s file [ -d file | -p file ] \

splitndirs.py

#! /usr/bin/env python """Split an mbox into N random directories of files. Usage: %(program)s [-h] [-g] [-s seed] [-v] -n N sourcembox ... outdirbase Options: -h / --help Print this he

extractmessages.py

#!/usr/bin/env python """ Extract messages which contain given features usage: %(prog)s [ options ] -d mapfile - specify file which holds feature mapping information (required) -S file - output sp

splitn.py

#! /usr/bin/env python """Split an mbox into N random mboxes. Usage: %(program)s [-h] [-s seed] [-v] -n N sourcembox outfilebase Options: -h / --help Print this help message and exit

sb_mailsort.py

#! /usr/bin/env python """\ To train: %(program)s -t ham.mbox spam.mbox To filter mail (using .forward or .qmail): |%(program)s Maildir/ Mail/Spam/ To print the score and top evidence for a

sb_imapfilter.py

#!/usr/bin/env python """An IMAP filter. An IMAP message box is scanned and all non-scored messages are scored and (where necessary) filtered. Usage: sb_imapfilter [options] note: opti