NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
shared_data.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_INDEX_SHARED_DATA_H
24
#define MUTT_INDEX_SHARED_DATA_H
25
26
#include <stdbool.h>
27
#include <stdio.h>
28
29
struct
MailboxView
;
30
struct
Email
;
31
struct
MuttWindow
;
32
36
struct
IndexSharedData
37
{
38
struct
ConfigSubset
*
sub
;
39
struct
Account
*
account
;
40
struct
MailboxView
*
mailbox_view
;
41
struct
Mailbox
*
mailbox
;
42
struct
Email
*
email
;
43
size_t
email_seq
;
44
struct
Notify
*
notify
;
45
struct
SearchState
*
search_state
;
46
bool
attach_msg
;
47
};
48
54
enum
ExpandoDataIndex
55
{
56
ED_IND_DELETED_COUNT
= 1,
57
ED_IND_DESCRIPTION
,
58
ED_IND_FLAGGED_COUNT
,
59
ED_IND_LIMIT_COUNT
,
60
ED_IND_LIMIT_PATTERN
,
61
ED_IND_LIMIT_SIZE
,
62
ED_IND_MAILBOX_PATH
,
63
ED_IND_MAILBOX_SIZE
,
64
ED_IND_MESSAGE_COUNT
,
65
ED_IND_NEW_COUNT
,
66
ED_IND_OLD_COUNT
,
67
ED_IND_POSTPONED_COUNT
,
68
ED_IND_READONLY
,
69
ED_IND_READ_COUNT
,
70
ED_IND_TAGGED_COUNT
,
71
ED_IND_UNREAD_COUNT
,
72
ED_IND_UNREAD_MAILBOXES
,
73
};
74
75
void
index_shared_data_free
(
struct
MuttWindow
*win,
void
**ptr);
76
struct
IndexSharedData
*
index_shared_data_new
(
void
);
77
78
bool
index_shared_data_is_cur_email
(
const
struct
IndexSharedData
*shared,
const
struct
Email
*e);
79
void
index_shared_data_set_mview
(
struct
IndexSharedData
*shared,
struct
MailboxView
*mv);
80
void
index_shared_data_set_email
(
struct
IndexSharedData
*shared,
struct
Email
*e);
81
82
#endif
/* MUTT_INDEX_SHARED_DATA_H */
index_shared_data_free
void index_shared_data_free(struct MuttWindow *win, void **ptr)
Free Shared Index Data - Implements MuttWindow::wdata_free() -.
Definition
shared_data.c:278
index_shared_data_set_email
void index_shared_data_set_email(struct IndexSharedData *shared, struct Email *e)
Set the current Email for the Index and friends.
Definition
shared_data.c:235
index_shared_data_is_cur_email
bool index_shared_data_is_cur_email(const struct IndexSharedData *shared, const struct Email *e)
Check whether an email is the currently selected Email.
Definition
shared_data.c:264
ExpandoDataIndex
ExpandoDataIndex
Expando UIDs for the Index.
Definition
shared_data.h:55
ED_IND_LIMIT_COUNT
@ ED_IND_LIMIT_COUNT
Mailbox.vcount.
Definition
shared_data.h:59
ED_IND_MAILBOX_PATH
@ ED_IND_MAILBOX_PATH
Mailbox.pathbuf, Mailbox.name.
Definition
shared_data.h:62
ED_IND_DELETED_COUNT
@ ED_IND_DELETED_COUNT
Mailbox.msg_deleted.
Definition
shared_data.h:56
ED_IND_NEW_COUNT
@ ED_IND_NEW_COUNT
Mailbox.msg_new.
Definition
shared_data.h:65
ED_IND_MAILBOX_SIZE
@ ED_IND_MAILBOX_SIZE
Mailbox.size.
Definition
shared_data.h:63
ED_IND_LIMIT_PATTERN
@ ED_IND_LIMIT_PATTERN
MailboxView.pattern.
Definition
shared_data.h:60
ED_IND_READ_COUNT
@ ED_IND_READ_COUNT
Mailbox.msg_count, Mailbox.msg_unread.
Definition
shared_data.h:69
ED_IND_POSTPONED_COUNT
@ ED_IND_POSTPONED_COUNT
mutt_num_postponed()
Definition
shared_data.h:67
ED_IND_FLAGGED_COUNT
@ ED_IND_FLAGGED_COUNT
Mailbox.msg_flagged.
Definition
shared_data.h:58
ED_IND_MESSAGE_COUNT
@ ED_IND_MESSAGE_COUNT
Mailbox.msg_count.
Definition
shared_data.h:64
ED_IND_OLD_COUNT
@ ED_IND_OLD_COUNT
Mailbox.msg_unread, Mailbox.msg_new.
Definition
shared_data.h:66
ED_IND_READONLY
@ ED_IND_READONLY
Mailbox.readonly, Mailbox.dontwrite.
Definition
shared_data.h:68
ED_IND_UNREAD_COUNT
@ ED_IND_UNREAD_COUNT
Mailbox.msg_unread.
Definition
shared_data.h:71
ED_IND_TAGGED_COUNT
@ ED_IND_TAGGED_COUNT
Mailbox.msg_tagged.
Definition
shared_data.h:70
ED_IND_LIMIT_SIZE
@ ED_IND_LIMIT_SIZE
MailboxView.vsize.
Definition
shared_data.h:61
ED_IND_DESCRIPTION
@ ED_IND_DESCRIPTION
Mailbox.name.
Definition
shared_data.h:57
ED_IND_UNREAD_MAILBOXES
@ ED_IND_UNREAD_MAILBOXES
Mailbox, mutt_mailbox_check().
Definition
shared_data.h:72
index_shared_data_new
struct IndexSharedData * index_shared_data_new(void)
Create new Index Data.
Definition
shared_data.c:307
index_shared_data_set_mview
void index_shared_data_set_mview(struct IndexSharedData *shared, struct MailboxView *mv)
Set the MailboxView for the Index and friends.
Definition
shared_data.c:160
Account
A group of associated Mailboxes.
Definition
account.h:36
ConfigSubset
A set of inherited config items.
Definition
subset.h:46
Email
The envelope/body of an email.
Definition
email.h:39
IndexSharedData
Data shared between Index, Pager and Sidebar.
Definition
shared_data.h:37
IndexSharedData::email_seq
size_t email_seq
Sequence number of the current email.
Definition
shared_data.h:43
IndexSharedData::account
struct Account * account
Current Account.
Definition
shared_data.h:39
IndexSharedData::email
struct Email * email
Currently selected Email.
Definition
shared_data.h:42
IndexSharedData::mailbox
struct Mailbox * mailbox
Current Mailbox.
Definition
shared_data.h:41
IndexSharedData::attach_msg
bool attach_msg
Are we in "attach message" mode?
Definition
shared_data.h:46
IndexSharedData::sub
struct ConfigSubset * sub
Config set to use.
Definition
shared_data.h:38
IndexSharedData::mailbox_view
struct MailboxView * mailbox_view
Current Mailbox view.
Definition
shared_data.h:40
IndexSharedData::search_state
struct SearchState * search_state
State of the current search.
Definition
shared_data.h:45
IndexSharedData::notify
struct Notify * notify
Notifications: NotifyIndex, IndexSharedData.
Definition
shared_data.h:44
MailboxView
View of a Mailbox.
Definition
mview.h:40
Mailbox
A mailbox.
Definition
mailbox.h:81
MuttWindow
Definition
mutt_window.h:129
Notify
Notification API.
Definition
notify.c:53
SearchState
Holds state of a search.
Definition
search_state.h:36