| Home | Trees | Indices | Help |
|
|---|
|
|
This is a decorator you attach to states that should be protected from spam.
You use it by doing:
@spam_filter(ham_db, rcfile, spam_dump_queue, next_state=SPAMMING)
Where ham_db is the path to your hamdb configuration, rcfile is the
SpamBayes config, and spam_dump_queue is where this filter should
dump spam it detects.
The next_state argument is optional, defaulting to None, but if you use
it then Lamson will transition that user into that state. Use it to mark
that address as a spammer and to ignore their emails or do something
fancy with them.
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
|
Determines if the message is spam or not. |
Drops the message into the configured spam queue. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jul 7 07:32:53 2010 | http://epydoc.sourceforge.net |