<<< Previous |  | Next >>>

# mail::envelope

## Name

mail::envelope -- Message envelope information

## Synopsis

#include <libmail/envelope.H>
mail::envelope myEnvelope;

## USAGE

`mail::envelope` describes the message's "envelope", and contains the following fields:

time_t date

  The contents of the message's `Date:` header, or `0` if the message does not have the `Date:` header.

std::string subject

  The contents of the message's `Subject:` header. This is set to an empty string if the header is not present.

std::string inreplyto

  The contents of the message's `In-Reply-To:` header. This is set to an empty string if the header is not present.

std::string messageid

  The contents of the message's `Message-ID:` header. This is set to an empty string if the header is not present.

std::vector <std::string> references

  An array (possibly empty) of message IDs taken from the `References:` header. `references` is guaranteed to be filled in only for an `envelope` representing the whole message. `references` of `message/rfc822` attachments may or may not be filled in.

  `references` is initialized by either the `messageEnvelopeCallback` or the `messageReferencesCallback` method (depending on the underlying account type) of `mail::callback::message`.

std::vector<mail::address> from

  An array that lists the addresses in the message's `From:` header. This array is empty if the header is not present. If a message has more than one `From:` header, this array will list the addresses from all headers, combined.

std::vector<mail::address> sender

  An array that lists the addresses in the message's `Sender:` header. This array is empty if the header is not present. If a message has more than one `Sender:` header, this array will list the addresses from all headers, combined.

std::vector<mail::address> replyto

  An array that lists the addresses in the message's `Reply-To:` header. This array is empty if the header is not present. If a message has more than one `Reply-To:` header, this array will list the addresses from all headers, combined.

std::vector<mail::address> to

  An array that lists the addresses in the message's `To:` header. This array is empty if the header is not present. If a message has more than one `To:` header, this array will list the addresses from all headers, combined.

std::vector<mail::address> cc

  An array that lists the addresses in the message's `Cc:` header. This array is empty if the header is not present. If a message has more than one `Cc:` header, this array will list the addresses from all headers, combined.

std::vector<mail::address> bcc

  An array that lists the addresses in the message's `Bcc:` header. This array is empty if the header is not present. If a message has more than one `Bcc:` header, this array will list the addresses from all headers, combined.

## SEE ALSO

mail::address(3x), mail::mimestruct(3x), mail::account::getFolderIndexInfo(3x).

<<< Previous | Home | Next >>>
mail::emailAddress | Up | mail::mimestruct