58 char op,
const char *src,
const char *prec,
59 const char *if_str,
const char *else_str,
62 char fn[128], fmt[128];
71 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
82 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
83 snprintf(buf, buflen, fmt, folder->
num + 1);
91 if (c_newsgroups_charset)
95 snprintf(fmt,
sizeof(fmt),
"%%%ss", prec);
96 snprintf(buf, buflen, fmt, desc);
101 snprintf(fmt,
sizeof(fmt),
"%%%ss", prec);
102 snprintf(buf, buflen, fmt,
"");
108 snprintf(fmt,
sizeof(fmt),
"%%%ss", prec);
109 snprintf(buf, buflen, fmt, fn);
113 snprintf(fmt,
sizeof(fmt),
"%%%sc", prec);
115 snprintf(buf, buflen, fmt,
'D');
117 snprintf(buf, buflen, fmt, folder->
ff->
nd->
allowed ?
' ' :
'-');
121 snprintf(fmt,
sizeof(fmt),
"%%%sc", prec);
123 snprintf(buf, buflen, fmt,
' ');
134 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
139 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
140 snprintf(buf, buflen, fmt, folder->
ff->
nd->
unread);
148 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
174 snprintf(fmt,
sizeof(fmt),
"%%%sd", prec);
175 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.
const char * cc_charset(void)
Get the cached value of $charset.
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"
bool poll_new_mail
Check mailbox for new mail.
bool notify_user
User will be notified of 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.