Logo Search packages:      
Sourcecode: pan version File versions  Download package

pan::GNKSA Class Reference
[Usenet Utilities]

#include <gnksa.h>

List of all members.


Detailed Description

Utilities used for adhering to the Good Net-Keeping Seal of Approval guidelines.

Definition at line 34 of file gnksa.h.


Public Types

enum  {
  OK = 0, INTERNAL_ERROR = 1, LANGLE_MISSING = 100, RANGLE_MISSING = 101,
  LPAREN_MISSING = 102, RPAREN_MISSING = 103, ATSIGN_MISSING = 104, SINGLE_DOMAIN = 200,
  INVALID_DOMAIN = 201, ILLEGAL_DOMAIN = 202, UNKNOWN_DOMAIN = 203, INVALID_FQDN_CHAR = 204,
  ZERO_LENGTH_LABEL = 205, ILLEGAL_LABEL_LENGTH = 206, ILLEGAL_LABEL_HYPHEN = 207, ILLEGAL_LABEL_BEGNUM = 208,
  BAD_DOMAIN_LITERAL = 209, LOCAL_DOMAIN_LITERAL = 210, RBRACKET_MISSING = 211, LOCALPART_MISSING = 300,
  INVALID_LOCALPART = 301, ZERO_LENGTH_LOCAL_WORD = 302, ILLEGAL_UNQUOTED_CHAR = 400, ILLEGAL_QUOTED_CHAR = 401,
  ILLEGAL_ENCODED_CHAR = 402, BAD_ENCODE_SYNTAX = 403, ILLEGAL_PAREN_PHRASE = 404, ILLEGAL_PAREN_CHAR = 405,
  INVALID_REALNAME = 406, ILLEGAL_PLAIN_PHRASE = 407, ADDRTYPE_ROUTE = 0, ADDRTYPE_OLDSTYLE = 1
}
enum  SigType { SIG_NONE, SIG_STANDARD, SIG_NONSTANDARD }

Public Member Functions

bool remove_signature (StringView &text)
std::time_t tzoffset_sec (std::time_t *time)

Static Public Member Functions

static int check_domain (const StringView &domain)
static int check_from (const StringView &from, bool strict)
static int do_check_from (const StringView &from_header, StringView &setme_addr, StringView &setme_name, bool strict)
static SigType find_signature_delimiter (const StringView &text, int &setme_index)
static std::string generate_message_id (const StringView &domain)
static std::string generate_message_id_from_email_address (const StringView &email)
static std::string generate_references (const StringView &references, const StringView &message_id)
static StringView get_short_author_name (const StringView &full)
static SigType is_signature_delimiter (const StringView &line)
static std::string remove_broken_message_ids_from_references (const StringView &references)
static void strip_realname (char *realname)
static std::string trim_references (const StringView &refs, size_t cutoff=986u)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index