64 {
"list-archive", OP_LIST_ARCHIVE },
65 {
"list-help", OP_LIST_HELP },
66 {
"list-owner", OP_LIST_OWNER },
67 {
"list-post", OP_LIST_POST },
68 {
"list-subscribe", OP_LIST_SUBSCRIBE },
69 {
"list-unsubscribe", OP_LIST_UNSUBSCRIBE },
77 { OP_LIST_ARCHIVE,
"a" },
78 { OP_LIST_HELP,
"h" },
79 { OP_LIST_OWNER,
"o" },
80 { OP_LIST_POST,
"p" },
81 { OP_LIST_SUBSCRIBE,
"s" },
82 { OP_LIST_UNSUBSCRIBE,
"u" },
116 return (
struct ListHead *) (((
char *) headers) + action->
offset);
128 if (!entry || !entry->
value)
134 const char *uri = entry->
value;
151 char ctype[] =
"text/plain";
169 fprintf(fp,
"%s\n", body);
208 if (event && (event->
op != OP_GENERIC_SELECT_ENTRY))
210 int first_match = -1;
223 if (num_matches == 0)
272 if (!event || !dlg || !dlg->
wdata)
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_GET(head, idx)
Return the element at index.
char * buf_strdup(const struct Buffer *buf)
Copy a Buffer's string.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
bool candidate(struct CompletionData *cd, char *user, const char *src, char *dest, size_t dlen)
Helper function for completion.
Convenience wrapper for the core headers.
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.
void dispatcher_flush_on_error(int rv)
Flush pending keys after a dispatch error.
@ FR_SUCCESS
Valid function - successfully performed.
@ FR_UNKNOWN
Unknown function.
@ FR_ERROR
Valid function - error occurred.
@ FR_NO_ACTION
Valid function - no action performed.
struct Body * mutt_body_new(void)
Create a new Body.
struct Email * email_new(void)
Create a new Email.
void email_free(struct Email **ptr)
Free an Email.
Structs that make up an email.
void mutt_parse_content_type(const char *s, struct Body *b)
Parse a content type.
bool mutt_parse_mailto(struct Envelope *env, char **body, const char *src)
Parse a mailto:// url.
struct Envelope * mutt_env_new(void)
Create a new Envelope.
#define mutt_file_fclose(FP)
#define mutt_file_fopen(PATH, MODE)
static int op_quit(struct AliasFunctionData *fdata, const struct KeyEvent *event)
Save changes and exit this dialog - Implements alias_function_t -.
int mlist_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a List dialog function - Implements function_dispatcher_t -.
#define mutt_debug(LEVEL,...)
static int op_select_action(struct ListData *ld, const struct KeyEvent *event)
Execute the selected mailing-list action - Implements mlist_function_t -.
Convenience wrapper for the gui headers.
void km_menu_add_submenu(struct MenuDefinition *md, struct SubMenu *sm)
Add a SubMenu to a Menu Definition.
struct SubMenu * km_register_submenu(const struct MenuFuncOp functions[])
Register a submenu.
struct MenuDefinition * km_register_menu(int menu, const char *name)
Register a menu.
void km_menu_add_bindings(struct MenuDefinition *md, const struct MenuOpSeq bindings[])
Add Keybindings to a Menu.
@ LL_DEBUG1
Log at debug level 1.
#define FREE(x)
Free memory and set the pointer to NULL.
@ DISP_INLINE
Content is inline.
static bool compose_list_action(struct ListData *ld, const struct ListEntry *entry)
Compose a message for a mailing-list action.
static const struct MenuFuncOp OpList[]
Functions for the List Dialog.
const int ListActionsCount
Number of entries in ListActions.
static const struct MenuOpSeq ListDefaultBindings[]
Key bindings for the List Dialog.
static const struct MlistFunction MlistFunctions[]
All the NeoMutt functions that the List Dialog supports.
const struct ListAction ListActions[]
Mailing-list actions shown in the dialog.
void mlist_init_keys(struct NeoMutt *n, struct SubMenu *sm_generic)
Initialise the Mlist Keybindings - Implements ::init_keys_api.
struct ListHead * mlist_action_value(struct Rfc2369ListHeaders *headers, const struct ListAction *action)
Get the stored value for a mailing-list action.
Mailing-list action dialog.
Mlist private Module data.
@ MODULE_ID_MLIST
ModuleMlist, Mailing-list
Convenience wrapper for the library headers.
size_t mutt_istr_startswith(const char *str, const char *prefix)
Check whether a string starts with a prefix, ignoring case.
void * neomutt_get_module_data(struct NeoMutt *n, enum ModuleId id)
Get the private data for a Module.
const char * opcodes_get_name(int op)
Get the name of an opcode.
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.
Convenience wrapper for the send headers.
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.
@ SEND_DRAFT_FILE
Used by the -H flag.
bool unlink
If true, filename should be unlink()ed before free()ing this structure.
bool use_disp
Content-Disposition uses filename= ?
unsigned int disposition
content-disposition, ContentDisposition
char * filename
When sending a message, this is the file to which this structure refers.
String manipulation buffer.
The envelope/body of an email.
struct Envelope * env
Envelope information.
struct Body * body
List of MIME parts.
An event such as a keypress.
int op
Function opcode, e.g. OP_HELP.
A mailing-list action in the dialog.
size_t offset
Offset into struct Rfc2369ListHeaders.
Private data for the Mailing-list action dialog.
struct Menu * menu
Dialog menu.
struct Mailbox * mailbox
Source mailbox.
struct ListEntryArray entries
Menu rows.
bool done
Exit the dialog.
A mailing-list action in the dialog.
const char * value
URI to use.
Mlist private Module data.
struct MenuDefinition * menu_mlist
Mlist menu definition.
void * wdata
Private data.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
#define buf_mktemp_draft(buf)
@ MENU_LIST
Mailing-list actions.