58 bool bf,
bool upd_mbox)
367 struct Email **ep = NULL;
370 struct Email *e = *ep;
464 char prompt[256] = { 0 };
465 snprintf(prompt,
sizeof(prompt),
466 "%s? (D/N/O/r/*/!): ", bf ?
_(
"Set flag") :
_(
"Clear flag"));
473 struct KeyEvent event = { 0, OP_NULL };
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
#define ARRAY_EMPTY(head)
Check if an array is empty.
Color and attribute parsing.
@ MT_COLOR_PROMPT
Question/user input.
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
@ NT_MAILBOX_CHANGE
Mailbox has been changed.
#define MUTT_ACL_DELETE
Delete a message.
#define MUTT_ACL_WRITE
Write to a message (for flagging or linking threads)
@ MUTT_IMAP
'IMAP' Mailbox type
@ MUTT_MAILDIR
'Maildir' Mailbox type
#define MUTT_ACL_SEEN
Change the 'seen' status of a message.
void mutt_beep(bool force)
Irritate the user.
struct KeyEvent mutt_getch(GetChFlags flags)
Read a character from the input buffer.
void mutt_set_header_color(struct Mailbox *m, struct Email *e)
Select a colour for a message.
Structs that make up an email.
void mutt_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox)
Set a flag on an email.
void mutt_emails_set_flag(struct Mailbox *m, struct EmailArray *ea, enum MessageType flag, bool bf)
Set flag on messages.
int mutt_thread_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool subthread)
Set a flag on an entire thread.
int mw_change_flag(struct Mailbox *m, struct EmailArray *ea, bool bf)
Change the flag on a Message -.
Convenience wrapper for the gui headers.
GUI manage the main index (list of emails)
#define GETCH_NO_FLAGS
No flags are set.
void msgcont_push_window(struct MuttWindow *win)
Add a window to the Container Stack.
struct MuttWindow * msgcont_pop_window(void)
Remove the last Window from the Container Stack.
struct MuttWindow * msgwin_new(bool interactive)
Create the Message Window.
void msgwin_set_text(struct MuttWindow *win, const char *text, enum ColorId color)
Set the text for the Message Window.
Convenience wrapper for the library headers.
bool notify_send(struct Notify *notify, enum NotifyType event_type, int event_subtype, void *event_data)
Send out a notification message.
Many unsorted constants and some structs.
MessageType
To set flags or match patterns.
@ MUTT_READ
Messages that have been read.
@ MUTT_PURGE
Messages to be purged (bypass trash)
@ MUTT_TAG
Tagged messages.
@ MUTT_FLAG
Flagged messages.
@ MUTT_DELETE
Messages to be deleted.
@ MUTT_REPLIED
Messages that have been replied to.
Create/manipulate threading in emails.
#define mutt_using_threads()
void window_redraw(struct MuttWindow *win)
Reflow, recalc and repaint a tree of Windows.
void mutt_window_free(struct MuttWindow **ptr)
Free a Window and its children.
struct MuttWindow * window_set_focus(struct MuttWindow *win)
Set the Window focus.
@ NT_MAILBOX
Mailbox has changed, NotifyMailbox, EventMailbox.
#define OP_TIMEOUT
1 second with no events
#define OP_REPAINT
Repaint is needed.
#define OP_ABORT
$abort_key pressed (Ctrl-G)
Prototypes for many functions.
The envelope/body of an email.
bool searched
Email has been searched.
bool purge
Skip trash folder when deleting.
bool old
Email is seen, but unread.
bool changed
Email has been edited.
bool flagged
Marked important?
bool replied
Email has been replied to.
bool deleted
Email is deleted.
bool trash
Message is marked as trashed on disk (used by the maildir_trash option)
bool tagged
Email is tagged.
struct MuttThread * thread
Thread of Emails.
An Event that happened to a Mailbox.
An event such as a keypress.
int op
Function opcode, e.g. OP_HELP.
bool changed
Mailbox has been modified.
int msg_new
Number of new messages.
AclFlags rights
ACL bits, see AclFlags.
enum MailboxType type
Mailbox type.
struct Notify * notify
Notifications: NotifyMailbox, EventMailbox.
int msg_deleted
Number of deleted messages.
int msg_flagged
Number of flagged messages.
bool readonly
Don't allow changes to the mailbox.
int msg_tagged
How many messages are tagged?
int msg_unread
Number of unread messages.
struct MuttThread * parent
Parent of this Thread.
struct MuttThread * child
Child of this Thread.
struct Email * message
Email this Thread refers to.
struct MuttThread * next
Next sibling Thread.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.