Functions to parse commands in a config file. More...
#include "config.h"#include <stdbool.h>#include <stdint.h>#include "config/lib.h"#include "core/lib.h"
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_mailboxes (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'mailboxes' command - Implements Command::parse() -. | |
| enum CommandResult | parse_my_hdr (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'my_hdr' command - Implements Command::parse() -. | |
| enum CommandResult | parse_subjectrx_list (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'subjectrx' command - Implements Command::parse() -. | |
| enum CommandResult | parse_subscribe_to (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'subscribe-to' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unalternates (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'unalternates' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unmailboxes (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'unmailboxes' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unsubjectrx_list (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'unsubjectrx' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unsubscribe_from (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'unsubscribe-from' 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) |
| 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 178 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 198 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 741 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 * | buf, | ||
| struct Buffer * | s, | ||
| struct Buffer * | err ) |
Parse a group context.
| gl | GroupList to add to |
| buf | Temporary Buffer space |
| s | Buffer containing string to be parsed |
| err | Buffer for error messages |
| 0 | Success |
| -1 | Error |
Definition at line 144 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 1671 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 219 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 888 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function: