12.06.2015 Views

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

§242 ANNOYANCE-FILTER HEADER INCLUDE FILES 189<br />

242. Procedure usage prints how-to-call information. This serves as a reference for the option<br />

processing code which follows. Don’t forget to update usage when you add an option!<br />

〈 Global functions 184 〉 +≡<br />

static void usage (void)<br />

{<br />

cout ≪ PRODUCT ≪ "␣␣−−␣␣<strong>Annoyance</strong>␣<strong>Filter</strong>.␣␣Call" ≪ endl ;<br />

cout ≪ "␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣with␣" ≪ PRODUCT ≪ "␣[options]" ≪ endl ;<br />

cout ≪ "" ≪ endl ;<br />

cout ≪ "Options:" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−annotate␣options␣␣␣␣␣Specify␣optional␣annotations␣in␣−−transcript" ≪<br />

endl ;<br />

cout ≪ "␣␣␣␣−−autoprune␣n␣␣␣␣␣␣␣␣␣␣Automatically␣prune␣unique␣words\<br />

␣when␣dictionary␣exceeds␣n␣bytes" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−biasmail␣n␣␣␣␣␣␣␣␣␣␣␣Set␣frequency␣bias␣for␣words␣and\<br />

␣phrases␣in␣legitimate␣mail␣to␣n" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−binword␣n␣␣␣␣␣␣␣␣␣␣␣␣Scan␣binary␣streams␣for␣words␣>=\<br />

␣n␣characters␣(0␣=␣none)" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−bsdfolder␣␣␣␣␣␣␣␣␣␣␣␣Next␣−−mail␣or␣−−junk␣folder␣use\<br />

s␣BSD␣\"From␣\"␣separator" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−classify␣fname␣␣␣␣␣␣␣Classify␣first␣message␣in␣fname" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−clearjunk␣␣␣␣␣␣␣␣␣␣␣␣Clear␣junk␣counts␣in␣dictionary" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−clearmail␣␣␣␣␣␣␣␣␣␣␣␣Clear␣mail␣counts␣in␣dictionary" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−copyright␣␣␣␣␣␣␣␣␣␣␣␣Print␣copyright␣information" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−csvread␣fname␣␣␣␣␣␣␣␣Import␣dictionary␣from␣fname␣in␣CSV␣format" ≪<br />

endl ;<br />

cout ≪ "␣␣␣␣−−csvwrite␣fname␣␣␣␣␣␣␣Export␣dictionary␣to␣fname␣in␣CSV␣format" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−fread␣fname␣␣␣␣␣␣␣␣␣␣Load␣fast␣dictionary␣from␣fname" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−fwrite␣fname␣␣␣␣␣␣␣␣␣Write␣fast␣dictionary␣to␣fname" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−help,␣−u␣␣␣␣␣␣␣␣␣␣␣␣␣Print␣this␣message" ≪ endl ;<br />

#ifdef Jig<br />

cout ≪ "␣␣␣␣−−jig␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣Test␣component␣in␣temporary␣jig" ≪ endl ;<br />

#endif<br />

cout ≪ "␣␣␣␣−−junk,␣−j␣folder␣␣␣␣␣␣Add␣folder␣contents␣to␣junk␣mail␣dictionary" ≪<br />

endl ;<br />

cout ≪ "␣␣␣␣−−list␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣Print␣dictionary␣on␣standard␣output" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−mail,␣−m␣folder␣␣␣␣␣␣Add␣folder␣contents␣to␣legitimat\<br />

e␣mail␣dictionary" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−newword␣n␣␣␣␣␣␣␣␣␣␣␣␣Set␣probability␣for␣words␣not␣in\<br />

␣dictionary␣to␣n" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−pdiag␣fname␣␣␣␣␣␣␣␣␣␣Print␣parser␣diagnostics␣to␣fname" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−phraselimit␣n␣␣␣␣␣␣␣␣Set␣phrase␣maximum␣length␣to␣n␣characters" ≪<br />

endl ;<br />

cout ≪ "␣␣␣␣−−phrasemax␣n␣␣␣␣␣␣␣␣␣␣Set␣phrase␣maximum␣to␣n␣words" ≪ endl ;<br />

cout ≪ "␣␣␣␣−−phrasemin␣n␣␣␣␣␣␣␣␣␣␣Set␣phrase␣minimum␣to␣n␣words" ≪ endl ;<br />

#ifdef HAVE_PLOT_UTILITIES<br />

cout ≪ "␣␣␣␣−−plot␣fname␣␣␣␣␣␣␣␣␣␣␣Plot␣histogram␣of␣word␣probabili\<br />

ties␣in␣dictionary" ≪ endl ;<br />

#endif<br />

#ifdef POP3_PROXY_SERVER<br />

cout ≪ "␣␣␣␣−−pop3port␣n␣␣␣␣␣␣␣␣␣␣␣Listen␣for␣POP3␣proxy␣requests␣o\<br />

n␣port␣n␣(default␣9110)" ≪ endl ;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!