Execute user-defined Hooks. More...
#include "core/lib.h"Go to the source code of this file.
Functions | |
| void | exec_account_hook (const char *url) |
| Perform an account hook. | |
| void | exec_folder_hook (const char *path, const char *desc) |
| Perform a folder hook. | |
| void | exec_message_hook (struct Mailbox *m, struct Email *e, enum CommandId id) |
| Perform a message hook. | |
| void | exec_startup_shutdown_hook (enum CommandId id) |
| Execute any startup/shutdown hooks. | |
| void | exec_timeout_hook (void) |
| Execute any timeout hooks. | |
| void | mutt_crypt_hook (struct ListHead *list, struct Address *addr) |
| Find crypto hooks for an Address. | |
| void | mutt_default_save (struct Buffer *path, struct Email *e) |
| Find the default save path for an email. | |
| void | mutt_delete_hooks (struct HookList *hooks, enum CommandId id) |
| Delete matching hooks. | |
| struct Hook * | mutt_find_hook (enum CommandId id, const char *pat) |
| Find a matching hook. | |
| const struct Expando * | mutt_idxfmt_hook (const char *name, struct Mailbox *m, struct Email *e) |
| Get index-format-hook format string. | |
| void | mutt_select_fcc (struct Buffer *path, struct Email *e) |
| Select the FCC path for an email. | |
Execute 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 exec.h.
| void exec_account_hook | ( | const char * | url | ) |
Perform an account hook.
| url | Account URL to match |
Definition at line 328 of file exec.c.
| void exec_folder_hook | ( | const char * | path, |
| const char * | desc ) |
Perform a folder hook.
| path | Path to potentially match |
| desc | Description to potentially match |
Definition at line 64 of file exec.c.
Perform a message hook.
| m | Mailbox |
| e | |
| id | Hook CommandId, e.g CMD_FOLDER_HOOK |
Definition at line 137 of file exec.c.
| void exec_startup_shutdown_hook | ( | enum CommandId | id | ) |
Execute any startup/shutdown hooks.
| id | Hook CommandId: CMD_STARTUP_HOOK or CMD_SHUTDOWN_HOOK |
The user can configure hooks to be run on startup/shutdown. This function finds all the matching hooks and executes them.
Definition at line 418 of file exec.c.
| void exec_timeout_hook | ( | void | ) |
Execute any timeout hooks.
The user can configure hooks to be run on timeout. This function finds all the matching hooks and executes them.
Definition at line 378 of file exec.c.
| void mutt_crypt_hook | ( | struct ListHead * | list, |
| struct Address * | addr ) |
Find crypto hooks for an Address.
| [out] | list | List of keys |
| [in] | addr | Address to match |
The crypt-hook associates keys with addresses.
Definition at line 319 of file exec.c.
Find the default save path for an email.
Definition at line 218 of file exec.c.
| 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 1032 of file parse.c.
Find a matching hook.
| id | Hook CommandId, e.g CMD_FOLDER_HOOK |
| pat | Pattern to match |
| ptr | Matching Hook |
Definition at line 115 of file exec.c.
Get index-format-hook format string.
| ptr | Expando |
| NULL | No matching hook |
Definition at line 452 of file exec.c.
Select the FCC path for an email.
Definition at line 256 of file exec.c.