bogoutil.1in
来自「一个C语言写的快速贝叶斯垃圾邮件过滤工具」· 1IN 代码 · 共 267 行
1IN
267 行
.\" ** You probably do not want to edit this file directly **.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1)..\" Instead of manually editing it, you probably should edit the DocBook XML.\" source for it and then use the DocBook XSL Stylesheets to regenerate it..TH "BOGOUTIL" "1" "12/27/2005" "" "".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"bogoutil \- Dumps, loads, and maintains bogofilter database files.SH "SYNOPSIS".HP 9\fBbogoutil\fR {\-h \-V}.HP 9\fBbogoutil\fR [options] {\-d\ \fIfile\fR \-H\ \fIfile\fR \-l\ \fIfile\fR \-m\ \fIfile\fR \-w\ \fIfile\fR \-p\ \fIfile\fR}.HP 9\fBbogoutil\fR {\-r\ \fIfile\fR \-R\ \fIfile\fR}.HP 9\fBbogoutil\fR {\-\-db\-print\-leafpage\-count\ \fIfile\fR \-\-db\-print\-pagesize\ \fIfile\fR \-\-db\-verify\ \fIfile\fR \-\-db\-checkpoint\ \fIdirectory\fR\ [flag...] \-\-db\-list\-logfiles\ \fIdirectory\fR \-\-db\-prune\ \fIdirectory\fR \-\-db\-recover\ \fIdirectory\fR \-\-db\-recover\-harder\ \fIdirectory\fR \-\-db\-remove\-environment\ \fIdirectory\fR}.PPwhere\fBoptions\fRis.HP 9\fBbogoutil\fR [\-v] [\-n] [\-C] [\-D] [\-a\ \fIage\fR] [\-c\ \fIcount\fR] [\-s\ \fImin,max\fR] [\-y\ \fIdate\fR] [\-I\ \fIfile\fR] [\-O\ \fIfile\fR] [\-x\ \fIflags\fR] [\-\-config\-file\ \fIfile\fR].SH "DESCRIPTION".PPBogoutilis part of thebogofilterBayesian spam filter package..PPIt is used to dump and loadbogofilter's Berkeley DB databases to and from text files, perform database maintenance functions, and to display the values for specific words..SH "OPTIONS".PPThe\fB\-d \fR\fB\fIfile\fR\fRoption tellsbogoutilto print the contents of the database file to\fBstdout\fR..PPThe\fB\-H \fR\fB\fIfile\fR\fRoption tellsbogoutilto print a histogram of the database file to\fBstdout\fR. The output is similar tobogofilter \-vv. Finally, hapaxes (tokens which were only seen once) and pure tokens (tokens which were encountered only in ham or only in spam) are counted..PPThe\fB\-l \fR\fB\fIfile\fR\fRoption tellsbogoutilto load the data from\fBstdin\fRinto the database file. If the database file exists,\fBstdin\fRdata is merged into the database file, with counts added up..PPThe\fB\-m\fRoption tellsbogoutilto perform maintenance functions on the specified database, i.e. discard tokens that are older than desired, have counts that are too small, or sizes (lengths) that are too long or too short..PPThe\fB\-w \fR\fB\fIfile\fR\fRoption tellsbogoutilto display token information from the database file. The option takes an argument, which is either the name of the wordlist (usually wordlist.db) or the name of the directory containing it. Tokens can be listed on the command line or piped tobogoutil. When there are extra arguments on the command line,bogoutilwill use them as the tokens to lookup. If there are no extra arguments,bogoutilwill read tokens from\fBstdin\fR..PPThe\fB\-p \fR\fB\fIfile\fR\fRoption tellsbogoutilto display the database information for one or more tokens. The display includes a probability column with the token's spam score (computed usingbogofilter's default values). Option\fB\-p\fRtakes the same arguments as option\fB\-w\fR..PPThe\fB\-r \fR\fB\fIfile\fR\fRoption tellsbogoutilto recalculate the ROBX value and print it as a six\-digit fraction..PPThe\fB\-R \fR\fB\fIfile\fR\fRoption does the same as\fB\-r\fR, but prints more information and saves the result in the training database..PPThe\fB\-I \fR\fB\fIfile\fR\fRoption tellsbogoutilto read its input from\fIfile\fRrather than stdin..PPThe\fB\-O \fR\fB\fIfile\fR\fRoption tellsbogoutilto write its output to\fIfile\fRrather than stdout..PPThe\fB\-v\fRoption produces verbose output on\fBstderr\fR. This option is primarily useful for debugging..PPThe\fB\-C\fRinhibits reading configuration files and letsbogoutilgo with the defaults..PPThe\fB\-\-config\-file \fR\fB\fIfile\fR\fRoption tellsbogoutilto read\fIfile\fRinstead of the standard configuration file..PPThe\fB\-D\fRredirects debug output to stdout (it usually goes to stderr)..PPThe\fB\-x \fR\fB\fIflags\fR\fRoption sets debugging flags..PPOption\fB\-n\fRstands for "replace non\-ascii characters". It will replace characters with the high bit (0x80) by question marks. This can be useful if a word list has lots of unreadable tokens, for example from Asian spam. The "bad" characters will be converted to question marks and matching tokens will be combined when used with\fB\-m\fRor\fB\-l\fR, but not with\fB\-d\fR..PPOption\fB\-a age\fRindicates an acceptable token age, with older ones being discarded. The age can be a date (in form YYYYMMMDD) or a day count, i.e. discard tokens older than\fBage\fRdays..PPOption\fB\-c value\fRindicates that tokens with counts less than or equal to\fBvalue\fRare to be discarded..PPOption\fB\-s min,max\fRis used to discard tokens based on their size, i.e. length. All tokens shorter than\fBmin\fRor longer than\fBmax\fRwill be discarded..PPOption\fB\-y date\fRis specifies the date to give to tokens that don't have dates. The format is YYYYMMDD..PPThe\fB\-h\fRoption prints the help message and exits..PPThe\fB\-V\fRoption prints the version number and exits..SH "ENVIRONMENT MAINTENANCE".PPThe\fB\-\-db\-checkpoint \fR\fB\fIdir\fR\fRoption causesbogoutilto flush the buffer caches and checkpoint the database environment..PPThe\fB\-\-db\-list\-logfiles \fR\fB\fIdir\fR\fRoption causesbogoutilto list the log files in the environment. Zero or more keywords can be added or combined (separated by whitespace) to modify the behavior of this mode. The default behavior is to list only inactive log files with relative paths. You can add\fBall\fRto list all log files (inactive and active). You can add\fBabsolute\fRto switch the listing to absolute paths..PPThe\fB\-\-db\-prune \fR\fB\fIdir\fR\fRoption causesbogoutilto checkpoint the database environment and remove inactive log files..PPThe\fB\-\-db\-recover \fR\fB\fIdir\fR\fRoption runs a regular database recovery in the specified database directory. If that fails, it will retry with a (usually slower) catastrophic database recovery. If that fails, too, your database cannot be repaired and must be rebuilt from scratch. This is only supported when compiled with Berkeley DB support with transactions enabled. Trying recovery with QDBM or SQLite3 support will result in an error..PPThe\fB\-\-db\-recover\-harder \fR\fB\fIdir\fR\fRoption runs a catastrophic data base recovery in the specified database directory. If that fails, your database cannot be repaired and must be rebuilt from scratch. This is only supported when compiled with Berkeley DB support with transactions enabled. Trying recovery with QDBM or SQLite3 support will result in an error..PPThe\fB\-\-db\-remove\-environment \fR\fB\fIdirectory\fR\fRoption has no short option equivalent. It runs recovery in the given directory and then removes the database environment. Use this\fIbefore\fRupgrading to a new Berkeley DB version if the new version to be installed requires a log file format update..PPThe\fB\-\-db\-print\-leafpage\-count \fR\fB\fIfile\fR\fRoption prints the number of leaf pages in the database file\fIfile\fRas a decimal number, or UNKNOWN if the database does not support querying this figure..PPThe\fB\-\-db\-print\-pagesize \fR\fB\fIfile\fR\fRoption prints the size of a database page in\fIfile\fRas a decimal number, or UNKNOWN for databases with variable page size or databases that do not allow a query of the database page size..PPThe\fB\-\-db\-verify \fR\fB\fIfile\fR\fRoption requests thatbogofilterverifies the database file. It prints only errors, unless in verbose mode..SH "DATA FORMAT".PPBogoutilreads and writes text files where each nonblank line consists of a word, any amount of horizontal whitespace, a numeric word count, more whitespace, and (optionally) a date in form YYYYMMDD. Blank lines are skipped..SH "RETURN VALUES".PP0 for successful operation. 1 for most errors. 3 for I/O or other errors. Error 3 usually means that something is seriously wrong with the database files..SH "AUTHOR".PPGyepi Sam<gyepi@praxis\-sw.com>..PPMatthias Andree<matthias.andree@gmx.de>..PPDavid Relson<relson@osagesoftware.com>..PPFor updates, see[1]\&\fI the bogofilter project page\fR..SH "SEE ALSO ".PPbogofilter(1), bogolexer(1), bogotune(1), bogoupgrade(1).SH "REFERENCES".TP 31.\ the bogofilter project page\%http://bogofilter.sourceforge.net/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?