12.06.2015 Views

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

SHOW MORE
SHOW LESS

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 111<br />

}<br />

void setCategory (dictionaryWord ::mailCategory c)<br />

{<br />

category = c;<br />

}<br />

dictionaryWord ::mailCategory getCategory (void) const<br />

{<br />

return category ;<br />

}<br />

void setBSDmode (bool mode )<br />

{<br />

BSDfolder = mode ;<br />

}<br />

bool getBSDmode (void) const<br />

{<br />

return BSDfolder ;<br />

}<br />

void setNewMessageEligiblity (bool stat = true )<br />

{<br />

lastLineBlank = stat ;<br />

}<br />

void forceInHeader (bool state = true )<br />

{<br />

inHeader = state ;<br />

}<br />

bool nextLine (string &s);<br />

int nextByte (void);<br />

#ifdef HAVE_DIRECTORY_TRAVERSAL<br />

bool findNextFileInDirectory (string &fname );<br />

bool openNextFileInDirectory (void);<br />

#endif<br />

static void stringCanonicalise (string &s);<br />

static bool compareHeaderField (string &s, const string target , string &arg );<br />

static bool parseHeaderArgument (string &s, const string target , string &arg );<br />

static bool isSpoofedExecutableFileExtension (const string &s);<br />

bool isNewMessage (void) const<br />

{<br />

return newMessage ;<br />

}<br />

unsigned int getMessageCount (void) const<br />

{<br />

return nMessages ;<br />

}<br />

unsigned int getLineCount (void) const<br />

{<br />

return nLines ;<br />

}<br />

bool isByteStream (void) const<br />

{

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

Saved successfully!

Ooh no, something went wrong!