Functions to parse commands in a config file. More...
Include dependency graph for commands.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | MUTT_NAMED (1 << 0) |
Functions | |
| enum CommandResult | parse_cd (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'cd' command - Implements Command::parse() -. | |
| enum CommandResult | parse_echo (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'echo' command - Implements Command::parse() -. | |
| enum CommandResult | parse_finish (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'finish' command - Implements Command::parse() -. | |
| enum CommandResult | parse_group (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'group' and 'ungroup' commands - Implements Command::parse() -. | |
| enum CommandResult | parse_ifdef (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'ifdef' and 'ifndef' commands - Implements Command::parse() -. | |
| enum CommandResult | parse_ignore (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'ignore' command - Implements Command::parse() -. | |
| enum CommandResult | parse_lists (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'lists' command - Implements Command::parse() -. | |
| enum CommandResult | parse_mailboxes (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'mailboxes' command - Implements Command::parse() -. | |
| enum CommandResult | parse_my_hdr (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'my_hdr' command - Implements Command::parse() -. | |
| enum CommandResult | parse_nospam (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'nospam' command - Implements Command::parse() -. | |
| enum CommandResult | parse_setenv (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'setenv' and 'unsetenv' commands - Implements Command::parse() -. | |
| enum CommandResult | parse_source (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'source' command - Implements Command::parse() -. | |
| enum CommandResult | parse_spam (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'spam' command - Implements Command::parse() -. | |
| enum CommandResult | parse_stailq (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse a list command - Implements Command::parse() -. | |
| enum CommandResult | parse_subjectrx_list (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'subjectrx' command - Implements Command::parse() -. | |
| enum CommandResult | parse_subscribe (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'subscribe' command - Implements Command::parse() -. | |
| enum CommandResult | parse_subscribe_to (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'subscribe-to' command - Implements Command::parse() -. | |
| enum CommandResult | parse_tag_formats (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'tag-formats' command - Implements Command::parse() -. | |
| enum CommandResult | parse_tag_transforms (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'tag-transforms' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unalternates (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'unalternates' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unignore (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'unignore' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unlists (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'unlists' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unmailboxes (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'unmailboxes' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unmy_hdr (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'unmy_hdr' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unstailq (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse an unlist command - Implements Command::parse() -. | |
| enum CommandResult | parse_unsubjectrx_list (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'unsubjectrx' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unsubscribe (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'unsubscribe' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unsubscribe_from (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'unsubscribe-from' command - Implements Command::parse() -. | |
| enum CommandResult | parse_version (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'version' command - Implements Command::parse() -. | |
| enum CommandResult | parse_rc_line_cwd (const char *line, char *cwd, struct Buffer *err) |
| Parse and run a muttrc line in a relative directory. | |
| char * | mutt_get_sourced_cwd (void) |
| Get the current file path that is being parsed. | |
| bool | mailbox_add_simple (const char *mailbox, struct Buffer *err) |
| Add a new Mailbox. | |
| int | parse_grouplist (struct GroupList *gl, struct Buffer *buf, struct Buffer *s, struct Buffer *err, struct HashTable *groups) |
| Parse a group context. | |
| void | source_stack_cleanup (void) |
| Free memory from the stack used for the source command. | |
| int | source_rc (const char *rcfile_path, struct Buffer *err) |
| Read an initialization file. | |
| enum CommandResult | set_dump (enum GetElemListFlags flags, struct Buffer *err) |
| Dump list of config variables into a file/pager. | |
Functions to parse commands in a config file.
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 commands.h.
| #define MUTT_NAMED (1 << 0) |
Definition at line 36 of file commands.h.
| enum CommandResult parse_rc_line_cwd | ( | const char * | line, |
| char * | cwd, | ||
| struct Buffer * | err ) |
Parse and run a muttrc line in a relative directory.
| line | Line to be parsed |
| cwd | File relative where to run the line |
| err | Where to write error messages |
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Definition at line 179 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:| char * mutt_get_sourced_cwd | ( | void | ) |
Get the current file path that is being parsed.
| ptr | File path that is being parsed or cwd at runtime |
Definition at line 202 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool mailbox_add_simple | ( | const char * | mailbox, |
| struct Buffer * | err ) |
Add a new Mailbox.
| true | Success |
Definition at line 796 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int parse_grouplist | ( | struct GroupList * | gl, |
| struct Buffer * | token, | ||
| struct Buffer * | line, | ||
| struct Buffer * | err, | ||
| struct HashTable * | groups ) |
Parse a group context.
| gl | GroupList to add to |
| token | Temporary Buffer space |
| line | Buffer containing string to be parsed |
| err | Buffer for error messages |
| groups | Groups HashTable |
| 0 | Success |
| -1 | Error |
Definition at line 145 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void source_stack_cleanup | ( | void | ) |
Free memory from the stack used for the source command.
Definition at line 1936 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int source_rc | ( | const char * | rcfile_path, |
| struct Buffer * | err ) |
Read an initialization file.
| rcfile_path | Path to initialization file |
| err | Buffer for error messages |
| <0 | NeoMutt should pause to let the user know |
Definition at line 223 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:| enum CommandResult set_dump | ( | enum GetElemListFlags | flags, |
| struct Buffer * | err ) |
Dump list of config variables into a file/pager.
| flags | Which config to dump, e.g. GEL_CHANGED_CONFIG |
| err | Buffer for error message |
FIXME: Move me into parse/set.c. Note: this function currently depends on pager, which is the reason it is not included in the parse library.
Definition at line 968 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function: