NeoMutt  2021-02-05-666-ge300cd
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

const struct Mapping SortAliasMethods []
 Sort methods for email aliases. More...
 
static 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.

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:54
Sort by the order the messages appear in the mailbox.
Definition: sort2.h:48
Sort by email alias.
Definition: sort2.h:53

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 },
}
#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:36
#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:53
const struct Mapping SortAliasMethods[]
Sort methods for email aliases.
Definition: config.c:38

Definition at line 47 of file config.c.