24#ifndef MUTT_EMAIL_ENVELOPE_H
25#define MUTT_EMAIL_ENVELOPE_H
34#define MUTT_ENV_CHANGED_IRT (1 << 0)
35#define MUTT_ENV_CHANGED_REFS (1 << 1)
36#define MUTT_ENV_CHANGED_XLABEL (1 << 2)
37#define MUTT_ENV_CHANGED_SUBJECT (1 << 3)
60 struct AddressList
to;
61 struct AddressList
cc;
62 struct AddressList
bcc;
int mutt_env_to_intl(struct Envelope *env, const char **tag, char **err)
Convert an Envelope's Address fields to Punycode format.
void mutt_env_merge(struct Envelope *base, struct Envelope **extra)
Merge the headers of two Envelopes.
void mutt_env_free(struct Envelope **ptr)
Free an Envelope.
struct Envelope * mutt_env_new(void)
Create a new Envelope.
NotifyEnvelope
Types of Envelope Event.
@ NT_ENVELOPE_SUBJECT
"Subject:" header has changed
@ NT_ENVELOPE_BCC
"Bcc:" header has changed
@ NT_ENVELOPE_TO
"To:" header has changed
@ NT_ENVELOPE_FCC
"Fcc:" header has changed
@ NT_ENVELOPE_CC
"Cc:" header has changed
@ NT_ENVELOPE_REPLY_TO
"Reply-To:" header has changed
@ NT_ENVELOPE_FROM
"From:" header has changed
@ NT_ENVELOPE_X_COMMENT_TO
"X-Comment-To:" header has changed
@ NT_ENVELOPE_FOLLOWUP_TO
"Followup-To:" header has changed
@ NT_ENVELOPE_NEWSGROUPS
"Newsgroups:" header has changed
void mutt_env_set_subject(struct Envelope *env, const char *subj)
Set both subject and real_subj to subj.
ExpandoDataEnvelope
Expando UIDs for Envelopes.
@ ED_ENV_REAL_NAME
Envelope.to (first)
@ ED_ENV_SUBJECT
Envelope.subject, Envelope.disp_subj.
@ ED_ENV_NEWSGROUP
Envelope.newsgroups.
@ ED_ENV_INITIALS
Envelope.from (first)
@ ED_ENV_FROM_FULL
Envelope.from (all)
@ ED_ENV_X_COMMENT_TO
Envelope.x_comment_to.
@ ED_ENV_FROM
Envelope.from (first)
@ ED_ENV_LIST_ADDRESS
Envelope.to, Envelope.cc.
@ ED_ENV_SPAM
Envelope.spam.
@ ED_ENV_SENDER
Envelope, make_from()
@ ED_ENV_TO_ALL
Envelope.to (all)
@ ED_ENV_X_LABEL
Envelope.x_label.
@ ED_ENV_NAME
Envelope.from (first)
@ ED_ENV_CC_ALL
Envelope.cc.
@ ED_ENV_ORGANIZATION
Envelope.organization.
@ ED_ENV_REPLY_TO
Envelope.reply_to.
@ ED_ENV_LIST_EMPTY
Envelope.to, Envelope.cc.
@ ED_ENV_THREAD_X_LABEL
Envelope.x_label.
@ ED_ENV_MESSAGE_ID
Envelope.message_id.
@ ED_ENV_SENDER_PLAIN
Envelope, make_from()
@ ED_ENV_USER_NAME
Envelope.to (first)
@ ED_ENV_USERNAME
Envelope.from.
@ ED_ENV_THREAD_TREE
Email.tree.
@ ED_ENV_TO
Envelope.to, Envelope.cc (first)
@ ED_ENV_FIRST_NAME
Envelope.from, Envelope.to, Envelope.cc.
bool mutt_env_notify_send(struct Email *e, enum NotifyEnvelope type)
Send an Envelope change notification.
bool mutt_env_cmp_strict(const struct Envelope *e1, const struct Envelope *e2)
Strictly compare two Envelopes.
struct AutocryptHeader * mutt_autocrypthdr_new(void)
Create a new AutocryptHeader.
void mutt_autocrypthdr_free(struct AutocryptHeader **ptr)
Free an AutocryptHeader.
void mutt_env_to_local(struct Envelope *env)
Convert an Envelope's Address fields to local format.
Convenience wrapper for the library headers.
String manipulation buffer.
The envelope/body of an email.
struct ListHead userhdrs
user defined headers
char * supersedes
Supersedes header.
char * list_subscribe
This stores a mailto URL, or nothing.
struct AddressList return_path
Return path for the Email.
char *const subject
Email's subject.
struct AddressList to
Email's 'To' list.
unsigned char changed
Changed fields, e.g. MUTT_ENV_CHANGED_SUBJECT.
char * followup_to
List of 'followup-to' fields.
struct AddressList reply_to
Email's 'reply-to'.
char * message_id
Message ID.
char * x_comment_to
List of 'X-comment-to' fields.
struct AddressList x_original_to
Email's 'X-Original-to'.
struct AutocryptHeader * autocrypt_gossip
Autocrypt Gossip header.
char * newsgroups
List of newsgroups.
struct AddressList mail_followup_to
Email's 'mail-followup-to'.
struct AddressList cc
Email's 'Cc' list.
struct AddressList sender
Email's sender.
struct ListHead references
message references (in reverse order)
struct AutocryptHeader * autocrypt
Autocrypt header.
struct Buffer spam
Spam header.
struct ListHead in_reply_to
in-reply-to header content
struct AddressList bcc
Email's 'Bcc' list.
char * xref
List of cross-references.
char * organization
Organisation header.
char * list_post
This stores a mailto URL, or nothing.
char *const real_subj
Offset of the real subject.
char * disp_subj
Display subject (modified copy of subject)
char * list_unsubscribe
This stores a mailto URL, or nothing.
struct AddressList from
Email's 'From' list.