The Annoyance Filter.pdf - Fourmilab
The Annoyance Filter.pdf - Fourmilab
The Annoyance Filter.pdf - Fourmilab
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
§129 ANNOYANCE-FILTER MAIL FOLDER 109<br />
stack〈string〉 partBoundaryStack ;<br />
/∗ stack of part boundaries for multipart/alternative nesting ∗/<br />
/∗ MIME properties of current part ∗/<br />
string mimeContentType ; /∗ Content−Type ∗/<br />
string mimeContentTypeCharset ; /∗ charset= ∗/<br />
string mimeContentTypeName ; /∗ name= ∗/<br />
string mimeContentTypeBoundary ; /∗ boundary= ∗/<br />
string mimeContentTransferEncoding ; /∗ Content−Transfer−Encoding ∗/<br />
string mimeContentDispositionFilename ; /∗ Content−Disposition filename= ∗/<br />
/∗ MIME decoders ∗/<br />
MIMEdecoder ∗mdp; /∗ Active MIME decoder if any ∗/<br />
identityMIMEdecoder imd ; /∗ Identity MIME decoder for testing ∗/<br />
base64MIMEdecoder bmd ; /∗ Base64 MIME decoder for testing ∗/<br />
sinkMIMEdecoder smd ; /∗ Sink MIME decoder ∗/<br />
quotedPrintableMIMEdecoder qmd ; /∗ Quoted-Printable MIME decoder ∗/<br />
/∗ Multi-byte character set decoding ∗/<br />
MBCSinterpreter ∗mbi ; /∗ Active multi-byte character set interpreter or Λ ∗/<br />
EUC MBCSdecoder mbd euc; /∗ EUC decoder ∗/<br />
GB2312 MBCSinterpreter mbi gb2312 ; /∗ GB2312 interpreter ∗/<br />
Big5 MBCSdecoder mbd big5 ; /∗ Big5 decoder ∗/<br />
Big5 MBCSinterpreter mbi big5 ; /∗ Big5 interpreter ∗/<br />
KR MBCSinterpreter mbi kr ; /∗ Korean (euc−kr) interpreter ∗/<br />
UTF 8 Unicode MBCSdecoder mbd utf 8 ; /∗ Unicode UTF-8 decoder ∗/<br />
Unicode MBCSinterpreter mbi unicode ; /∗ Unicode interpreter ∗/<br />
/∗ Application file string parsing ∗/<br />
applicationStringParser ∗asp; /∗ Application string parser or NULL if none ∗/<br />
flashTextExtractor aspFlash ; /∗ Flash animation string parser ∗/<br />
#ifdef HAVE_PDF_DECODER<br />
<strong>pdf</strong>TextExtractor aspPdf ; /∗ PDF string parser ∗/<br />
#endif /∗ Byte stream decoding ∗/<br />
bool byteStream ; /∗ Extract probable strings from binary files ? ∗/<br />
list〈string〉 ∗tlist ; /∗ Message transcript list ∗/<br />
list〈string〉 ∗dlist ; /∗ Diagnostic message contents list ∗/<br />
mailFolder(istream &i,<br />
dictionaryWord ::mailCategory cat = dictionaryWord ::Unknown )<br />
{<br />
#if defined (COMPRESSED_FILES) ∨ defined (HAVE_DIRECTORY_TRAVERSAL)<br />
ip = Λ;<br />
#endif<br />
#ifdef HAVE_DIRECTORY_TRAVERSAL<br />
dirFolder = false ;<br />
#endif<br />
set(&i, cat );<br />
}<br />
mailFolder(string fname ,<br />
dictionaryWord ::mailCategory cat = dictionaryWord ::Unknown )<br />
{<br />
#if defined (COMPRESSED_FILES) ∨ defined (HAVE_DIRECTORY_TRAVERSAL)<br />
ip = Λ;<br />
#endif<br />
〈 Check whether folder is a directory of messages 135 〉;<br />
#ifdef HAVE_DIRECTORY_TRAVERSAL