69 static char capbuf[10];
120 char op,
const char *src,
const char *prec,
121 const char *if_str,
const char *else_str,
124 char fmt[128] = { 0 };
133 snprintf(fmt,
sizeof(fmt),
"%%%ss", prec);
134 snprintf(buf, buflen, fmt,
NONULL(remailer->
addr));
136 else if (!remailer->
addr)
146 snprintf(fmt,
sizeof(fmt),
"%%%ss", prec);
154 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
155 snprintf(buf, buflen, fmt, remailer->
num);
161 snprintf(fmt,
sizeof(fmt),
"%%%ss", prec);
196 struct RemailerArray *ra = menu->
mdata;
214 win_hosts->
focus = win_hosts;
234 if (!win || !win->
wdata)
241 struct RemailerArray *ra = menu->
mdata;
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_GET(head, idx)
Return the element at index.
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
static const char * mix_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags)
Format a string for the remailer menu - Implements format_t -.
void mutt_expando_format(char *buf, size_t buflen, size_t col, int cols, const char *src, format_t callback, intptr_t data, MuttFormatFlags flags)
Expand expandos (x) in a string -.
Convenience wrapper for the gui headers.
Convenience wrapper for the library headers.
Some miscellaneous functions.
#define MIX_CAP_MIDDLEMAN
Must be a middle-man (not at the end of a chain)
#define MIX_CAP_NEWSMAIL
Supports posting to Usenet through a mail-to-news gateway.
#define MIX_CAP_COMPRESS
Accepts compressed messages.
#define MIX_CAP_NEWSPOST
Supports direct posting to Usenet.
struct WindowState state
Current state of the Window.
struct MuttWindow * focus
Focused Window.
void * wdata
Private data.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
char * addr
Address of host.
char * shortname
Short name of remailer host.
MixCapFlags caps
Capabilities of host.
short cols
Number of columns, can be MUTT_WIN_SIZE_UNLIMITED.
@ MENU_MIXMASTER
Create/edit a Mixmaster chain.
struct MuttWindow * win_hosts_new(struct RemailerArray *ra)
Create a new Hosts Window.
struct Remailer * win_hosts_get_selection(struct MuttWindow *win)
Get the current selection.
static const char * mix_format_caps(struct Remailer *r)
Turn flags into a MixMaster capability string.