45 {
N_(
"Exit"), OP_EXIT },
46 {
N_(
"Archive"), OP_LIST_ARCHIVE },
47 {
N_(
"Help"), OP_LIST_HELP },
48 {
N_(
"Owner"), OP_LIST_OWNER },
49 {
N_(
"Post"), OP_LIST_POST },
50 {
N_(
"Subscribe"), OP_LIST_SUBSCRIBE },
51 {
N_(
"Unsubscribe"), OP_LIST_UNSUBSCRIBE },
138 mutt_error(
_(
"Unable to read mailing list headers"));
175 struct KeyEvent event = { 0, OP_NULL };
#define ARRAY_ADD(head, elem)
Add an element at the end of the array.
#define ARRAY_EMPTY(head)
Check if an array is empty.
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_FREE(head)
Release all memory.
#define ARRAY_GET(head, idx)
Return the element at index.
size_t buf_addch(struct Buffer *buf, char c)
Add a single character to a Buffer.
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.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Convenience wrapper for the core headers.
size_t mutt_strwidth(const char *s)
Measure a string's width in screen cells.
@ FR_UNKNOWN
Unknown function.
static void mlist_data_add_entries(struct ListData *ld, const struct ListAction *action)
Add menu rows for one mailing-list action.
static const struct Mapping MlistHelp[]
Help Bar for the Mailing-list action dialog.
Structs that make up an email.
void mutt_rfc2369_list_headers_free(struct Rfc2369ListHeaders *headers)
Free RFC 2369 mailing-list header values.
void mutt_rfc2369_read_headers(FILE *fp, struct Rfc2369ListHeaders *headers)
Read RFC 2369 mailing-list headers.
bool mutt_file_seek(FILE *fp, LOFF_T offset, int whence)
Wrapper for fseeko with error handling.
struct KeyEvent km_dokey(const struct MenuDefinition *md, GetChFlags flags)
Determine what a keypress should do.
void km_error_key(const struct MenuDefinition *md)
Handle an unbound key sequence.
@ GETCH_NONE
No flags are set.
int mlist_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a List dialog function - Implements function_dispatcher_t -.
int menu_tagging_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform tagging operations on the Menu - Implements function_dispatcher_t -.
int global_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Global function - Implements function_dispatcher_t -.
int menu_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Menu function - Implements function_dispatcher_t -.
void dlg_mlist(struct Mailbox *m, struct Email *e)
Display mailing-list actions for an email -.
#define mutt_warning(...)
#define mutt_debug(LEVEL,...)
Convenience wrapper for the gui headers.
void simple_dialog_free(struct MuttWindow **ptr)
Destroy a simple index Dialog.
struct SimpleDialogWindows simple_dialog_new(const struct MenuDefinition *md, enum WindowType wtype, const struct Mapping *help_data)
Create a simple index Dialog.
@ LL_DEBUG1
Log at debug level 1.
#define FREE(x)
Free memory and set the pointer to NULL.
#define MUTT_MEM_CALLOC(n, type)
#define MAX(a, b)
Return the maximum of two values.
const int ListActionsCount
Number of entries in ListActions.
const struct ListAction ListActions[]
Mailing-list actions shown in the dialog.
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.
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 mutt_clear_error(void)
Clear the message line (bottom line of screen)
void window_redraw(struct MuttWindow *win)
Reflow, recalc and repaint a tree of Windows.
struct MuttWindow * window_set_focus(struct MuttWindow *win)
Set the Window focus.
@ WT_DLG_MLIST
Mailing List Dialog, dlg_mlist()
int mx_msg_close(struct Mailbox *m, struct Message **ptr)
Close a message.
struct Message * mx_msg_open(struct Mailbox *m, struct Email *e)
Return a stream pointer for a message.
const char * opcodes_get_name(int op)
Get the name of an opcode.
#define STAILQ_FOREACH(var, head, field)
void sbar_set_title(struct MuttWindow *win, const char *title)
Set the title for the Simple Bar.
String manipulation buffer.
The envelope/body of an email.
LOFF_T offset
Where in the stream does this message begin?
An event such as a keypress.
int op
Function opcode, e.g. OP_HELP.
A mailing-list action in the dialog.
const char * name
Label for the action.
Private data for the Mailing-list action dialog.
int label_width
Width of the longest action label.
struct Menu * menu
Dialog menu.
struct Mailbox * mailbox
Source mailbox.
struct ListEntryArray entries
Menu rows.
struct Rfc2369ListHeaders headers
Parsed List-* headers.
bool done
Exit the dialog.
A mailing-list action in the dialog.
const char * value
URI to use.
const struct ListAction * action
Action definition.
Mapping between user-readable string and a constant.
A local copy of an email.
FILE * fp
pointer to the message data
Tuple for the results of simple_dialog_new()
struct MuttWindow * sbar
Simple Bar.
struct MuttWindow * dlg
Main Dialog Window.
@ MENU_LIST
Mailing-list actions.