56 char op,
const char *src,
const char *prec,
57 const char *if_str,
const char *else_str,
60 char fn[128], fmt[128];
66 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
67 snprintf(buf, buflen, fmt, folder->
num + 1);
76 if (c_newsgroups_charset)
80 snprintf(fmt,
sizeof(fmt),
"%%%ss", prec);
81 snprintf(buf, buflen, fmt, desc);
86 snprintf(fmt,
sizeof(fmt),
"%%%ss", prec);
87 snprintf(buf, buflen, fmt,
"");
93 snprintf(fmt,
sizeof(fmt),
"%%%ss", prec);
94 snprintf(buf, buflen, fmt, fn);
98 snprintf(fmt,
sizeof(fmt),
"%%%sc", prec);
100 snprintf(buf, buflen, fmt,
'D');
102 snprintf(buf, buflen, fmt, folder->
ff->
nd->
allowed ?
' ' :
'-');
106 snprintf(fmt,
sizeof(fmt),
"%%%sc", prec);
108 snprintf(buf, buflen, fmt,
' ');
119 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
124 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
125 snprintf(buf, buflen, fmt, folder->
ff->
nd->
unread);
146 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
147 snprintf(buf, buflen, fmt, folder->
ff->
nd->
unread);
Select a Mailbox from a list.
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 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 -.
const char * group_index_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 newsgroup menu - Implements format_t -.
int mutt_mb_filter_unprintable(char **s)
Replace unprintable characters.
int mutt_ch_convert_string(char **ps, const char *from, const char *to, uint8_t flags)
Convert a string between encodings.
#define MUTT_ICONV_HOOK_FROM
apply charset-hooks to fromcode
Convenience wrapper for the library headers.
char * mutt_str_dup(const char *str)
Copy a string, safely.
size_t mutt_str_copy(char *dest, const char *src, size_t dsize)
Copy a string into a buffer (guaranteeing NUL-termination)
Some miscellaneous functions.
Notmuch-specific Mailbox data.
char * name
Name of file/dir/mailbox.
bool has_new_mail
true if mailbox has "new mail"
struct NntpMboxData * nd
Extra NNTP data.
A folder/dir in the browser.
int num
Number in the index.
struct FolderFile * ff
File / Dir / Mailbox.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
char * desc
Description of newsgroup.