Home

Using bogofilter

2006/05/02

* This note was written on September 7, 2003

  1. Keep some (~50) spams in a separate folder (eg. ~/Mail/spam)
  2. Edit your ~/.bogofilter.cf
    bogofilter_dir=~/.bogofilter
    user_config_file=~/.bogofilter.cf
    db_transaction=no
    spam_header_name=X-Bogosity
    spam_subject_tag={BOGOSPAM}
    unsure_subject_tag={BOGOSPAM}
    stats_in_header=Yes
    db_cachesize=32
    db_log_autoremove=yes
    db_lk_max_locks=16384
    db_lk_max_objects=16384
    timestamp=Yes
    spamicity_tags = Yes, No, Unsure
    spamicity_formats = %0.6f, %0.6f, %0.6f
    header_format = %h: %c, tests=bogofilter, spamicity=%p, version=%v
    terse_format = %1.1c %f
    log_header_format = %h: %c, spamicity=%p, version=%v
    log_update_format = register-%r, %w words, %m messages
    terse=no
    block_on_subnets=no
    charset_default=iso-8859-7
    replace_nonascii_characters=N
    min_dev=0.375
    robs=0.0178
    robx=0.52
    ham_cutoff  = 0.00
    spam_cutoff = 0.99
    ns_esf = 1.000
    sp_esf = 1.000
    thresh_update=0.01
    
  3. bogofilter -Mn < ${MAIL} /* learn what is NOT spam */
  4. bogofilter -Ms < Mail/spam /* learn what IS spam */
  5. Add the following four (4) lines to your ~/.procmailrc:
    # http://bogofilter.sf.net
    :0HB:
    * ? bogofilter -u
    ${HOME}/Mail/bogofilter
     
    
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: