NeoMutt  2020-11-20
Teaching an old dog new tricks
DOXYGEN
config.c File Reference

Config used by libaddress. More...

#include "config.h"
#include <config/lib.h>
#include <stdbool.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

const struct Mapping SortAliasMethods []
 Sort methods for email aliases. More...
 
struct ConfigDef AliasVars []
 

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.

Function Documentation

◆ config_init_alias()

bool config_init_alias ( struct ConfigSet cs)

Register alias config variables - Implements module_init_config_t.

Definition at line 69 of file config.c.

70 {
72 }
#define DT_NO_VARIABLE
Config item doesn&#39;t have a backing global variable.
Definition: types.h:84
struct ConfigDef AliasVars[]
Definition: config.c:45
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], int flags)
Register a set of config items.
Definition: set.c:286
+ Here is the call graph for this function:

Variable Documentation

◆ SortAliasMethods

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

Sort methods for email aliases.

Definition at line 36 of file config.c.

◆ AliasVars

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

Definition at line 45 of file config.c.