|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
|
|
Packit Service |
8f0814 |
<refentry id='bogoupgrade.1'>
|
|
Packit Service |
8f0814 |
<refmeta>
|
|
Packit Service |
8f0814 |
<refentrytitle>bogoupgrade</refentrytitle>
|
|
Packit Service |
8f0814 |
<manvolnum>1</manvolnum>
|
|
Packit Service |
8f0814 |
<refmiscinfo class="manual">Bogofilter Reference Manual</refmiscinfo>
|
|
Packit Service |
8f0814 |
<refmiscinfo class="source">Bogofilter</refmiscinfo>
|
|
Packit Service |
8f0814 |
</refmeta>
|
|
Packit Service |
8f0814 |
<refnamediv id='name'>
|
|
Packit Service |
8f0814 |
<refname>bogoupgrade</refname>
|
|
Packit Service |
8f0814 |
<refpurpose>upgrades <application>bogofilter</application> database to
|
|
Packit Service |
8f0814 |
current version</refpurpose>
|
|
Packit Service |
8f0814 |
</refnamediv>
|
|
Packit Service |
8f0814 |
<refsynopsisdiv id='synopsis'>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<cmdsynopsis>
|
|
Packit Service |
8f0814 |
<command>bogoupgrade</command>
|
|
Packit Service |
8f0814 |
<arg choice='opt'>-h</arg>
|
|
Packit Service |
8f0814 |
<arg choice='plain'>-d <replaceable>directory</replaceable></arg>
|
|
Packit Service |
8f0814 |
<arg choice='opt'>-i <replaceable>input file</replaceable></arg>
|
|
Packit Service |
8f0814 |
<arg choice='opt'>-o <replaceable>output file</replaceable></arg>
|
|
Packit Service |
8f0814 |
<arg choice='opt'>-b <replaceable>path to bogoutil</replaceable></arg>
|
|
Packit Service |
8f0814 |
</cmdsynopsis>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
</refsynopsisdiv>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<refsect1 id='description'><title>DESCRIPTION</title>
|
|
Packit Service |
8f0814 |
<para><command>bogoupgrade</command> is a command to upgrade
|
|
Packit Service |
8f0814 |
<application>bogofilter</application>'s databases from an old format
|
|
Packit Service |
8f0814 |
to the current format. Since the format of the database changes once
|
|
Packit Service |
8f0814 |
in a while, the utility is designed to make the upgrade easy.</para>
|
|
Packit Service |
8f0814 |
</refsect1>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<refsect1 id='options'><title>OPTIONS</title>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<para>The <option>-h</option> option prints the help message and exits.</para>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<para>The <option>-d</option> specifies the directory with the wordlists for
|
|
Packit Service |
8f0814 |
converting. This option is used when converting from multiple, separate
|
|
Packit Service |
8f0814 |
wordlists (spamlist.db and goodlist.db - containing spam and ham tokens,
|
|
Packit Service |
8f0814 |
respectively) to a combined wordlist (wordlist.db) which contains both spam
|
|
Packit Service |
8f0814 |
and ham tokens.</para>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<para>The <option>-i</option> specifies the input file to be converted. It
|
|
Packit Service |
8f0814 |
should be a text file containing message counts, and possibly data. If there is
|
|
Packit Service |
8f0814 |
no data in the text file, there should be a Berkeley DB file in the same
|
|
Packit Service |
8f0814 |
directory as the text file which contains the data.</para>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<para>The <option>-o</option> specifies the output Berkeley DB file.</para>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<para>The <option>-b</option> gives the path to the <command>bogoutil</command>
|
|
Packit Service |
8f0814 |
command. It defaults to 'bogoutil', in the hopes that your shell will find
|
|
Packit Service |
8f0814 |
it.</para>
|
|
Packit Service |
8f0814 |
</refsect1>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<refsect1 id='upgrading'><title>UPGRADING</title>
|
|
Packit Service |
8f0814 |
<para>Follow these instructions to upgrade
|
|
Packit Service |
8f0814 |
<application>bogofilter</application>'s databases to the latest version.</para>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<orderedlist>
|
|
Packit Service |
8f0814 |
<listitem><para>Stop all instances of <application>bogofilter</application>.
|
|
Packit Service |
8f0814 |
While the upgrade tools lock the database files, the upgrade may take a long
|
|
Packit Service |
8f0814 |
time if you have a busy site. Don't forget to stop cron jobs or daemons that
|
|
Packit Service |
8f0814 |
fetch and process mail and could fire off
|
|
Packit Service |
8f0814 |
<application>bogofilter</application>.</para></listitem>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<listitem><para>Backup your data. Let's assume that you said:</para>
|
|
Packit Service |
8f0814 |
<screen>
|
|
Packit Service |
8f0814 |
<prompt>$</prompt> <userinput>mv ~/.bogofilter ~/.bogofilter.safe</userinput>
|
|
Packit Service |
8f0814 |
<prompt>$</prompt> <userinput>mkdir ~/.bogofilter</userinput>
|
|
Packit Service |
8f0814 |
</screen></listitem>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<listitem><para>If your <application>bogofilter</application> version is less
|
|
Packit Service |
8f0814 |
than 0.7, say:</para>
|
|
Packit Service |
8f0814 |
<screen>
|
|
Packit Service |
8f0814 |
<prompt>$</prompt> <userinput>bogoupgrade -i ~/.bogofilter.safe/goodlist -o ~/.bogofilter/goodlist.db</userinput>
|
|
Packit Service |
8f0814 |
<prompt>$</prompt> <userinput>bogoupgrade -i ~/.bogofilter.safe/badlist -o ~/.bogofilter/spamlist.db</userinput>
|
|
Packit Service |
8f0814 |
</screen>
|
|
Packit Service |
8f0814 |
<para>If your <application>bogofilter</application> version is 0.7 or greater,
|
|
Packit Service |
8f0814 |
say:</para>
|
|
Packit Service |
8f0814 |
<screen>
|
|
Packit Service |
8f0814 |
<prompt>$</prompt> <userinput>bogoupgrade -i ~/.bogofilter.safe/hamlist.count -o ~/.bogofilter/goodlist.db</userinput>
|
|
Packit Service |
8f0814 |
<prompt>$</prompt> <userinput>bogoupgrade -i ~/.bogofilter.safe/spamlist.count -o ~/.bogofilter/spamlist.db</userinput>
|
|
Packit Service |
8f0814 |
</screen></listitem>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<listitem><para>Current versions of <application>bogofilter</application> use a combined wordlist that holds both spam and non-spam tokens. It is named wordlist.db. If you're updating from a version older than 0.14.0 that has separate wordlists (named goodlist.db and spamlist.db), use:</para>
|
|
Packit Service |
8f0814 |
<screen>
|
|
Packit Service |
8f0814 |
<prompt>$</prompt> <userinput>bogoupgrade -d ~/.bogofilter.safe</userinput>
|
|
Packit Service |
8f0814 |
</screen></listitem>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<listitem><para>Done. Restart any stopped daemons, cron tasks,
|
|
Packit Service |
8f0814 |
etc.</para></listitem>
|
|
Packit Service |
8f0814 |
</orderedlist>
|
|
Packit Service |
8f0814 |
</refsect1>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<refsect1 id='author'><title>AUTHOR</title>
|
|
Packit Service |
8f0814 |
<para><command>bogoupgrade</command> was written by
|
|
Packit Service |
8f0814 |
Gyepi Sam <email>gyepi@praxis-sw.com</email> and
|
|
Packit Service |
8f0814 |
David Relson <email>relson@osagesoftware.com</email>.</para>
|
|
Packit Service |
8f0814 |
<para>For updates, see <ulink url="http://bogofilter.sourceforge.net/">the
|
|
Packit Service |
8f0814 |
bogofilter project page</ulink>.</para>
|
|
Packit Service |
8f0814 |
</refsect1>
|
|
Packit Service |
8f0814 |
|
|
Packit Service |
8f0814 |
<refsect1 id="also">
|
|
Packit Service |
8f0814 |
<title>SEE ALSO </title>
|
|
Packit Service |
8f0814 |
<para>bogofilter(1), bogolexer(1), bogotune(1), bogoutil(1)</para>
|
|
Packit Service |
8f0814 |
</refsect1>
|
|
Packit Service |
8f0814 |
</refentry>
|