[bb535118] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[b0b2cf3] | 7 | <!ENTITY bogofilter-download-http "&sourceforge-dl;/bogofilter/bogofilter-&bogofilter-version;.tar.xz">
|
---|
[bb535118] | 8 | <!ENTITY bogofilter-download-ftp " ">
|
---|
[b0b2cf3] | 9 | <!ENTITY bogofilter-md5sum "8763f87adfff7b802ced177d8c654539">
|
---|
| 10 | <!ENTITY bogofilter-size "784 KB">
|
---|
| 11 | <!ENTITY bogofilter-buildsize "19 MB">
|
---|
[bb535118] | 12 | <!ENTITY bogofilter-time "0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[51dfb3e] | 15 | <sect1 id="bogofilter" xreflabel="Bogofilter-&bogofilter-version;">
|
---|
[bb535118] | 16 | <?dbhtml filename="bogofilter.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Bogofilter-&bogofilter-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="bogofilter">
|
---|
| 22 | <primary sortas="a-Bogofilter">Bogofilter</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Bogofilter</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
[e4758caa] | 29 | The <application>Bogofilter</application> application is a mail filter that classifies
|
---|
[bb535118] | 30 | mail as spam or ham (non-spam) by a statistical analysis of the message's header and
|
---|
| 31 | content (body).
|
---|
| 32 | </para>
|
---|
| 33 |
|
---|
[c9e1750] | 34 | &lfs112_checked;
|
---|
[bb535118] | 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&bogofilter-download-http;"/>
|
---|
| 41 | </para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&bogofilter-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download MD5 sum: &bogofilter-md5sum;
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download size: &bogofilter-size;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Estimated disk space required: &bogofilter-buildsize;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated build time: &bogofilter-time;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">Bogofilter Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
| 74 | <xref linkend="db"/>
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 78 | <para role="recommended">
|
---|
[b0b2cf3] | 79 | <xref linkend="gsl"/> and
|
---|
| 80 | <xref linkend="libxml2"/>
|
---|
[bb535118] | 81 | </para>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 84 | <para role="optional">
|
---|
[b0b2cf3] | 85 | <xref linkend="lmdb"/>,
|
---|
[bb535118] | 86 | <xref linkend="sqlite"/>,
|
---|
[b0b2cf3] | 87 | <xref linkend="xmlto"/>,
|
---|
[b3d0dbd] | 88 | <ulink url="https://dbmx.net/qdbm/">QDBM</ulink> and
|
---|
| 89 | <ulink url="https://dbmx.net/tokyocabinet/">TokyoCabinet</ulink>
|
---|
[bb535118] | 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <note>
|
---|
| 93 | <para>
|
---|
| 94 | If you do not install the recommended <xref linkend="gsl"/> package
|
---|
| 95 | then a statically linked shipped version will be used instead.
|
---|
| 96 | </para>
|
---|
| 97 | </note>
|
---|
| 98 |
|
---|
| 99 | <para condition="html" role="usernotes">
|
---|
| 100 | User Notes: <ulink url="&blfs-wiki;/bogofilter"/>
|
---|
| 101 | </para>
|
---|
| 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2 role="installation">
|
---|
| 105 | <title>Installation of Bogofilter</title>
|
---|
| 106 |
|
---|
[ef0d8f4] | 107 | <note>
|
---|
| 108 | <para>
|
---|
| 109 | If you plan to change the version of your database library on an
|
---|
| 110 | existing installation, or to change to a different database, read the
|
---|
| 111 | warning at the top of the RELEASE.NOTES file.
|
---|
| 112 | </para>
|
---|
| 113 | </note>
|
---|
| 114 |
|
---|
[bb535118] | 115 | <para>
|
---|
| 116 | Install <application>Bogofilter</application> by running the following
|
---|
| 117 | commands:
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc/bogofilter &&
|
---|
| 121 | make</userinput></screen>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
[785d5974] | 124 | To test the results, issue <command>make check</command>.
|
---|
[bb535118] | 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 129 | </para>
|
---|
| 130 |
|
---|
| 131 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 132 |
|
---|
| 133 | </sect2>
|
---|
| 134 |
|
---|
| 135 | <sect2 role="commands">
|
---|
| 136 | <title>Command Explanations</title>
|
---|
| 137 |
|
---|
| 138 | <para>
|
---|
| 139 | <option>--with-database=</option>: This switch allows you to change
|
---|
| 140 | the default database from db to either qdbm, sqlite3 or tokyocabinet.
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | <sect2 role="content">
|
---|
| 146 | <title>Contents</title>
|
---|
| 147 |
|
---|
| 148 | <segmentedlist>
|
---|
| 149 | <segtitle>Installed Programs</segtitle>
|
---|
| 150 | <segtitle>Installed Libraries</segtitle>
|
---|
| 151 | <segtitle>Installed Directories</segtitle>
|
---|
| 152 |
|
---|
| 153 | <seglistitem>
|
---|
| 154 | <seg>
|
---|
| 155 | bf_compact, bf_copy, bf_tar, bogofilter, bogolexer, bogotune,
|
---|
| 156 | bogoupgrade and bogoutil
|
---|
| 157 | </seg>
|
---|
| 158 | <seg>
|
---|
| 159 | None
|
---|
| 160 | </seg>
|
---|
| 161 | <seg>
|
---|
| 162 | /etc/bogofilter
|
---|
| 163 | </seg>
|
---|
| 164 | </seglistitem>
|
---|
| 165 | </segmentedlist>
|
---|
| 166 |
|
---|
| 167 | <variablelist>
|
---|
| 168 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 169 | <?dbfo list-presentation="list"?>
|
---|
| 170 | <?dbhtml list-presentation="table"?>
|
---|
| 171 |
|
---|
| 172 | <varlistentry id="bf_compact">
|
---|
| 173 | <term><command>bf_compact</command></term>
|
---|
| 174 | <listitem>
|
---|
| 175 | <para>
|
---|
| 176 | creates a more compact bogofilter working directory with a
|
---|
[4c24eb0a] | 177 | dump/load cycle
|
---|
[bb535118] | 178 | </para>
|
---|
| 179 | <indexterm zone="bogofilter bf_compact">
|
---|
| 180 | <primary sortas="b-bf_compact">bf_compact</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
| 185 | <varlistentry id="bf_copy">
|
---|
| 186 | <term><command>bf_copy</command></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>
|
---|
[4c24eb0a] | 189 | copies a bogofilter working directory to another directory
|
---|
[bb535118] | 190 | </para>
|
---|
| 191 | <indexterm zone="bogofilter bf_copy">
|
---|
| 192 | <primary sortas="b-bf_copy">bf_copy</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
| 197 | <varlistentry id="bf_tar">
|
---|
| 198 | <term><command>bf_tar</command></term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <para>
|
---|
| 201 | bundles a bogofilter working directory in tar format and
|
---|
[4c24eb0a] | 202 | copies it to standard output
|
---|
[bb535118] | 203 | </para>
|
---|
| 204 | <indexterm zone="bogofilter bf_tar">
|
---|
| 205 | <primary sortas="b-bf_tar">bf_tar</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
| 210 | <varlistentry id="bogofilter-prog">
|
---|
| 211 | <term><command>bogofilter</command></term>
|
---|
| 212 | <listitem>
|
---|
| 213 | <para>
|
---|
[4c24eb0a] | 214 | is a fast Bayesian spam filter
|
---|
[bb535118] | 215 | </para>
|
---|
| 216 | <indexterm zone="bogofilter bogofilter-prog">
|
---|
| 217 | <primary sortas="b-bogofilter">bogofilter</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="bogolexer">
|
---|
| 223 | <term><command>bogolexer</command></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>
|
---|
[b0b2cf3] | 226 | is used to separate messages into tokens and to test new
|
---|
[4c24eb0a] | 227 | versions of the lexer.l code
|
---|
[bb535118] | 228 | </para>
|
---|
| 229 | <indexterm zone="bogofilter bogolexer">
|
---|
| 230 | <primary sortas="b-bogolexer">bogolexer</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | <varlistentry id="bogotune">
|
---|
| 236 | <term><command>bogotune</command></term>
|
---|
| 237 | <listitem>
|
---|
| 238 | <para>
|
---|
[4c24eb0a] | 239 | attempts to find optimum parameter settings for bogofilter
|
---|
[bb535118] | 240 | </para>
|
---|
| 241 | <indexterm zone="bogofilter bogotune">
|
---|
| 242 | <primary sortas="b-bogotune">bogotune</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
| 247 | <varlistentry id="bogoupgrade">
|
---|
| 248 | <term><command>bogoupgrade</command></term>
|
---|
| 249 | <listitem>
|
---|
| 250 | <para>
|
---|
[4c24eb0a] | 251 | upgrades the bogofilter database to the current version
|
---|
[bb535118] | 252 | </para>
|
---|
| 253 | <indexterm zone="bogofilter bogoupgrade">
|
---|
| 254 | <primary sortas="b-bogoupgrade">bogoupgrade</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
| 259 | <varlistentry id="bogoutil">
|
---|
| 260 | <term><command>bogoutil</command></term>
|
---|
| 261 | <listitem>
|
---|
| 262 | <para>
|
---|
[4c24eb0a] | 263 | dumps, loads, and maintains bogofilter database files
|
---|
[bb535118] | 264 | </para>
|
---|
| 265 | <indexterm zone="bogofilter bogoutil">
|
---|
| 266 | <primary sortas="b-bogoutil">bogoutil</primary>
|
---|
| 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
| 270 |
|
---|
| 271 | </variablelist>
|
---|
| 272 |
|
---|
| 273 | </sect2>
|
---|
| 274 |
|
---|
| 275 | </sect1>
|
---|