X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=hook.c;h=27f0afa6526f1957132a0c54831f1b51e36ea4b0;hp=4eb6e01efe4f5652a7e540593622649a433d2b06;hb=d04295aaf918032c1c2fafc94ddf637cf23341e9;hpb=4670d23c56f21afaa7ef2e0289a47a6a0d112671 diff --git a/hook.c b/hook.c index 4eb6e01..27f0afa 100644 --- a/hook.c +++ b/hook.c @@ -11,29 +11,28 @@ # include "config.h" #endif +#include +#include +#include +#include +#include + #include #include #include #include #include +#include #include "mutt.h" #include "mx.h" -#include "mutt_crypt.h" +#include #include "compress.h" -#include "lib/rx.h" - -#include -#include -#include -#include -#include - #define ERROR_STOP 0 typedef struct hook { - unsigned long type; /* hook type */ + int type; /* hook type */ rx_t rx; /* regular expression */ char *command; /* filename, command or pattern to execute */ pattern_t *pattern; /* used for fcc,save,send-hook */ @@ -301,7 +300,7 @@ void mutt_folder_hook (char *path) current_hook_type = 0; } -char *mutt_find_hook (unsigned long type, const char *pat) +char *mutt_find_hook (int type, const char *pat) { HOOK *tmp = Hooks; @@ -313,7 +312,7 @@ char *mutt_find_hook (unsigned long type, const char *pat) return (NULL); } -void mutt_message_hook (CONTEXT * ctx, HEADER * hdr, unsigned long type) +void mutt_message_hook (CONTEXT * ctx, HEADER * hdr, int type) { BUFFER err, token; HOOK *hook;