66 const char **parsed_until,
107 { NULL, NULL, 0, -1, NULL }
131 { NULL, NULL, 0, -1, NULL }
140 {
"browser_abbreviate_mailboxes",
DT_BOOL,
true, 0, NULL,
141 "Abbreviate mailboxes using '~' and '=' in the browser"
144 "Sort method for the browser"
147 "printf-like format string for the browser's display of folders"
150 "(nntp) printf-like format string for the browser's display of newsgroups"
153 "printf-like format string for the browser's display of mailbox folders"
156 "Only display files/dirs matching this regex in the browser"
158 {
"show_only_unread",
DT_BOOL,
false, 0, NULL,
159 "(nntp) Only show subscribed newsgroups with unread articles"
161 {
"browser_sort_dirs_first",
DT_BOOL,
false, 0, NULL,
162 "Group directories before files in the browser"
165 {
"sort_browser",
DT_SYNONYM,
IP "browser_sort",
IP "2024-11-20" },
static struct ConfigDef BrowserVars[]
Config definitions for the browser.
static const struct ExpandoDefinition GroupIndexFormatDef[]
Expando definitions.
static const struct ExpandoDefinition FolderFormatDef[]
Expando definitions.
static const struct Mapping BrowserSortMethods[]
Sort methods for the folder/dir browser.
@ ED_FOL_POLL
FolderFile.poll_new_mail.
@ ED_FOL_NOTIFY
FolderFile.notify_user.
@ ED_FOL_NEW_COUNT
FolderFile.nd (NntpMboxData)
@ ED_FOL_FILE_OWNER
FolderFile.uid.
@ ED_FOL_FILE_GROUP
FolderFile.gid.
@ ED_FOL_FILENAME
FolderFile.name.
@ ED_FOL_DATE_FORMAT
FolderFile.mtime.
@ ED_FOL_DATE_STRF
FolderFile.mtime.
@ ED_FOL_UNREAD_COUNT
FolderFile.msg_unread.
@ ED_FOL_FLAGS2
FolderFile.nd (NntpMboxData)
@ ED_FOL_FILE_MODE
FolderFile.move.
@ ED_FOL_NEW_MAIL
FolderFile.has_new_mail.
@ ED_FOL_FILE_SIZE
FolderFile.size.
@ ED_FOL_HARD_LINKS
FolderFile.nlink.
@ ED_FOL_DATE
FolderFile.mtime.
@ ED_FOL_TAGGED
FolderFile.tagged.
@ ED_FOL_NUMBER
Folder.num.
@ ED_FOL_DESCRIPTION
FolderFile.desc, FolderFile.name.
@ ED_FOL_MESSAGE_COUNT
FolderFile.msg_count.
@ ED_FOL_NEWSGROUP
FolderFile.name.
@ ED_FOL_FLAGS
FolderFile.nd (NntpMboxData)
@ BROWSER_SORT_ALPHA
Sort alphabetically by name.
@ BROWSER_SORT_UNSORTED
Sort into the raw order.
@ BROWSER_SORT_COUNT
Sort by total message count.
@ BROWSER_SORT_DATE
Sort by date.
@ BROWSER_SORT_NEW
Sort by count of new messages.
@ BROWSER_SORT_SIZE
Sort by size.
@ BROWSER_SORT_DESC
Sort by description.
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
uint8_t ExpandoParserFlags
Flags for expando_parse(), e.g. EP_CONDITIONAL.
#define EP_CONDITIONAL
Expando is being used as a condition.
@ ED_FOLDER
Folder ED_FOL_ ExpandoDataFolder.
@ ED_GLOBAL
Global ED_GLO_ ExpandoDataGlobal.
bool config_init_browser(struct ConfigSet *cs)
Register browser config variables - Implements module_init_config_t -.
struct ExpandoNode * node_padding_parse(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Padding Expando - Implements ExpandoDefinition::parse() -.
struct ExpandoNode * parse_folder_date(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Date Expando - Implements ExpandoDefinition::parse() -.
Convenience wrapper for the library headers.
struct ExpandoNode * node_conddate_parse(const char *str, int did, int uid, const char **parsed_until, struct ExpandoParseError *err)
Parse a CondDate format string.
struct ExpandoNode * node_expando_parse_enclosure(const char *str, int did, int uid, char terminator, struct ExpandoFormat *fmt, const char **parsed_until, struct ExpandoParseError *err)
Parse an enclosed Expando.
Container for lots of config items.
Definition of a format string.
int uid
Unique ID, e.g. ED_EMA_SIZE.
int did
Domain ID, e.g. ED_EMAIL.
Buffer for parsing errors.
Mapping between user-readable string and a constant.
#define D_REGEX_ALLOW_NOT
Regex can begin with '!'.
#define D_REGEX_MATCH_CASE
Case-sensitive matching.
@ DT_SYNONYM
synonym for another variable
@ DT_REGEX
regular expressions
#define D_SORT_REVERSE
Sort flag for -reverse prefix.
#define D_NOT_EMPTY
Empty strings are not allowed.
#define D_REGEX_NOSUB
Do not report what was matched (REG_NOSUB)
@ ED_GLO_PADDING_EOL
Padding to end-of-line.
@ ED_GLO_PADDING_HARD
Hard Padding.
@ ED_GLO_PADDING_SOFT
Soft Padding.
@ ED_GLO_PADDING_SPACE
Space Padding.