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

Config used by libaddress. 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_alias (struct ConfigSet *cs)
 Register alias config variables - Implements module_init_config_t -. More...
 

Variables

static const struct Mapping SortAliasMethods []
 Sort methods for email aliases. More...
 
static struct ConfigDef AliasVars []
 Config definitions for the alias library. More...
 

Detailed Description

Config used by libaddress.

Authors
  • Richard Russon

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

◆ SortAliasMethods

const struct Mapping SortAliasMethods[]
static
Initial value:
= {
{ "address", SORT_ADDRESS },
{ "alias", SORT_ALIAS },
{ "unsorted", SORT_ORDER },
{ NULL, 0 },
}
@ SORT_ORDER
Sort by the order the messages appear in the mailbox.
Definition: sort2.h:44
@ SORT_ALIAS
Sort by email alias.
Definition: sort2.h:49
@ SORT_ADDRESS
Sort by email address.
Definition: sort2.h:50

Sort methods for email aliases.

Definition at line 38 of file config.c.

◆ AliasVars

struct ConfigDef AliasVars[]
static
Initial value:
= {
{ "alias_file", DT_PATH|DT_PATH_FILE, IP "~/.neomuttrc", 0, NULL,
"Save new aliases to this file"
},
{ "alias_format", DT_STRING|DT_NOT_EMPTY, IP "%3n %f%t %-15a %-56r | %c", 0, NULL,
"printf-like format string for the alias menu"
},
"Sort method for the alias menu"
},
{ "query_command", DT_STRING|DT_COMMAND, 0, 0, NULL,
"External command to query and external address book"
},
{ "query_format", DT_STRING|DT_NOT_EMPTY, IP "%3c %t %-25.25n %-25.25a | %e", 0, NULL,
"printf-like format string for the query menu (address book)"
},
{ NULL },
}
static const struct Mapping SortAliasMethods[]
Sort methods for email aliases.
Definition: config.c:38
#define IP
Definition: set.h:54
#define DT_SORT_REVERSE
Sort flag for -reverse prefix.
Definition: sort2.h:32
#define DT_SORT
sorting methods
Definition: types.h:40
#define DT_PATH_FILE
Path is a file.
Definition: types.h:57
#define DT_PATH
a path to a file/directory
Definition: types.h:36
#define DT_NOT_EMPTY
Empty strings are not allowed.
Definition: types.h:49
#define DT_STRING
a string
Definition: types.h:41
#define DT_COMMAND
A command.
Definition: types.h:53

Config definitions for the alias library.

Definition at line 50 of file config.c.