X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=hook.c;h=b77be185aedf22b933cdbb31959a89dd660c7d1d;hp=e88633ec43458549fddc3244b97a5f710ba001bf;hb=e39e529e5df06cd4148de4614073b66a23be0b26;hpb=c3e57678c8be193fc137854020f3a90887be97c9 diff --git a/hook.c b/hook.c index e88633e..b77be18 100644 --- a/hook.c +++ b/hook.c @@ -12,13 +12,18 @@ #endif #include "mutt.h" -#include "mailbox.h" +#include "mx.h" #include "mutt_crypt.h" #ifdef USE_COMPRESSED #include "compress.h" #endif +#include "lib/mem.h" +#include "lib/intl.h" +#include "lib/str.h" +#include "lib/rx.h" + #include #include #include @@ -27,7 +32,7 @@ typedef struct hook { int type; /* hook type */ - REGEXP rx; /* regular expression */ + rx_t rx; /* regular expression */ char *command; /* filename, command or pattern to execute */ pattern_t *pattern; /* used for fcc,save,send-hook */ struct hook *next;