NeoMutt  2023-11-03-107-g582dc1
Teaching an old dog new tricks
No Matches
config.c File Reference

Config used by libbrowser. More...

#include "config.h"
#include <stddef.h>
#include <stdbool.h>
#include "mutt/lib.h"
#include "config/lib.h"
+ Include dependency graph for config.c:

Go to the source code of this file.


bool config_init_browser (struct ConfigSet *cs)
 Register browser config variables - Implements module_init_config_t -.


static const struct Mapping SortBrowserMethods []
 Sort methods for the folder/dir browser.
static struct ConfigDef BrowserVars []
 Config definitions for the browser.

Detailed Description

Config used by libbrowser.

  • Richard Russon
  • Carlos Henrique Lima Melara

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Definition in file config.c.

Variable Documentation

◆ SortBrowserMethods

const struct Mapping SortBrowserMethods[]
Initial value:
= {
{ "alpha", SORT_SUBJECT },
{ "count", SORT_COUNT },
{ "date", SORT_DATE },
{ "desc", SORT_DESC },
{ "new", SORT_UNREAD },
{ "unread", SORT_UNREAD },
{ "size", SORT_SIZE },
{ "unsorted", SORT_ORDER },
{ NULL, 0 },
Sort by the email's subject.
Definition: sort2.h:42
Sort by the order the messages appear in the mailbox.
Definition: sort2.h:44
Sort by the size of the email.
Definition: sort2.h:40
Sort by the folder's description.
Definition: sort2.h:59
Sort by the date the email was sent.
Definition: sort2.h:39
Sort by number of emails in a folder.
Definition: sort2.h:54
Sort by the number of unread emails.
Definition: sort2.h:55

Sort methods for the folder/dir browser.

Definition at line 39 of file config.c.

◆ BrowserVars

struct ConfigDef BrowserVars[]
Initial value:
= {
{ "browser_abbreviate_mailboxes", DT_BOOL, true, 0, NULL,
"Abbreviate mailboxes using '~' and '=' in the browser"
{ "folder_format", DT_STRING|DT_NOT_EMPTY, IP "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %i", 0, NULL,
"printf-like format string for the browser's display of folders"
{ "group_index_format", DT_STRING|DT_NOT_EMPTY|R_INDEX, IP "%4C %M%N %5s %-45.45f %d", 0, NULL,
"(nntp) printf-like format string for the browser's display of newsgroups"
{ "mailbox_folder_format", DT_STRING|DT_NOT_EMPTY, IP "%2C %<n?%6n& > %6m %i", 0, NULL,
"printf-like format string for the browser's display of mailbox folders"
"Only display files/dirs matching this regex in the browser"
{ "show_only_unread", DT_BOOL, false, 0, NULL,
"(nntp) Only show subscribed newsgroups with unread articles"
"Sort method for the browser"
{ "browser_sort_dirs_first", DT_BOOL, false, 0, NULL,
"Group directories before files in the browser"
{ NULL },
static const struct Mapping SortBrowserMethods[]
Sort methods for the folder/dir browser.
Definition: config.c:39
#define IP
Definition: set.h:54
Regex can begin with '!'.
Definition: regex3.h:36
Case-sensitive matching.
Definition: regex3.h:35
Do not report what was matched (REG_NOSUB)
Definition: regex3.h:37
Sort flag for -reverse prefix.
Definition: sort2.h:32
Required by makedoc.c.
Definition: sort2.h:41
#define DT_SORT
sorting methods
Definition: types.h:40
#define DT_BOOL
boolean option
Definition: types.h:30
#define DT_NOT_EMPTY
Empty strings are not allowed.
Definition: types.h:50
#define DT_STRING
a string
Definition: types.h:41
#define R_INDEX
Redraw the index menu (MENU_INDEX)
Definition: types.h:69
#define DT_REGEX
regular expressions
Definition: types.h:38

Config definitions for the browser.

Definition at line 56 of file config.c.