Parse user-defined Hooks. More...
#include "config.h"#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include "mutt/lib.h"#include "config/lib.h"#include "core/lib.h"#include "commands/lib.h"#include "compmbox/lib.h"#include "expando/lib.h"#include "index/lib.h"#include "parse/lib.h"#include "pattern/lib.h"#include "globals.h"#include "hook.h"#include "module_data.h"#include "muttlib.h"
Include dependency graph for parse.c:Go to the source code of this file.
Functions | |
| enum CommandResult | parse_charset_hook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse charset Hook commands - Implements Command::parse() -. | |
| enum CommandResult | parse_global_hook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse global Hook commands - Implements Command::parse() -. | |
| enum CommandResult | parse_pattern_hook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse pattern-based Hook commands - Implements Command::parse() -. | |
| enum CommandResult | add_mailbox_hook (enum CommandId id, struct Buffer *mailbox, struct Buffer *pattern, bool pat_not, struct Buffer *err) |
| Add a Mailbox Hook. | |
| enum CommandResult | parse_mailbox_hook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse mailbox pattern hook commands - Implements Command::parse() -. | |
| enum CommandResult | parse_regex_hook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse regex-based hook command - Implements Command::parse() -. | |
| enum CommandResult | parse_folder_hook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse folder hook command - Implements Command::parse() -. | |
| enum CommandResult | parse_crypt_hook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse crypt hook commands - Implements Command::parse() -. | |
| enum CommandResult | parse_mbox_hook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse mbox hook command - Implements Command::parse() -. | |
| enum CommandResult | parse_compress_hook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse compress hook commands - Implements Command::parse() -. | |
| void | mutt_delete_hooks (struct HookList *hooks, enum CommandId id) |
| Delete matching hooks. | |
| static void | idxfmt_hashelem_free (int type, void *obj, intptr_t data) |
| Free our hash table data - Implements hash_hdata_free_t -. | |
| void | delete_idxfmt_hooks (struct HashTable **idx_fmt_hooks) |
| Delete all the index-format-hooks. | |
| enum CommandResult | parse_index_hook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the index format hook command - Implements Command::parse() -. | |
| enum CommandResult | parse_unhook (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the unhook command - Implements Command::parse() -. | |
Variables | |
| const struct ExpandoDefinition | IndexFormatDef [] |
| Expando definitions. | |
Parse user-defined Hooks.
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 parse.c.
| enum CommandResult add_mailbox_hook | ( | enum CommandId | id, |
| struct Buffer * | mailbox, | ||
| struct Buffer * | pattern, | ||
| bool | pat_not, | ||
| struct Buffer * | err ) |
| id | CommandId, e.g. CMD_FCC_SAVE_HOOK |
| mailbox | Mailbox |
| pattern | Pattern to match |
| pat_not | true of Pattern is inverted |
| err | Buffer for error message |
| enum | CommandResult, e.g. MUTT_CMD_SUCCESS |
Definition at line 287 of file parse.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_delete_hooks | ( | struct HookList * | hooks, |
| enum CommandId | id ) |
Delete matching hooks.
| hooks | Hook list to modify |
| id | Hook CommandId to delete, e.g. CMD_SEND_HOOK |
If CMD_NONE is passed, all the hooks will be deleted.
Definition at line 1020 of file parse.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void delete_idxfmt_hooks | ( | struct HashTable ** | idx_fmt_hooks | ) |
Delete all the index-format-hooks.
| idx_fmt_hooks | Pointer to the hash table to free |
Definition at line 1057 of file parse.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
extern |
Expando definitions.
Config:
Definition at line 312 of file mutt_config.c.