23 #ifndef MUTT_EMAIL_EMAIL_H 24 #define MUTT_EMAIL_EMAIL_H An Event that happened to an Email.
int lines
How many lines in the body of this message?
An existing header has been changed.
The envelope/body of an email.
struct Body * body
List of MIME parts.
NotifyHeader
Types of Header Event.
struct MuttThread * thread
Thread of Emails.
bool attach_del
Has an attachment marked for deletion.
short recipient
User_is_recipient()'s return value, cached.
bool display_subject
Used for threading.
bool threaded
Used for threading.
bool changed
Email has been edited.
uint16_t SecurityFlags
Flags, e.g. SEC_ENCRYPT.
struct ListNode * header_find(const struct ListHead *hdrlist, const char *header)
Find a header, matching on its field, in a list of headers.
bool searched
Email has been searched.
#define STAILQ_ENTRY(type)
bool zoccident
True, if west of UTC, False if east.
bool expired
Already expired?
void email_free(struct Email **ptr)
Free an Email.
bool email_cmp_strict(const struct Email *e1, const struct Email *e2)
Strictly compare message emails.
void emaillist_clear(struct EmailList *el)
Drop a private list of Emails.
bool tagged
Email is tagged.
struct ListNode * header_update(struct ListNode *hdrnode, const char *header)
Update an existing header.
bool old
Email is seen, but unread.
bool mime
Has a MIME-Version header?
struct Envelope * env
Envelope information.
A new Email has just been created.
A new header has been added.
short attach_total
Number of qualifying attachments in message, if attach_valid.
bool superseded
Got superseded?
A header is about to be removed.
struct TagList tags
For drivers that support server tagging.
bool quasi_deleted
Deleted from neomutt, but not modified on disk.
bool trash
Message is marked as trashed on disk (used by the maildir_trash option)
time_t date_sent
Time when the message was sent (UTC)
bool visible
Is this message part of the view?
struct ListHead chain
Mixmaster chain.
bool active
Message is not to be removed.
struct ListNode * header_add(struct ListHead *hdrlist, const char *header)
Add a header to a list.
size_t email_size(const struct Email *e)
compute the size of an email
size_t num_hidden
Number of hidden messages in this view (only valid when collapsed is set)
void(* edata_free)(void **ptr)
Free the private data attached to the Email.
size_t sequence
Sequence number assigned on creation.
bool attach_valid
true when the attachment count is valid
struct Email * email_new(void)
Create a new Email.
API for encryption/signing of emails.
bool collapsed
Is this message part of a collapsed thread?
bool purge
Skip trash folder when deleting.
int vnum
Virtual message number.
unsigned int zhours
Hours away from UTC.
char * tree
Character string to print thread tree.
SecurityFlags security
bit 0-10: flags, bit 11,12: application, bit 13: traditional pgp See: ncrypt/lib.h pgplib...
struct Notify * notify
Notifications handler.
NotifyEmail
Types of Email Event.
LOFF_T offset
Where in the stream does this message begin?
An Email is about to be destroyed.
STAILQ_HEAD(EmailList, EmailNode)
int emaillist_add_email(struct EmailList *el, struct Email *e)
Add an Email to a list.
bool flagged
Marked important?
bool deleted
Email is deleted.
void * edata
Driver-specific data.
struct Email * email
Email in the list.
bool replied
Email has been replied to.
char * path
Path of Email (for local Mailboxes)
int index
The absolute (unsorted) message number.
bool subject_changed
Used for threading.
bool recip_valid
Is_recipient is valid.
Convenience wrapper for the library headers.
struct ListNode * header_set(struct ListHead *hdrlist, const char *header)
Set a header value in a list.
unsigned int zminutes
Minutes away from UTC.
int pair
Color-pair to use when displaying in the index.
time_t received
Time when the message was placed in the mailbox.
void header_free(struct ListHead *hdrlist, struct ListNode *target)
Free and remove a header from a header list.
bool matched
Search matches this Email.
int msgno
Number displayed to the user.
void * nm_edata
Notmuch private data.