Next: , Previous: Message, Up: libmailbox


3.1.5 Envelope

     /* Prefix mu_envelope_ is reserved. */
     #include <mailutils/envelope.h>
— Function: int mu_envelope_create (mu_envelope_t *, void *)

Primarily for internal use.

— Function: void mu_envelope_destroy (mu_envelope_t *, void *)

Primarily for internal use.

— Function: void* mu_envelope_get_owner (mu_envelope_t)
— Function: int mu_envelope_sender (mu_envelope_t, char *, size_t, size_t *)

Get the address that this message was reportedly received from. This would be the "mail from" argument if the message was delivered or received via SMTP, for example.

— Function: int mu_envelope_set_sender (mu_envelope_t, int (*_sender) (mu_envelope_t, char *, size_t, size_t *), void *)

Primarily for internal use. The implementation of mu_envelope_t depends on the mailbox type, this allows the function which actually gets the sender to be set by the creator of an mu_envelope_t.

— Function: int mu_envelope_date (mu_envelope_t, char *, size_t, size_t *)

Get the date that the message was delivered to the mailbox, in something close to ANSI ctime() format: Mon Jul 05 13:08:27 1999.

— Function: int mu_envelope_set_date (mu_envelope_t, int (*_date) (mu_envelope_t, char *, size_t, size_t *), void *)

Primarily for internal use. The implementation of mu_envelope_t depends on the mailbox type, this allows the function which actually gets the date to be set by the creator of an mu_envelope_t.