bogo + maildrop

foudfou foudil.newbie+bogo at gmail.com
Tue Jun 21 11:21:37 CEST 2016


Hi all,

Handling my email with mu4e, I have the following setup:

  imapfetch (custom nodejs script based on the node-imap lib to actually pop messages) -> maildrop -> bogofilter.

It worked well for some time, but now, and despite a constant training, a lot of legitimate email ends up as spam, with for example:

X-Bogosity: Spam, tests=bogofilter, spamicity=1.000000, version=1.2.4
                                        n    pgood     pbad      fw     U
  "head:<C1>!<98><AB>"                          10  0.000000  0.000546  0.999147 +
  "head:WN<95><DC>"                         193  0.000000  0.010546  0.999956 +
  "head:WN<95>"                          217  0.000000  0.011858  0.999961 +
  "head:ordlist.db"                   684  0.000000  0.037377  0.999988 +
  "head:ist"                          874  0.000000  0.047760  0.999990 +
  "head:list.db"                      883  0.000000  0.048251  0.999990 +
  "head:wor"                         1064  0.000000  0.058142  0.999992 +
  "head:ist.db"                      1604  0.000000  0.087650  0.999995 +
  "head:rdlist.db"                   1650  0.000000  0.090164  0.999995 +
  "head:WN<95><DC><CA>"                       2075  0.000000  0.113388  0.999996 +
  "head:wordlist.db"                 5663  0.000000  0.309454  0.999998 +
  N_P_Q_S_s_x_md                       11  0.000000  1.000000  1.000000
                                           0.017800  0.520000  0.375000

Interestingly, the message does not contain anything like "wordlist" or "WN", and my db does not contain any token like "wordlist.db".

imapfetch forks maildrop processes for each message (`maildrop -V1 /home/my/.mailfilters/conf`), which in turn calls bogofilter as described below.
If I manually call maildrop on messages categorized as spam, they are not categorized as spam anymore.


Anyone any clue what could be wrong ?


======================== excerpt from my mailfilter
MARK_SPAM_READ="/usr/local/common/bin/maildir-mark-read"
BOGO_BIN="/usr/bin/bogofilter"
BOGO_ARGS="-d/usr/local/common/dotfiles/.bogofilter"

cc $HOME/.mail.backup

## SPAM
## SEE ALSO /usr/share/bogofilter/contrib/mailfilter.example
#`$BOGO_BIN $BOGO_ARGS -u`
#if ($RETURNCODE == 0)
#### bogofilter passthrough-update ####
xfilter "$BOGO_BIN $BOGO_ARGS -p -u -e -l -vvv -x bcdgmy"
if (/^X-Bogosity: (Spam|Yes)/)
{
    # deliver to the spam folder
    cc "$SPAMDIR"
    `$MARK_SPAM_READ $SPAMDIR`
    exit
}
========================



More information about the bogofilter mailing list