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 "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 (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 -. | |
| static void | delete_idxfmt_hooks (void) |
| 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. | |
| struct HookList | Hooks = TAILQ_HEAD_INITIALIZER(Hooks) |
| All simple hooks, e.g. CMD_FOLDER_HOOK. | |
| struct HashTable * | IdxFmtHooks = NULL |
| All Index Format hooks. | |
| enum CommandId | CurrentHookId = CMD_NONE |
| The ID of the Hook currently being executed, e.g. CMD_SAVE_HOOK. | |
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 293 of file parse.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_delete_hooks | ( | enum CommandId | id | ) |
Delete matching hooks.
| id | Hook CommandId to delete, e.g. CMD_SEND_HOOK |
If CMD_NONE is passed, all the hooks will be deleted.
Definition at line 1014 of file parse.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
extern |
Expando definitions.
Config:
Definition at line 293 of file mutt_config.c.
| struct HookList Hooks = TAILQ_HEAD_INITIALIZER(Hooks) |