⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mailinspect.1

📁 dbacl是一个通用目的的digramic贝叶斯文本分类器。它可以学习你提供的文本
💻 1
字号:
\" t.TH MAILINSPECT 1 "Bayesian Text Classification Tools" "Version 1.3" "".SH NAMEmailinspect \- sort an mbox by category and pipe emails to a command..SH SYNOPSIS.HP.B mailinspect [-zjiI]-c .I categoryFILE [-gG .IR regex ]...[-s.IR command ][-p .IR style ][-o.IR scoring ].HP.B mailinspect-V.SH DESCRIPTION.PP.B mailinspectreads the single mbox folder named FILE and sorts it in order of similarity tothe .IR category , which must have been created by .BR dbacl (1). It can be used as a command line tool or interactively, when given the .B -I switch. .PPWhen used as a command line tool, .B mailinspectprints the sorted list of emails on STDOUT. Each line consists of aseek position for the given email within FILE, followed by the score and a descriptionstring in one of several styles chosen via the .B -poption. .PPWhen supplying a .I commandstring in conjunction with the .B -soption, .B mailinspectspawns a shell and executes .I command for every email in FILE (possibly selected via the .BR -g " or" -Goptions), in the sorted order. This is similar to the .BR formail (1)functionality, except the latter doesn't order the emails..PPIn interactive mode, all the command line functionality is available viakeypresses. The sorted list of emails is displayed in a scrollable format,and can be viewed, searched, tagged, resorted and sent to shell commands. Predefinedshell commands can be associated with function keys. See the usage section below..PPThe sorting heuristics are currently (and may always be) experimental, so there is no guarantee that the orderings are particularly well suitedfor anything. Normally, a smaller score means the email is closer to theselected category, while a bigger score means it is further away..SH EXIT STATUS.Bmailinspectreturns 1 on success, 0 if some error occurred..SH OPTIONS.IP -cUse .I categoryto compute the scores and sort the emails, which should be the file name of a .BR dbacl (1)category..IP -gOnly emails matching the regular expression.I regexare sorted. All other emails are ignored. When several.B -gand .B -Goptions are present on the command line,earlier regular expressions are overriddenby later ones where applicable..IP -iForce internationalized mode. .IP -jForce regular expression searches to be case sensitive..IP -oDetermines the scoring formula to be used. The parameter .I scoringmust be an integer greater than or equal to zero. By default,.I scoring equals zero..IP -pPrints the email index in the given style. The parameter .I stylemust be an integer greater than or equal to zero. By default,.I styleequals zero..IP -sFor each email in the list, execute the shell.IR command ,with the email body on STDIN. Emails are processed in sorted order..IP -zReverse sort order. Normally, emails are sorted in order of closest to furthest relative to .IR category ,but in this case, the opposite is true. .IP -IInteractive mode. Instead of printing the sorted list of emailson STDOUT, emails are displayed and can be scrolled, viewed, searched and piped interactively at the terminal..IP -GOnly emails .B notmatching the regular expression.I regexare sorted. Opposite of .B -gswitch..IP -VPrint the program version number and exit. .SH USAGE.PP.B mailinspect needs to read a prelearned.I category before it can sort the emails in FILE. See .BR dbacl (1)..PPSuppose you have two mail folders named .I good.mboxand.IR bad.mbox respectively. You can create appropriate categories by typing the commands.PP.na% dbacl -l good good.mbox -T email.br% dbacl -l bad bad.mbox -T email.ad.PPNext, you can type the following command to view interactively the .I bad.mboxfile with the emails whose score is closest to the category.I goodlisted first:.PP.na% mailinspect -I -c good bad.mbox .ad.PPAlternatively, you might be interested only in the five emails in the folder .I bad.mboxwhose score marks them as the furthest away from the category .BR bad ,completely independently from any other category such as .I good (ie you want outliers in the scoring sense)..PP.na% mailinspect -z -c bad bad.mbox | head -5.ad.PPIn interactive mode, the following keys are defined:.IP otoggles another scoring formula..IP ptoggles another display style..IP qexits .BR mailinspect ..IP ssends the currently highlighted email to a shell command..IP Ssends all currently tagged emails to a shell command, in sorted order.Every email executes the shell command independently..IP ttags the currently highlighted email..IP Ttags all listed emails..IP vsends the currently highlighted email to $PAGER for viewing. If the environmentvariable PAGER is not defined, sends the email to .BR less (1)..IP uuntags the highlighted email..IP Uuntags all listed emails..IP zreverses the sort order of displayed emails..IP /searches for a regular expression (see .BR regex (7))anywhere within the contents of all listed emails. Hides all emailswhich don't match..IP ?like /, but hides all emails which match, keeping all those which don't match..PPAs a convenience, the function keys F1-F10 can each be associated with a shell command string. In thiscase, typing a function key has the same effect as the S key, but the command is already typed and ready to be edited/accepted.The function key associations are read from the configuration file .mailinspectrcif it exits. .SH FILES.PP.IP $HOME/.mailinspectrc.B mailinspect reads the file .mailinspectrc in the $HOME directory, if it exists. This is a plain text file which contains entries of the form.IP.na# this is a comment.brF2 cat >> interesting.mbox.brF5 mail zarniwoop@megadodo.com.ad.SH ENVIRONMENT.PP.IP DBACL_PATHWhen this variable is set, its value is prepended to every .I categoryfilename which doesn't start with a '/'..SH SOURCE.PPThe source code for the latest version of this program is available at http://www.lbreyer.com/gpl.html.SH AUTHOR.PPLaird A. Breyer <laird@lbreyer.com>.SH SEE ALSO.PP.BR bayesol (1),.BR dbacl (1),.BR less (1),.BR mailcross (1),.BR regex (7)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -