Gjsify LogoGjsify Logo

A set of parser options used by #GMimeParser and various other parsing functions.

record

Hierarchy

  • ParserOptions

Index

Constructors

Properties

name: string

Methods

  • free(): void
  • Gets the compliance mode that should be used when parsing rfc822 addresses.

    Note: Even in #GMIME_RFC_COMPLIANCE_STRICT mode, the address parser is fairly liberal in what it accepts. Setting it to #GMIME_RFC_COMPLIANCE_LOOSE just makes it try harder to deal with garbage input.

    Returns RfcComplianceMode

  • get_allow_addresses_without_domain(): boolean
  • Gets whether or not the rfc822 address parser should allow addresses without a domain.

    In general, you'll probably want this value to be %FALSE (the default) as it allows maximum interoperability with existing (broken) mail clients and other mail software such as sloppily written perl scripts (aka spambots) that do not properly quote the name when it contains a comma.

    This option exists in order to allow parsing of mailbox addresses that do not have a domain component. These types of addresses are rare and were typically only used when sending mail to other users on the same UNIX system.

    Returns boolean

  • get_fallback_charsets(): string[]
  • Gets the compliance mode that should be used when parsing Content-Type and Content-Disposition parameters.

    Note: Even in #GMIME_RFC_COMPLIANCE_STRICT mode, the parameter parser is fairly liberal in what it accepts. Setting it to #GMIME_RFC_COMPLIANCE_LOOSE just makes it try harder to deal with garbage input.

    Returns RfcComplianceMode

  • Gets the compliance mode that should be used when parsing rfc2047 encoded words.

    Note: Even in #GMIME_RFC_COMPLIANCE_STRICT mode, the rfc2047 parser is fairly liberal in what it accepts. Setting it to #GMIME_RFC_COMPLIANCE_LOOSE just makes it try harder to deal with garbage input.

    Returns RfcComplianceMode

  • Sets the compliance mode that should be used when parsing rfc822 addresses.

    In general, you'll probably want this value to be #GMIME_RFC_COMPLIANCE_LOOSE (the default) as it allows maximum interoperability with existing (broken) mail clients and other mail software such as sloppily written perl scripts (aka spambots).

    Note: Even in #GMIME_RFC_COMPLIANCE_STRICT mode, the address parser is fairly liberal in what it accepts. Setting it to #GMIME_RFC_COMPLIANCE_LOOSE just makes it try harder to deal with garbage input.

    Parameters

    Returns void

  • set_allow_addresses_without_domain(allow: boolean): void
  • Sets whether the rfc822 address parser should allow addresses without a domain.

    In general, you'll probably want this value to be %FALSE (the default) as it allows maximum interoperability with existing (broken) mail clients and other mail software such as sloppily written perl scripts (aka spambots) that do not properly quote the name when it contains a comma.

    This option exists in order to allow parsing of mailbox addresses that do not have a domain component. These types of addresses are rare and were typically only used when sending mail to other users on the same UNIX system.

    Parameters

    • allow: boolean

      %TRUE if the parser should allow addresses without a domain or %FALSE otherwise

    Returns void

  • set_fallback_charsets(charsets: string): void
  • Sets the fallback charsets to try when decoding 8-bit headers.

    Note: It is recommended that the list of charsets start with utf-8 and end with iso-8859-1.

    Parameters

    • charsets: string

      a %NULL-terminated list of charsets or %NULL for the default list

    Returns void

  • Sets the compliance mode that should be used when parsing Content-Type and Content-Disposition parameters.

    In general, you'll probably want this value to be #GMIME_RFC_COMPLIANCE_LOOSE (the default) as it allows maximum interoperability with existing (broken) mail clients and other mail software such as sloppily written perl scripts (aka spambots).

    Note: Even in #GMIME_RFC_COMPLIANCE_STRICT mode, the parameter parser is fairly liberal in what it accepts. Setting it to #GMIME_RFC_COMPLIANCE_LOOSE just makes it try harder to deal with garbage input.

    Parameters

    Returns void

  • Sets the compliance mode that should be used when parsing rfc2047 encoded words.

    In general, you'll probably want this value to be #GMIME_RFC_COMPLIANCE_LOOSE (the default) as it allows maximum interoperability with existing (broken) mail clients and other mail software such as sloppily written perl scripts (aka spambots).

    Note: Even in #GMIME_RFC_COMPLIANCE_STRICT mode, the parameter parser is fairly liberal in what it accepts. Setting it to #GMIME_RFC_COMPLIANCE_LOOSE just makes it try harder to deal with garbage input.

    Parameters

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method