company logo

Email :: headerAttribute - Header attribute

An Email header may contain a number of attributes identified by name. Each header attribute is defined on a single line (simple case) starting with the attribute name followed by the attribute value:

attr_name : attr_value \r\n

The headerAttribute property allows accessing single header attributes.

Return value:  String value ( odaba::String & )

Implementation overview

Implementation details

  1. Get header attribute
    odaba::String Email  :: headerAttribute ( odaba::String &sName )

    The function returns the current header attribute value for the attribute passed in sName . If no such attribute exists, the function returns an empty string, which may also correspond to an empty header attribute.

    • sName - Name
  2. to list
  3. Set header attribute
    odaba::String Email  :: headerAttribute ( odaba::String &sName, odaba::String &sValue )

    The function sets the header attribute value for the attribute passed in sName to the value passed in sValue . If no such attribute exists, it will be created. Otherwise, the existing attribute value will be replaced.

    • sName - Name
    • sValue - String value
  4. to list