WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Bogofilter (?)  (Read 2013 times)

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Bogofilter (?)
« on: November 07, 2015, 02:41:53 AM »
I'd like to use a spam filter in claws-mail, but i see there is neither bogofilter, nor bsfilter or spamassassin in the extensions. Now, since bogo(or bs?)filter seems (to me) to be the easiest to configure in claws-mail i'd like to install it to my TinyCore. How can this be done?

In the bogofilter readme there is a pointer:

Quote
To compile and install the standard configuration from a tarball, use
  the following commands:

  cd bogofilter-1.0.1   [change to project directory]
  ./configure      [add configure options as required]
  make all check
  make install      [as root]

  To compile and install the standard configuration from SVN, use
  the following commands:

  cd bogofilter      [change to project directory]
  ./autogen.sh      [add configure options as required]
  make install      [as root]

  Be sure to read README.svn for additional preparations required.

  You will need a full set of development tools installed to be able
  to run autogen.sh, including recent automake (1.8) and autoconf
  (2.59). configure does not have these requirements.

  c. Configuring
  --------------

  After using ./autogen.sh, which builds the standard configuration
  and runs "make check" to ensure it works in your environment and on
  your hardware, you might wish to further customize bogofilter for
  your use.

  Running "./configure --help" will list all the configuration
  options.  The most notable ones are:

  --prefix=PREFIX         install architecture-independent files in PREFIX
           [default: /usr/local]
  --with-database=ENGINE  Choose database engine {db|qdbm|sqlite3}
             [default: db]
  CPPFLAGS=-I/opt/csw/include
           Choose additional include file path /opt/csw/include
  LDFLAGS=-L/opt/csw/lib  Ditto, for library files

Thanks a lot in advance for any help.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Bogofilter (?)
« Reply #1 on: November 07, 2015, 05:39:09 AM »
Take a look at the extension making section of the wiki.

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: Bogofilter (?)
« Reply #2 on: November 13, 2015, 01:32:01 AM »
Take a look at the extension making section of the wiki.

Yes. But my question rather pointed to if and how configure the prefixes (paths) to have it updated and made permanent in the most adherent to TCL way.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Bogofilter (?)
« Reply #3 on: November 13, 2015, 01:44:54 AM »
Hi emninger
Create a subdirectory and set the prefix to the full path to that subdirectory. Then you should be able to squash that into
an extension.

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: Bogofilter (?)
« Reply #4 on: November 16, 2015, 02:40:08 PM »
Hi emninger
Create a subdirectory and set the prefix to the full path to that subdirectory. Then you should be able to squash that into
an extension.

I got bsfilter working and i think, eventhough it might be a bit less efficient than bogo, it's sufficient. And it does not need to be built as a "personal" extension. It installs simply in the homefolder and the uses ruby.