NeoMutt  2023-05-17-56-ga67199
Teaching an old dog new tricks
DOXYGEN
config.c File Reference

Config used by libbrowser. More...

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

Go to the source code of this file.

Functions

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

Variables

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

Detailed Description

Config used by libbrowser.

Authors
  • 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 http://www.gnu.org/licenses/.

Definition in file config.c.

Variable Documentation

◆ SortBrowserMethods

const struct Mapping SortBrowserMethods[]
static
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_SUBJECT
Sort by the email's subject.
Definition: sort2.h:42
@ SORT_ORDER
Sort by the order the messages appear in the mailbox.
Definition: sort2.h:44
@ SORT_SIZE
Sort by the size of the email.
Definition: sort2.h:40
@ SORT_DESC
Sort by the folder's description.
Definition: sort2.h:59
@ SORT_DATE
Sort by the date the email was sent.
Definition: sort2.h:39
@ SORT_COUNT
Sort by number of emails in a folder.
Definition: sort2.h:54
@ SORT_UNREAD
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[]
static
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&%6 ? %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"
},
{ NULL },
}
static const struct Mapping SortBrowserMethods[]
Sort methods for the folder/dir browser.
Definition: config.c:39
#define IP
Definition: set.h:54
#define DT_REGEX_ALLOW_NOT
Regex can begin with '!'.
Definition: regex3.h:36
#define DT_REGEX_MATCH_CASE
Case-sensitive matching.
Definition: regex3.h:35
#define DT_REGEX_NOSUB
Do not report what was matched (REG_NOSUB)
Definition: regex3.h:37
#define DT_SORT_REVERSE
Sort flag for -reverse prefix.
Definition: sort2.h:32
@ SORT_ALPHA
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:49
#define DT_STRING
a string
Definition: types.h:41
#define R_INDEX
Redraw the index menu (MENU_INDEX)
Definition: types.h:68
#define DT_REGEX
regular expressions
Definition: types.h:38

Config definitions for the browser.

Definition at line 56 of file config.c.