|
NAMEmailinspect - sort an mbox by category and pipe emails to a command.SYNOPSISmailinspect [-zjiI] -c category FILE [-gG regex]... [-s command] [-p style] [-o scoring] mailinspect -V DESCRIPTIONmailinspect reads the single mbox folder named FILE and sorts it in order of similarity to the category, which must have been created by dbacl(1). It can be used as a command line tool or interactively, when given the -I switch.When used as a command line tool, mailinspect prints the sorted list of emails on STDOUT. Each line consists of a seek position for the given email within FILE, followed by the score and a description string in one of several styles chosen via the -p option. When supplying a command string in conjunction with the -s option, mailinspect spawns a shell and executes command for every email in FILE (possibly selected via the -g or-G options), in the sorted order. This is similar to the formail(1) functionality, except the latter doesn't order the emails. In interactive mode, all the command line functionality is available via keypresses. The sorted list of emails is displayed in a scrollable format, and can be viewed, searched, tagged, resorted and sent to shell commands. Predefined shell commands can be associated with function keys. See the usage section below. The sorting heuristics are currently (and may always be) experimental, so there is no guarantee that the orderings are particularly well suited for anything. EXIT STATUSmailinspect returns 1 on success, 0 if some error occurred.OPTIONS
USAGEmailinspect needs to read a prelearned category before it can sort the emails in FILE. See dbacl(1).Suppose you have two mail folders named good.mbox and bad.mbox respectively. You can create appropriate categories by typing the commands % dbacl -l good good.mbox -T email
Next, you can type the following command to view interactively the bad.mbox file with the emails whose score is closest to the category good listed first: % mailinspect -I -c good bad.mbox Alternatively, you might be interested only in the five emails in the folder bad.mbox whose score marks them as the furthest away from the category bad, completely independently from any other category such as good (ie you want outliers in the scoring sense). % mailinspect -z -c bad bad.mbox | head -5 In interactive mode, the following keys are defined:
As a convenience, the function keys F1-F10 can each be associated with a shell command string. In this case, 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 .mailinspectrc if it exits. FILES
ENVIRONMENT
SOURCEThe source code for the latest version of this program is available at the following locations:http://www.lbreyer.com/gpl.html
AUTHORLaird A. Breyer <laird@lbreyer.com>SEE ALSObayesol(1), dbacl(1), less(1), mailcross(1), regex(7)
Visit the GSP FreeBSD Man Page Interface. |