33#include "docs/makedoc_defs.h"
95 {
"alias-dialog", OP_ALIAS_DIALOG },
97 {
"autocrypt-acct-menu", OP_AUTOCRYPT_ACCT_MENU },
99 {
"bounce-message", OP_BOUNCE_MESSAGE },
100 {
"break-thread", OP_MAIN_BREAK_THREAD },
101 {
"catchup", OP_CATCHUP },
102 {
"change-folder", OP_MAIN_CHANGE_FOLDER },
103 {
"change-folder-readonly", OP_MAIN_CHANGE_FOLDER_READONLY },
104 {
"change-newsgroup", OP_MAIN_CHANGE_GROUP },
105 {
"change-newsgroup-readonly", OP_MAIN_CHANGE_GROUP_READONLY },
107 {
"change-vfolder", OP_MAIN_CHANGE_VFOLDER },
109 {
"check-traditional-pgp", OP_CHECK_TRADITIONAL },
110 {
"clear-flag", OP_MAIN_CLEAR_FLAG },
111 {
"collapse-all", OP_MAIN_COLLAPSE_ALL },
112 {
"collapse-thread", OP_MAIN_COLLAPSE_THREAD },
113 {
"compose-to-sender", OP_COMPOSE_TO_SENDER },
114 {
"copy-message", OP_COPY_MESSAGE },
115 {
"create-alias", OP_CREATE_ALIAS },
116 {
"decode-copy", OP_DECODE_COPY },
117 {
"decode-save", OP_DECODE_SAVE },
118 {
"decrypt-copy", OP_DECRYPT_COPY },
119 {
"decrypt-save", OP_DECRYPT_SAVE },
120 {
"delete-message", OP_DELETE },
121 {
"delete-pattern", OP_MAIN_DELETE_PATTERN },
122 {
"delete-subthread", OP_DELETE_SUBTHREAD },
123 {
"delete-thread", OP_DELETE_THREAD },
124 {
"display-address", OP_DISPLAY_ADDRESS },
125 {
"display-message", OP_DISPLAY_MESSAGE },
126 {
"display-toggle-weed", OP_DISPLAY_HEADERS },
127 {
"edit", OP_EDIT_RAW_MESSAGE },
128 {
"edit-label", OP_EDIT_LABEL },
129 {
"edit-or-view-raw-message", OP_EDIT_OR_VIEW_RAW_MESSAGE },
130 {
"edit-raw-message", OP_EDIT_RAW_MESSAGE },
131 {
"edit-type", OP_ATTACHMENT_EDIT_TYPE },
133 {
"entire-thread", OP_MAIN_ENTIRE_THREAD },
136 {
"extract-keys", OP_EXTRACT_KEYS },
137 {
"fetch-mail", OP_MAIN_FETCH_MAIL },
138 {
"flag-message", OP_FLAG_MESSAGE },
139 {
"followup-message", OP_FOLLOWUP },
140 {
"forget-passphrase", OP_FORGET_PASSPHRASE },
141 {
"forward-message", OP_FORWARD_MESSAGE },
142 {
"forward-to-group", OP_FORWARD_TO_GROUP },
143 {
"get-children", OP_GET_CHILDREN },
144 {
"get-message", OP_GET_MESSAGE },
145 {
"get-parent", OP_GET_PARENT },
146 {
"group-chat-reply", OP_GROUP_CHAT_REPLY },
147 {
"group-reply", OP_GROUP_REPLY },
148 {
"imap-fetch-mail", OP_MAIN_IMAP_FETCH },
149 {
"imap-logout-all", OP_MAIN_IMAP_LOGOUT_ALL },
150 {
"limit", OP_MAIN_LIMIT },
151 {
"limit-current-thread", OP_LIMIT_CURRENT_THREAD },
152 {
"link-threads", OP_MAIN_LINK_THREADS },
153 {
"list-reply", OP_LIST_REPLY },
154 {
"list-subscribe", OP_LIST_SUBSCRIBE },
155 {
"list-unsubscribe", OP_LIST_UNSUBSCRIBE },
157 {
"mail-key", OP_MAIL_KEY },
158 {
"mailbox-list", OP_MAILBOX_LIST },
159 {
"mark-message", OP_MARK_MSG },
160 {
"modify-labels", OP_MAIN_MODIFY_TAGS },
161 {
"modify-labels-then-hide", OP_MAIN_MODIFY_TAGS_THEN_HIDE },
162 {
"modify-tags", OP_MAIN_MODIFY_TAGS },
163 {
"modify-tags-then-hide", OP_MAIN_MODIFY_TAGS_THEN_HIDE },
164 {
"next-new", OP_MAIN_NEXT_NEW },
165 {
"next-new-then-unread", OP_MAIN_NEXT_NEW_THEN_UNREAD },
166 {
"next-subthread", OP_MAIN_NEXT_SUBTHREAD },
167 {
"next-thread", OP_MAIN_NEXT_THREAD },
168 {
"next-undeleted", OP_MAIN_NEXT_UNDELETED },
169 {
"next-unread", OP_MAIN_NEXT_UNREAD },
170 {
"next-unread-mailbox", OP_MAIN_NEXT_UNREAD_MAILBOX },
171 {
"parent-message", OP_MAIN_PARENT_MESSAGE },
172 {
"pipe-entry", OP_PIPE },
173 {
"pipe-message", OP_PIPE },
174 {
"post-message", OP_POST },
175 {
"previous-new", OP_MAIN_PREV_NEW },
176 {
"previous-new-then-unread", OP_MAIN_PREV_NEW_THEN_UNREAD },
177 {
"previous-subthread", OP_MAIN_PREV_SUBTHREAD },
178 {
"previous-thread", OP_MAIN_PREV_THREAD },
179 {
"previous-undeleted", OP_MAIN_PREV_UNDELETED },
180 {
"previous-unread", OP_MAIN_PREV_UNREAD },
181 {
"print-message", OP_PRINT },
182 {
"purge-message", OP_PURGE_MESSAGE },
183 {
"purge-thread", OP_PURGE_THREAD },
184 {
"quasi-delete", OP_MAIN_QUASI_DELETE },
185 {
"query", OP_QUERY },
187 {
"read-subthread", OP_MAIN_READ_SUBTHREAD },
188 {
"read-thread", OP_MAIN_READ_THREAD },
189 {
"recall-message", OP_RECALL_MESSAGE },
190 {
"reconstruct-thread", OP_RECONSTRUCT_THREAD },
191 {
"reply", OP_REPLY },
192 {
"resend-message", OP_RESEND },
193 {
"root-message", OP_MAIN_ROOT_MESSAGE },
194 {
"save-message", OP_SAVE },
195 {
"set-flag", OP_MAIN_SET_FLAG },
196 {
"show-limit", OP_MAIN_SHOW_LIMIT },
197 {
"sidebar-first", OP_SIDEBAR_FIRST },
198 {
"sidebar-last", OP_SIDEBAR_LAST },
199 {
"sidebar-next", OP_SIDEBAR_NEXT },
200 {
"sidebar-next-new", OP_SIDEBAR_NEXT_NEW },
201 {
"sidebar-open", OP_SIDEBAR_OPEN },
202 {
"sidebar-page-down", OP_SIDEBAR_PAGE_DOWN },
203 {
"sidebar-page-up", OP_SIDEBAR_PAGE_UP },
204 {
"sidebar-prev", OP_SIDEBAR_PREV },
205 {
"sidebar-prev-new", OP_SIDEBAR_PREV_NEW },
206 {
"sidebar-toggle-virtual", OP_SIDEBAR_TOGGLE_VIRTUAL },
207 {
"sidebar-toggle-visible", OP_SIDEBAR_TOGGLE_VISIBLE },
208 {
"sort-mailbox", OP_SORT },
209 {
"sort-reverse", OP_SORT_REVERSE },
210 {
"sync-mailbox", OP_MAIN_SYNC_FOLDER },
211 {
"tag-pattern", OP_MAIN_TAG_PATTERN },
212 {
"tag-subthread", OP_TAG_SUBTHREAD },
213 {
"tag-thread", OP_TAG_THREAD },
214 {
"toggle-new", OP_TOGGLE_NEW },
215 {
"toggle-read", OP_TOGGLE_READ },
216 {
"toggle-write", OP_TOGGLE_WRITE },
217 {
"undelete-message", OP_UNDELETE },
218 {
"undelete-pattern", OP_MAIN_UNDELETE_PATTERN },
219 {
"undelete-subthread", OP_UNDELETE_SUBTHREAD },
220 {
"undelete-thread", OP_UNDELETE_THREAD },
221 {
"untag-pattern", OP_MAIN_UNTAG_PATTERN },
223 {
"vfolder-from-query", OP_MAIN_VFOLDER_FROM_QUERY },
224 {
"vfolder-from-query-readonly", OP_MAIN_VFOLDER_FROM_QUERY_READONLY },
225 {
"vfolder-window-backward", OP_MAIN_WINDOWED_VFOLDER_BACKWARD },
226 {
"vfolder-window-forward", OP_MAIN_WINDOWED_VFOLDER_FORWARD },
227 {
"vfolder-window-reset", OP_MAIN_WINDOWED_VFOLDER_RESET },
229 {
"view-attachments", OP_VIEW_ATTACHMENTS },
230 {
"view-raw-message", OP_VIEW_RAW_MESSAGE },
232 {
"buffy-list", OP_MAILBOX_LIST },
240 { OP_ATTACHMENT_EDIT_TYPE,
"\005" },
242 { OP_AUTOCRYPT_ACCT_MENU,
"A" },
244 { OP_BOUNCE_MESSAGE,
"b" },
245 { OP_CHECK_TRADITIONAL,
"\033P" },
246 { OP_COPY_MESSAGE,
"C" },
247 { OP_CREATE_ALIAS,
"a" },
248 { OP_DECODE_COPY,
"\033C" },
249 { OP_DECODE_SAVE,
"\033s" },
251 { OP_DELETE_SUBTHREAD,
"\033d" },
252 { OP_DELETE_THREAD,
"\004" },
253 { OP_DISPLAY_ADDRESS,
"@" },
254 { OP_DISPLAY_HEADERS,
"h" },
255 { OP_DISPLAY_MESSAGE,
" " },
256 { OP_DISPLAY_MESSAGE,
"<keypadenter>" },
257 { OP_DISPLAY_MESSAGE,
"\n" },
258 { OP_DISPLAY_MESSAGE,
"\r" },
259 { OP_EDIT_LABEL,
"Y" },
260 { OP_EDIT_OR_VIEW_RAW_MESSAGE,
"e" },
262 { OP_EXTRACT_KEYS,
"\013" },
263 { OP_FLAG_MESSAGE,
"F" },
264 { OP_FORGET_PASSPHRASE,
"\006" },
265 { OP_FORWARD_MESSAGE,
"f" },
266 { OP_GROUP_REPLY,
"g" },
267 { OP_LIST_REPLY,
"L" },
269 { OP_MAILBOX_LIST,
"." },
270 { OP_MAIL_KEY,
"\033k" },
271 { OP_MAIN_BREAK_THREAD,
"#" },
272 { OP_MAIN_CHANGE_FOLDER,
"c" },
273 { OP_MAIN_CHANGE_FOLDER_READONLY,
"\033c" },
274 { OP_MAIN_CHANGE_GROUP,
"i" },
275 { OP_MAIN_CHANGE_GROUP_READONLY,
"\033i" },
276 { OP_MAIN_CLEAR_FLAG,
"W" },
277 { OP_MAIN_COLLAPSE_ALL,
"\033V" },
278 { OP_MAIN_COLLAPSE_THREAD,
"\033v" },
279 { OP_MAIN_DELETE_PATTERN,
"D" },
280 { OP_MAIN_FETCH_MAIL,
"G" },
281 { OP_MAIN_LIMIT,
"l" },
282 { OP_MAIN_LINK_THREADS,
"&" },
283 { OP_MAIN_NEXT_NEW_THEN_UNREAD,
"\t" },
284 { OP_MAIN_NEXT_SUBTHREAD,
"\033n" },
285 { OP_MAIN_NEXT_THREAD,
"\016" },
286 { OP_MAIN_NEXT_UNDELETED,
"<down>" },
287 { OP_MAIN_NEXT_UNDELETED,
"j" },
288 { OP_MAIN_PARENT_MESSAGE,
"P" },
289 { OP_MAIN_PREV_NEW_THEN_UNREAD,
"\033\t" },
290 { OP_MAIN_PREV_SUBTHREAD,
"\033p" },
291 { OP_MAIN_PREV_THREAD,
"\020" },
292 { OP_MAIN_PREV_UNDELETED,
"<up>" },
293 { OP_MAIN_PREV_UNDELETED,
"k" },
294 { OP_MAIN_READ_SUBTHREAD,
"\033r" },
295 { OP_MAIN_READ_THREAD,
"\022" },
296 { OP_MAIN_SET_FLAG,
"w" },
297 { OP_MAIN_SHOW_LIMIT,
"\033l" },
298 { OP_MAIN_SYNC_FOLDER,
"$" },
299 { OP_MAIN_TAG_PATTERN,
"T" },
300 { OP_MAIN_UNDELETE_PATTERN,
"U" },
301 { OP_MAIN_UNTAG_PATTERN,
"\024" },
302 { OP_MARK_MSG,
"~" },
303 { OP_NEXT_ENTRY,
"J" },
305 { OP_PREV_ENTRY,
"K" },
309 { OP_RECALL_MESSAGE,
"R" },
311 { OP_RESEND,
"\033e" },
313 { OP_SHOW_LOG_MESSAGES,
"M" },
315 { OP_SORT_REVERSE,
"O" },
316 { OP_TAG_THREAD,
"\033t" },
317 { OP_TOGGLE_NEW,
"N" },
318 { OP_TOGGLE_WRITE,
"%" },
319 { OP_UNDELETE,
"u" },
320 { OP_UNDELETE_SUBTHREAD,
"\033u" },
321 { OP_UNDELETE_THREAD,
"\025" },
322 { OP_VIEW_ATTACHMENTS,
"v" },
505 struct AddressList *al = NULL;
569 int subthread = (op == OP_DELETE_SUBTHREAD);
573 if (op == OP_PURGE_THREAD)
616 if (op == OP_DISPLAY_HEADERS)
631 if (c_uncollapse_jump)
636 if (c_pgp_auto_decode &&
690 mutt_message(ngettext(
"%d label changed",
"%d labels changed", num_changed), num_changed);
717 if (op == OP_EDIT_RAW_MESSAGE)
724 else if (op == OP_EDIT_OR_VIEW_RAW_MESSAGE)
736 if (c_pgp_auto_decode &&
813 for (
size_t i = 0; i < m->
msg_count; i++)
857 if (c_pgp_auto_decode &&
882 if (op == OP_GROUP_REPLY)
891 if (c_pgp_auto_decode &&
913 const int digit = op - OP_JUMP;
926 else if (!mutt_str_atoi_full(
buf_string(buf), &msg_num))
965 if (c_pgp_auto_decode &&
1068 mutt_error(
_(
"Thread can't be broken, message is not part of a thread"));
1091 if (shared->
attach_msg || c_read_only || (op == OP_MAIN_CHANGE_FOLDER_READONLY))
1093 cp =
_(
"Open mailbox in read-only mode");
1098 cp =
_(
"Open mailbox");
1102 const bool c_change_folder_next =
cs_subset_bool(shared->
sub,
"change_folder_next");
1114 goto changefoldercleanup;
1123 goto changefoldercleanup;
1179 if (c_uncollapse_jump)
1190 mutt_error(
_(
"Thread contains unread or flagged messages"));
1230 if (op == OP_TOGGLE_READ)
1232 char buf2[1024] = { 0 };
1242 snprintf(buf2,
sizeof(buf2),
"~A");
1248 if (((op == OP_LIMIT_CURRENT_THREAD) &&
1250 (op == OP_TOGGLE_READ) ||
1252 _(
"Limit to messages matching: ")) == 0)))
1264 if (e->
index == old_index)
1310 mutt_error(
_(
"No Message-ID: header available to link thread"));
1351 struct Buffer *buf = NULL;
1358 mutt_message(
_(
"Folder doesn't support tagging, aborting"));
1385 struct Progress *progress = NULL;
1397 for (
int px = 0, i = 0; i < m->
msg_count; i++)
1408 if (op == OP_MAIN_MODIFY_TAGS_THEN_HIDE)
1410 bool still_queried =
false;
1434 if (op == OP_MAIN_MODIFY_TAGS_THEN_HIDE)
1436 bool still_queried =
false;
1468 int first_unread = -1;
1472 int mcur = saved_current;
1477 if ((op == OP_MAIN_NEXT_NEW) || (op == OP_MAIN_NEXT_UNREAD) ||
1478 (op == OP_MAIN_NEXT_NEW_THEN_UNREAD))
1501 if ((unread != 0) && (first_unread == -1))
1502 first_unread = mcur;
1503 if ((unread == 1) && (first_new == -1))
1508 if (first_unread == -1)
1509 first_unread = mcur;
1510 if (!e->
old && (first_new == -1))
1514 if (((op == OP_MAIN_NEXT_UNREAD) || (op == OP_MAIN_PREV_UNREAD)) && (first_unread != -1))
1518 if (((op == OP_MAIN_NEXT_NEW) || (op == OP_MAIN_PREV_NEW) ||
1519 (op == OP_MAIN_NEXT_NEW_THEN_UNREAD) || (op == OP_MAIN_PREV_NEW_THEN_UNREAD)) &&
1525 if (((op == OP_MAIN_NEXT_NEW) || (op == OP_MAIN_PREV_NEW) ||
1526 (op == OP_MAIN_NEXT_NEW_THEN_UNREAD) || (op == OP_MAIN_PREV_NEW_THEN_UNREAD)) &&
1531 else if (((op == OP_MAIN_NEXT_UNREAD) || (op == OP_MAIN_PREV_UNREAD) ||
1532 (op == OP_MAIN_NEXT_NEW_THEN_UNREAD) || (op == OP_MAIN_PREV_NEW_THEN_UNREAD)) &&
1533 (first_unread != -1))
1535 index = first_unread;
1541 if ((op == OP_MAIN_NEXT_NEW) || (op == OP_MAIN_PREV_NEW))
1544 mutt_error(
_(
"No new messages in this limited view"));
1551 mutt_error(
_(
"No unread messages in this limited view"));
1564 if ((op == OP_MAIN_NEXT_NEW) || (op == OP_MAIN_NEXT_UNREAD) ||
1565 (op == OP_MAIN_NEXT_NEW_THEN_UNREAD))
1567 if (saved_current >
index)
1572 else if (saved_current <
index)
1595 case OP_MAIN_NEXT_THREAD:
1599 case OP_MAIN_NEXT_SUBTHREAD:
1603 case OP_MAIN_PREV_THREAD:
1607 case OP_MAIN_PREV_SUBTHREAD:
1617 if ((op == OP_MAIN_NEXT_THREAD) || (op == OP_MAIN_NEXT_SUBTHREAD))
1726 for (
size_t i = 0; i < m->
msg_count; i++)
1767 (op != OP_MAIN_READ_THREAD));
1833 char buf2[256] = { 0 };
1857 struct Email *e = NULL;
1861 if (index < shared->mailbox->vcount)
1947 _(
"Undelete messages matching: ")) == 0)
1988 const char *
const c_mark_macro_prefix =
cs_subset_string(shared->
sub,
"mark_macro_prefix");
1989 char str[256] = { 0 };
1990 snprintf(str,
sizeof(str),
"%s%s", c_mark_macro_prefix,
buf_string(buf));
1994 char macro[256] = { 0 };
1995 snprintf(macro,
sizeof(macro),
"<search>~i '%s'\n",
buf_string(msg_id));
2163 if (c_pgp_auto_decode &&
2186 for (
size_t i = 0; i < m->
msg_count; i++)
2217 if (((op == OP_DECRYPT_COPY) || (op == OP_DECRYPT_SAVE)) && !
WithCrypto)
2223 const enum MessageSaveOpt save_opt = ((op == OP_SAVE) || (op == OP_DECODE_SAVE) ||
2224 (op == OP_DECRYPT_SAVE)) ?
2234 if ((rc == 0) && (save_opt ==
SAVE_MOVE))
2264 case OP_SEARCH_REVERSE:
2268 case OP_SEARCH_NEXT:
2270 case OP_SEARCH_OPPOSITE:
2317 for (
size_t i = 0; i < m->
msg_count; i++)
2375 for (
size_t i = 0; i < m->
msg_count; i++)
2461 false, (op != OP_UNDELETE_THREAD));
2465 (op != OP_UNDELETE_THREAD));
2599 int oldindex = e->
index;
2604 mutt_error(
_(
"No Message-Id. Unable to perform operation."));
2614 if (op == OP_RECONSTRUCT_THREAD)
2661 if (e2->
index == oldindex)
2674 mutt_error(
_(
"No deleted messages found in the thread"));
2697 if (op == OP_GET_MESSAGE)
2734 mutt_error(
_(
"Message is not visible in limited view"));
2778 if (shared->
attach_msg || c_read_only || (op == OP_MAIN_CHANGE_GROUP_READONLY))
2780 cp =
_(
"Open newsgroup in read-only mode");
2785 cp =
_(
"Open newsgroup");
2789 const bool c_change_folder_next =
cs_subset_bool(shared->
sub,
"change_folder_next");
2801 goto changefoldercleanup2;
2808 goto changefoldercleanup2;
2817 goto changefoldercleanup2;
2832changefoldercleanup2:
2852 "followup_to_poster") !=
MUTT_YES))
2856 (
query_quadoption(
_(
"Posting to this group not allowed, may be moderated. Continue?"),
2870 NULL, NULL, shared->
mailbox, &ea, shared->
sub);
2877 return op_reply(shared, priv, OP_REPLY);
2892 mutt_message(
_(
"No virtual folder and no Message-Id, aborting"));
2900 int msg_id_offset = 0;
2907 if (buf->
data[len - 1] ==
'>')
2908 buf->
data[len - 1] =
'\0';
2920 mutt_error(
_(
"failed to find message in notmuch database. try running 'notmuch new'."));
2983 (op == OP_MAIN_VFOLDER_FROM_QUERY_READONLY));
2987 m_query->
name = query_unencoded;
2988 query_unencoded = NULL;
2993 FREE(&query_unencoded);
3018 const char *
const c_nm_query_window_current_search =
cs_subset_string(shared->
sub,
"nm_query_window_current_search");
3019 if (!c_nm_query_window_current_search)
3028 case OP_MAIN_WINDOWED_VFOLDER_BACKWARD:
3031 case OP_MAIN_WINDOWED_VFOLDER_FORWARD:
3034 case OP_MAIN_WINDOWED_VFOLDER_RESET:
3041 mutt_str_copy(buf, c_nm_query_window_current_search,
sizeof(buf));
3104 mutt_error(
_(
"Function not permitted in attach-message mode"));
void alias_create(struct AddressList *al, const struct ConfigSubset *sub)
Create a new Alias from an Address.
struct AddressList * mutt_get_address(struct Envelope *env, const char **prefix)
Get an Address from an Envelope.
#define ARRAY_FREE(head)
Release all memory.
#define ARRAY_HEAD_INITIALIZER
Static initializer for arrays.
static const char * Not_available_in_this_menu
Error message for unavailable functions.
GUI display the mailboxes in a side panel.
Autocrypt end-to-end encryption.
int bool_str_toggle(struct ConfigSubset *sub, const char *name, struct Buffer *err)
Toggle the value of a bool.
Select a Mailbox from a list.
#define MUTT_SEL_NO_FLAGS
No flags are set.
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
size_t buf_len(const struct Buffer *buf)
Calculate the length of a Buffer.
bool buf_is_empty(const struct Buffer *buf)
Is the Buffer empty?
size_t buf_addstr(struct Buffer *buf, const char *s)
Add a string to a Buffer.
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
char * buf_strdup(const struct Buffer *buf)
Copy a Buffer's string.
void buf_alloc(struct Buffer *buf, size_t new_size)
Make sure a buffer can store at least new_size bytes.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
void mutt_pattern_free(struct PatternList **pat)
Free a Pattern.
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
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.
void mailbox_free(struct Mailbox **ptr)
Free a Mailbox.
@ NT_MAILBOX_CHANGE
Mailbox has been changed.
#define MUTT_ACL_INSERT
Add/copy into the mailbox (used when editing a message)
#define MUTT_ACL_DELETE
Delete a message.
static const char * mailbox_path(const struct Mailbox *m)
Get the Mailbox's path string.
#define MUTT_ACL_WRITE
Write to a message (for flagging or linking threads)
@ MUTT_NOTMUCH
'Notmuch' (virtual) Mailbox type
@ MUTT_MH
'MH' Mailbox type
@ MUTT_NNTP
'NNTP' (Usenet) Mailbox type
@ MUTT_IMAP
'IMAP' Mailbox type
@ MUTT_MAILDIR
'Maildir' Mailbox type
#define MUTT_ACL_SEEN
Change the 'seen' status of a message.
void crypt_extract_keys_from_messages(struct Mailbox *m, struct EmailArray *ea)
Extract keys from a message.
void crypt_forget_passphrase(void)
Forget a passphrase and display a message.
void mutt_flushinp(void)
Empty all the keyboard buffers.
void mutt_unget_ch(int ch)
Return a keystroke to the input buffer.
struct MuttWindow * dialog_find(struct MuttWindow *win)
Find the parent Dialog of a Window.
const char * dispatcher_get_retval_name(int rv)
Get the name of a return value.
FunctionRetval
Possible return values for NeoMutt functions.
@ FR_SUCCESS
Valid function - successfully performed.
@ FR_DONE
Exit the Dialog.
@ FR_UNKNOWN
Unknown function.
@ FR_ERROR
Valid function - error occurred.
@ FR_NOT_IMPL
Invalid function - feature not enabled.
@ FR_NO_ACTION
Valid function - no action performed.
void alias_dialog(struct Mailbox *m, struct ConfigSubset *sub)
Open the aliases dialog.
void mutt_browser_select_dir(const char *f)
Remember the last directory selected.
bool check_acl(struct Mailbox *m, AclFlags acl, const char *msg)
Check the ACLs for a function.
const struct Mapping IndexNewsHelp[]
Help Bar for the News Index dialog.
void change_folder_mailbox(struct Menu *menu, struct Mailbox *m, int *oldcount, struct IndexSharedData *shared, bool read_only)
Change to a different Mailbox by pointer.
struct Mailbox * change_folder_notmuch(struct Menu *menu, char *buf, int buflen, int *oldcount, struct IndexSharedData *shared, bool read_only)
Change to a different Notmuch Mailbox by string.
void update_index(struct Menu *menu, struct MailboxView *mv, enum MxStatus check, int oldcount, const struct IndexSharedData *shared)
Update the index.
int find_first_message(struct MailboxView *mv)
Get index of first new message.
void resort_index(struct MailboxView *mv, struct Menu *menu)
Resort the index.
int find_next_undeleted(struct MailboxView *mv, int msgno, bool uncollapse)
Find the next undeleted email.
void collapse_all(struct MailboxView *mv, struct Menu *menu, int toggle)
Collapse/uncollapse all threads.
void change_folder_string(struct Menu *menu, struct Buffer *buf, int *oldcount, struct IndexSharedData *shared, bool read_only)
Change to a different Mailbox by string.
int find_previous_undeleted(struct MailboxView *mv, int msgno, bool uncollapse)
Find the previous undeleted email.
void query_index(struct Mailbox *m, struct ConfigSubset *sub)
Perform an Alias Query and display the results.
int mutt_ev_message(struct Mailbox *m, struct EmailArray *ea, enum EvMessage action)
Edit or view a message.
Structs that make up an email.
void mutt_print_message(struct Mailbox *m, struct EmailArray *ea)
Print a message.
bool mutt_select_sort(bool reverse)
Ask the user for a sort method.
void mutt_pipe_message(struct Mailbox *m, struct EmailArray *ea)
Pipe a message.
bool mutt_check_traditional_pgp(struct Mailbox *m, struct EmailArray *ea)
Check if a message has inline PGP content.
void index_bounce_message(struct Mailbox *m, struct EmailArray *ea)
Bounce an email.
int mutt_save_message(struct Mailbox *m, struct EmailArray *ea, enum MessageSaveOpt save_opt, enum MessageTransformOpt transform_opt)
Save an email.
bool mutt_edit_content_type(struct Email *e, struct Body *b, FILE *fp)
Edit the content type of an attachment.
void mutt_display_address(struct Envelope *env)
Display the address of a message.
Manage where the email is piped to external commands.
MessageTransformOpt
Message transformation option.
@ TRANSFORM_NONE
No transformation.
@ TRANSFORM_DECODE
Decode message.
@ TRANSFORM_DECRYPT
Decrypt message.
MessageSaveOpt
Message save option.
@ SAVE_MOVE
Move message to another mailbox, removing the original.
@ SAVE_COPY
Copy message, making a duplicate in another mailbox.
int mutt_file_sanitize_regex(struct Buffer *dest, const char *src)
Escape any regex-magic characters in a string.
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.
bool OptNews
(pseudo) used to change reader mode
bool OptNeedResort
(pseudo) used to force a re-sort
static int op_delete(struct AliasMenuData *mdata, int op)
delete the current entry - Implements alias_function_t -
static int op_main_limit(struct AliasMenuData *mdata, int op)
show only messages matching a pattern - Implements alias_function_t -
static int op_exit(struct AliasMenuData *mdata, int op)
exit this menu - Implements alias_function_t -
static int op_query(struct AliasMenuData *mdata, int op)
query external program for addresses - Implements alias_function_t -
static int op_search(struct AliasMenuData *mdata, int op)
search for a regular expression - Implements alias_function_t -
static int op_create_alias(struct AliasMenuData *mdata, int op)
create an alias from a message sender - Implements alias_function_t -
static int op_sort(struct AliasMenuData *mdata, int op)
sort aliases - Implements alias_function_t -
static int op_forward_message(struct AttachPrivateData *priv, int op)
forward a message with comments - Implements attach_function_t -
static int op_bounce_message(struct AttachPrivateData *priv, int op)
remail a message to another user - Implements attach_function_t -
static int op_attachment_edit_type(struct AttachPrivateData *priv, int op)
edit attachment content type - Implements attach_function_t -
static int op_extract_keys(struct AttachPrivateData *priv, int op)
extract supported public keys - Implements attach_function_t -
static int op_reply(struct AttachPrivateData *priv, int op)
reply to a message - Implements attach_function_t -
static int op_compose_to_sender(struct AttachPrivateData *priv, int op)
compose new message to the current message sender - Implements attach_function_t -
static int op_forget_passphrase(struct AttachPrivateData *priv, int op)
wipe passphrases from memory - Implements attach_function_t -
static int op_list_subscribe(struct AttachPrivateData *priv, int op)
subscribe to a mailing list - Implements attach_function_t -
static int op_list_unsubscribe(struct AttachPrivateData *priv, int op)
unsubscribe from a mailing list - Implements attach_function_t -
static int op_check_traditional(struct AttachPrivateData *priv, int op)
check for classic PGP - Implements attach_function_t -
static int op_resend(struct AttachPrivateData *priv, int op)
use the current message as a template for a new one - Implements attach_function_t -
static int op_catchup(struct BrowserPrivateData *priv, int op)
Mark all articles in newsgroup as read - Implements browser_function_t -.
static int op_mailbox_list(struct BrowserPrivateData *priv, int op)
List mailboxes with new mail - Implements browser_function_t -.
int index_function_dispatcher(struct MuttWindow *win, int op)
Perform an Index function - Implements function_dispatcher_t -.
void dlg_autocrypt(void)
Display the Autocrypt account Menu -.
void dlg_attachment(struct ConfigSubset *sub, struct MailboxView *mv, struct Email *e, FILE *fp, bool attach_msg)
Show the attachments in a Menu -.
int mw_change_flag(struct Mailbox *m, struct EmailArray *ea, bool bf)
Change the flag on a Message -.
int mw_enter_fname(const char *prompt, struct Buffer *fname, bool mailbox, struct Mailbox *m, bool multiple, char ***files, int *numfiles, SelectFileFlags flags)
Ask the user to select a file -.
int mw_get_field(const char *prompt, struct Buffer *buf, CompletionFlags complete, enum HistoryClass hclass, const struct CompleteOps *comp_api, void *cdata)
Ask the user for a string -.
static int op_quit(struct HistoryData *hd, int op)
Quit this menu - Implements history_function_t -.
static int op_main_link_threads(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Link tagged message to the current one - Implements index_function_t -.
static int op_main_break_thread(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Break the thread in two - Implements index_function_t -.
static int op_main_root_message(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Jump to root message in thread - Implements index_function_t -.
static int op_main_delete_pattern(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Delete messages matching a pattern - Implements index_function_t -.
static int op_toggle_new(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Toggle a message's 'new' flag - Implements index_function_t -.
static int op_mail_key(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Mail a PGP public key - Implements index_function_t -.
static int op_display_message(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Display a message - Implements index_function_t -.
static int op_main_next_undeleted(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Move to the next undeleted message - Implements index_function_t -.
static int op_main_fetch_mail(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Retrieve mail from POP server - Implements index_function_t -.
static int op_list_reply(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Reply to specified mailing list - Implements index_function_t -.
static int op_delete_thread(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Delete all messages in thread - Implements index_function_t -.
static int op_main_next_unread_mailbox(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Open next mailbox with unread mail - Implements index_function_t -.
static int op_pipe(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Pipe message/attachment to a shell command - Implements index_function_t -.
static int op_main_prev_undeleted(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Move to the previous undeleted message - Implements index_function_t -.
static int op_prev_entry(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Move to the previous entry - Implements index_function_t -.
static int op_next_entry(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Move to the next entry - Implements index_function_t -.
static int op_main_modify_tags(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Modify (notmuch/imap) tags - Implements index_function_t -.
static int op_main_sync_folder(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Save changes to mailbox - Implements index_function_t -.
static int op_autocrypt_acct_menu(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Manage autocrypt accounts - Implements index_function_t -.
static int op_end_cond(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
End of conditional execution (noop) - Implements index_function_t -.
static int op_edit_raw_message(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Edit the raw message (edit and edit-raw-message are synonyms) - Implements index_function_t -.
static int op_get_message(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Get parent of the current message - Implements index_function_t -.
static int op_main_next_new(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Jump to the next new message - Implements index_function_t -.
static int op_main_change_group(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Open a different newsgroup - Implements index_function_t -.
static int op_view_attachments(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Show MIME attachments - Implements index_function_t -.
static int op_main_vfolder_from_query(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Generate virtual folder from query - Implements index_function_t -.
static int op_flag_message(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Toggle a message's 'important' flag - Implements index_function_t -.
static int op_main_imap_logout_all(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Logout from all IMAP servers - Implements index_function_t -.
static int op_main_read_thread(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Mark the current thread as read - Implements index_function_t -.
static int op_recall_message(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Recall a postponed message - Implements index_function_t -.
static int op_get_children(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Get all children of the current message - Implements index_function_t -.
static int op_toggle_write(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Toggle whether the mailbox will be rewritten - Implements index_function_t -.
static int op_save(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Make decrypted copy - Implements index_function_t -.
static int op_undelete_thread(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Undelete all messages in thread - Implements index_function_t -.
static int op_main_tag_pattern(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Tag messages matching a pattern - Implements index_function_t -.
static int op_main_untag_pattern(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Untag messages matching a pattern - Implements index_function_t -.
static int op_edit_label(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Add, change, or delete a message's label - Implements index_function_t -.
static int op_main_entire_thread(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Read entire thread of the current message - Implements index_function_t -.
static int op_display_address(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Display full address of sender - Implements index_function_t -.
static int op_post(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Followup to newsgroup - Implements index_function_t -.
static int op_tag(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Tag the current entry - Implements index_function_t -.
static int op_tag_thread(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Tag the current thread - Implements index_function_t -.
static int op_main_collapse_thread(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Collapse/uncollapse current thread - Implements index_function_t -.
static int op_alias_dialog(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Open the aliases dialog - Implements index_function_t -.
static int op_main_imap_fetch(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Force retrieval of mail from IMAP server - Implements index_function_t -.
static int op_main_quasi_delete(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Delete from NeoMutt, don't touch on disk - Implements index_function_t -.
static int op_undelete(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Undelete the current entry - Implements index_function_t -.
static int op_main_collapse_all(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Collapse/uncollapse all threads - Implements index_function_t -.
static int op_jump(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Jump to an index number - Implements index_function_t -.
static int op_main_undelete_pattern(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Undelete messages matching a pattern - Implements index_function_t -.
static int op_mark_msg(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Create a hotkey macro for the current message - Implements index_function_t -.
static int op_main_windowed_vfolder(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Shifts virtual folder time window - Implements index_function_t -.
static int op_main_set_flag(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Set a status flag on a message - Implements index_function_t -.
static int op_main_next_thread(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Jump to the next thread - Implements index_function_t -.
static int op_group_reply(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Reply to all recipients - Implements index_function_t -.
static int op_main_show_limit(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Show currently active limit pattern - Implements index_function_t -.
static int op_main_change_folder(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Open a different folder - Implements index_function_t -.
static int op_mail(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Compose a new mail message - Implements index_function_t -.
static int op_print(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Print the current entry - Implements index_function_t -.
#define mutt_warning(...)
#define mutt_message(...)
#define mutt_debug(LEVEL,...)
Convenience wrapper for the gui headers.
void * mutt_hash_find(const struct HashTable *table, const char *strkey)
Find the HashElem data in a Hash Table element using a key.
Read/write command history from/to a file.
@ HC_OTHER
Miscellaneous strings.
void mutt_startup_shutdown_hook(HookFlags type)
Execute any startup/shutdown hooks.
Parse and execute user-defined hooks.
#define MUTT_SHUTDOWN_HOOK
shutdown-hook: run when leaving NeoMutt
void imap_logout_all(void)
Close all open connections.
enum MxStatus imap_check_mailbox(struct Mailbox *m, bool force)
Use the NOOP or IDLE command to poll for new mail.
const struct MenuFuncOp OpIndex[]
Functions for the Index Menu.
bool index_next_undeleted(struct MuttWindow *win_index)
Select the next undeleted Email (if possible)
static bool resolve_email(struct IndexPrivateData *priv, struct IndexSharedData *shared, enum ResolveMethod rm)
Pick the next Email to advance the cursor to.
const struct MenuOpSeq IndexDefaultBindings[]
Key bindings for the Index Menu.
static bool prereq(struct IndexSharedData *shared, struct Menu *menu, CheckFlags checks)
Check the pre-requisites for a function.
static const struct IndexFunction IndexFunctions[]
All the NeoMutt functions that the Index supports.
ResolveMethod
How to advance the cursor.
@ RESOLVE_NEXT_SUBTHREAD
Next sibling sub-thread.
@ RESOLVE_NEXT_UNDELETED
Next undeleted email.
@ RESOLVE_NEXT_EMAIL
Next email, whatever its state.
@ RESOLVE_NEXT_THREAD
Next top-level thread.
uint8_t CheckFlags
Flags, e.g. CHECK_IN_MAILBOX.
#define CHECK_NO_FLAGS
No flags are set.
#define CHECK_ATTACH
Is the user in message-attach mode?
#define CHECK_VISIBLE
Is the selected message visible in the index?
#define CHECK_IN_MAILBOX
Is there a mailbox open?
#define CHECK_READONLY
Is the mailbox readonly?
#define CHECK_MSGCOUNT
Are there any messages?
#define NT_INDEX_EMAIL
Email has changed.
void index_shared_data_set_email(struct IndexSharedData *shared, struct Email *e)
Set the current Email for the Index and friends.
Data shared between Index, Pager and Sidebar.
enum CommandResult km_bind(char *s, enum MenuType menu, int op, char *macro, char *desc)
Bind a key to a macro.
@ LL_DEBUG1
Log at debug level 1.
@ LL_NOTIFY
Log of notifications.
void msgwin_clear_text(struct MuttWindow *win)
Clear the text in 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.
bool mutt_istr_equal(const char *a, const char *b)
Compare two strings, ignoring case.
bool mutt_strn_equal(const char *a, const char *b, size_t num)
Check for equality of two strings (to a maximum), safely.
size_t mutt_str_copy(char *dest, const char *src, size_t dsize)
Copy a string into a buffer (guaranteeing NUL-termination)
char * mutt_str_replace(char **p, const char *s)
Replace one string with another.
Many unsorted constants and some structs.
#define MUTT_COMP_NO_FLAGS
No flags are set.
@ MUTT_UNDELETE
Messages to be un-deleted.
@ MUTT_LIMIT
Messages in limited view.
@ MUTT_UNTAG
Messages to be un-tagged.
@ 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.
struct Mailbox * mutt_mailbox_next_unread(struct Mailbox *m_cur, struct Buffer *s)
Find next mailbox with unread mail.
struct Mailbox * mutt_mailbox_next(struct Mailbox *m_cur, struct Buffer *s)
Incoming folders completion routine.
bool mutt_mailbox_list(void)
Show a message with the list of mailboxes with new mail.
Mailbox helper functions.
bool mutt_link_threads(struct Email *parent, struct EmailArray *children, struct Mailbox *m)
Forcibly link threads together.
void mutt_draw_tree(struct ThreadsContext *tctx)
Draw a tree of threaded emails.
int mutt_messages_in_thread(struct Mailbox *m, struct Email *e, enum MessageInThread mit)
Count the messages in a thread.
off_t mutt_set_vnum(struct Mailbox *m)
Set the virtual index number of all the messages in a mailbox.
bool mutt_thread_can_collapse(struct Email *e)
Check whether a thread can be collapsed.
int mutt_parent_message(struct Email *e, bool find_root)
Find the parent of a message.
struct HashTable * mutt_make_id_hash(struct Mailbox *m)
Create a Hash Table for message-ids.
Create/manipulate threading in emails.
#define mutt_thread_next_unread(e)
#define mutt_using_threads()
#define mutt_previous_thread(e)
#define mutt_uncollapse_thread(e)
@ MIT_POSITION
Our position in the thread.
#define mutt_next_subthread(e)
#define mutt_thread_contains_unread(e)
#define mutt_previous_subthread(e)
#define mutt_next_thread(e)
#define mutt_collapse_thread(e)
bool window_is_focused(const struct MuttWindow *win)
Does the given Window have the focus?
struct MuttWindow * window_set_focus(struct MuttWindow *win)
Set the Window focus.
void buf_pretty_mailbox(struct Buffer *buf)
Shorten a mailbox path using '~' or '='.
Some miscellaneous functions.
struct Email * mutt_get_virt_email(struct Mailbox *m, int vnum)
Get a virtual Email.
bool mutt_limit_current_thread(struct MailboxView *mv, struct Email *e)
Limit the email view to the current thread.
void mview_free(struct MailboxView **ptr)
Free a MailboxView.
int ea_add_tagged(struct EmailArray *ea, struct MailboxView *mv, struct Email *e, bool use_tagged)
Get an array of the tagged Emails.
bool message_is_tagged(struct Email *e)
Is a message in the index tagged (and within limit)
bool mview_has_limit(const struct MailboxView *mv)
Is a limit active?
int mx_tags_edit(struct Mailbox *m, const char *tags, struct Buffer *buf)
Start the tag editor of the mailbox.
int mx_msg_close(struct Mailbox *m, struct Message **ptr)
Close a message.
void mx_fastclose_mailbox(struct Mailbox *m, bool keep_account)
Free up memory associated with the Mailbox.
struct Mailbox * mx_mbox_find2(const char *path)
Find a Mailbox on an Account.
struct Message * mx_msg_open(struct Mailbox *m, struct Email *e)
Return a stream pointer for a message.
bool mx_tags_is_supported(struct Mailbox *m)
Return true if mailbox support tagging.
int mx_tags_commit(struct Mailbox *m, struct Email *e, const char *tags)
Save tags to the Mailbox - Wrapper for MxOps::tags_commit()
int mx_toggle_write(struct Mailbox *m)
Toggle the mailbox's readonly flag.
enum MxStatus mx_mbox_sync(struct Mailbox *m)
Save changes to mailbox.
enum MxStatus mx_mbox_close(struct Mailbox *m)
Save changes and close mailbox.
MxStatus
Return values from mbox_check(), mbox_check_stats(), mbox_sync(), and mbox_close()
@ MX_STATUS_OK
No changes.
@ MX_STATUS_REOPENED
Mailbox was reopened.
@ MX_STATUS_NEW_MAIL
New mail received in Mailbox.
API for encryption/signing of emails.
#define PGP_TRADITIONAL_CHECKED
Email has a traditional (inline) signature.
#define APPLICATION_PGP
Use PGP to encrypt/sign.
@ NT_GLOBAL_SHUTDOWN
NeoMutt is about to close.
Usenet network mailbox type; talk to an NNTP server.
int nntp_check_msgid(struct Mailbox *m, const char *msgid)
Fetch article by Message-ID.
int nntp_check_children(struct Mailbox *m, const char *msgid)
Fetch children of article with the Message-ID.
void nntp_mailbox(struct Mailbox *m, char *buf, size_t buflen)
Get first newsgroup with new messages.
struct NntpMboxData * mutt_newsgroup_catchup(struct Mailbox *m, struct NntpAccountData *adata, char *group)
Catchup newsgroup.
struct NntpAccountData * CurrentNewsSrv
Current NNTP news server.
struct NntpAccountData * nntp_select_server(struct Mailbox *m, const char *server, bool leave_lock)
Open a connection to an NNTP server.
Nntp-specific Mailbox data.
@ NT_MAILBOX
Mailbox has changed, NotifyMailbox, EventMailbox.
@ NT_INDEX
Index data has changed, NotifyIndex, IndexSharedData.
@ NT_GLOBAL
Not object-related, NotifyGlobal.
const struct CompleteOps CompleteNmQueryOps
Auto-Completion of NmQuerys.
void nm_db_longrun_done(struct Mailbox *m)
Finish a long transaction.
void nm_db_longrun_init(struct Mailbox *m, bool writable)
Start a long transaction.
Notmuch virtual mailbox type.
void nm_query_window_reset(void)
Resets the vfolder window position to the present.
int nm_read_entire_thread(struct Mailbox *m, struct Email *e)
Get the entire thread of an email.
void nm_query_window_backward(void)
Function to move the current search window backward in time.
bool nm_query_window_available(void)
Are windowed queries enabled for use?
bool nm_message_is_still_queried(struct Mailbox *m, struct Email *e)
Is a message still visible in the query?
void nm_query_window_forward(void)
Function to move the current search window forward in time.
const char * opcodes_get_name(int op)
Get the name of an opcode.
Match patterns to emails.
int mutt_search_command(struct MailboxView *mv, struct Menu *menu, int cur, struct SearchState *state, SearchFlags flags)
Perform a search.
int mutt_pattern_func(struct MailboxView *mv, int op, char *prompt)
Perform some Pattern matching.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
void pop_fetch_mail(void)
Fetch messages and save them in $spool_file.
@ MUTT_PROGRESS_WRITE
Progress tracks elements, according to $write_inc
struct Progress * progress_new(enum ProgressType type, size_t size)
Create a new Progress Bar.
void progress_free(struct Progress **ptr)
Free a Progress Bar.
void progress_set_message(struct Progress *progress, const char *fmt,...) __attribute__((__format__(__printf__
bool progress_update(struct Progress *progress, size_t pos, int percent)
Update the state of the progress bar.
Prototypes for many functions.
@ EVM_VIEW
View the message.
@ EVM_EDIT
Edit the message.
@ MUTT_YES
User answered 'Yes', or assume 'Yes'.
enum QuadOption query_quadoption(const char *prompt, struct ConfigSubset *sub, const char *name)
Ask the user a quad-question.
#define STAILQ_FIRST(head)
#define STAILQ_FOREACH(var, head, field)
#define STAILQ_EMPTY(head)
#define STAILQ_NEXT(elm, field)
#define SEARCH_OPPOSITE
Search in the opposite direction.
uint8_t SearchFlags
Flags for a specific search, e.g. SEARCH_PROMPT.
#define SEARCH_NO_FLAGS
No flags are set.
#define SEARCH_PROMPT
Ask for search input.
Convenience wrapper for the send headers.
int mutt_resend_message(FILE *fp, struct Mailbox *m, struct Email *e_cur, struct ConfigSubset *sub)
Resend an email.
bool mutt_send_list_unsubscribe(struct Mailbox *m, struct Email *e)
Send a mailing-list unsubscription email.
int mutt_send_message(SendFlags flags, struct Email *e_templ, const char *tempfile, struct Mailbox *m, struct EmailArray *ea, struct ConfigSubset *sub)
Send an email.
bool mutt_send_list_subscribe(struct Mailbox *m, struct Email *e)
Send a mailing-list subscription email.
#define SEND_GROUP_CHAT_REPLY
Reply to all recipients preserving To/Cc.
uint32_t SendFlags
Flags for mutt_send_message(), e.g. SEND_REPLY.
#define SEND_GROUP_REPLY
Reply to all.
#define SEND_LIST_REPLY
Reply to mailing list.
#define SEND_KEY
Mail a PGP public key.
#define SEND_POSTPONED
Recall a postponed email.
#define SEND_TO_SENDER
Compose new email to sender.
#define SEND_NO_FLAGS
No flags are set.
#define SEND_REPLY
Reply to sender.
#define SEND_NEWS
Reply to a news article.
#define SEND_FORWARD
Forward email.
void mutt_sort_headers(struct MailboxView *mv, bool init)
Sort emails by their headers.
Assorted sorting methods.
String manipulation buffer.
size_t dsize
Length of data.
char * data
Pointer to data.
The envelope/body of an email.
bool visible
Is this message part of the view?
struct Envelope * env
Envelope information.
bool collapsed
Is this message part of a collapsed thread?
SecurityFlags security
bit 0-10: flags, bit 11,12: application, bit 13: traditional pgp See: ncrypt/lib.h pgplib....
struct Body * body
List of MIME parts.
bool old
Email is seen, but unread.
bool attach_del
Has an attachment marked for deletion.
bool flagged
Marked important?
bool threaded
Used for threading.
const struct AttrColor * attr_color
Color-pair to use when displaying in the index.
int vnum
Virtual message number.
struct TagList tags
For drivers that support server tagging.
bool deleted
Email is deleted.
int index
The absolute (unsorted) message number.
bool quasi_deleted
Deleted from neomutt, but not modified on disk.
bool tagged
Email is tagged.
char * followup_to
List of 'followup-to' fields.
char * message_id
Message ID.
struct ListHead references
message references (in reverse order)
struct ListHead in_reply_to
in-reply-to header content
An Event that happened to a Mailbox.
int op
Op code, e.g. OP_MAIN_LIMIT.
index_function_t function
Function to call.
int flags
Prerequisites for the function, e.g. CHECK_IN_MAILBOX.
Private state data for the Index.
struct MuttWindow * win_index
Window for the Index.
struct IndexSharedData * shared
Shared Index data.
bool tag_prefix
tag-prefix has been pressed
struct Menu * menu
Menu controlling the index.
int oldcount
Old count of mails in the mailbox.
Data shared between Index, Pager and Sidebar.
struct Email * email
Currently selected Email.
struct Mailbox * mailbox
Current Mailbox.
bool attach_msg
Are we in "attach message" mode?
struct ConfigSubset * sub
Config set to use.
struct MailboxView * mailbox_view
Current Mailbox view.
struct SearchState * search_state
State of the current search.
struct Notify * notify
Notifications: NotifyIndex, IndexSharedData.
bool collapsed
Are all threads collapsed?
struct Menu * menu
Needed for pattern compilation.
struct ThreadsContext * threads
Threads context.
struct Mailbox * mailbox
Current Mailbox.
char * pattern
Limit pattern string.
int vcount
The number of virtual messages.
bool changed
Mailbox has been modified.
int msg_count
Total number of messages.
AclFlags rights
ACL bits, see AclFlags.
enum MailboxType type
Mailbox type.
void * mdata
Driver specific data.
struct Email ** emails
Array of Emails.
char * name
A short name for the Mailbox.
struct Notify * notify
Notifications: NotifyMailbox, EventMailbox.
struct HashTable * id_hash
Hash Table: "message-id" -> Email.
struct Buffer pathbuf
Path of the Mailbox.
bool readonly
Don't allow changes to the mailbox.
int msg_tagged
How many messages are tagged?
bool verbose
Display status messages?
A local copy of an email.
FILE * fp
pointer to the message data
const struct Mapping * help_data
Data for the Help Bar.
void * wdata
Private data.
struct MuttWindow * parent
Parent Window.
Container for Accounts, Notifications.
struct Notify * notify
Notifications handler.
struct ConfigSubset * sub
Inherited config items.
NNTP-specific Mailbox data -.
bool reverse
search backwards
struct PatternList * pattern
compiled search pattern
void mutt_break_thread(struct Email *e)
Break the email Thread.
@ MENU_INDEX
Index panel (list of emails)