projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
begin to rework mailcap parsing a "bit".
[apps/madmutt.git]
/
hook.c
diff --git
a/hook.c
b/hook.c
index
27f0afa
..
aaf1c7c
100644
(file)
--- a/
hook.c
+++ b/
hook.c
@@
-25,6
+25,7
@@
#include <lib-lib/rx.h>
#include "mutt.h"
#include <lib-lib/rx.h>
#include "mutt.h"
+#include "alias.h"
#include "mx.h"
#include <lib-crypt/crypt.h>
#include "compress.h"
#include "mx.h"
#include <lib-crypt/crypt.h>
#include "compress.h"
@@
-43,8
+44,8
@@
static HOOK *Hooks = NULL;
static unsigned long current_hook_type = 0;
static unsigned long current_hook_type = 0;
-int mutt_parse_hook (BUFFER * buf __attribute__ ((unused)), BUFFER * s,
unsigned long data,
- BUFFER * err)
+int mutt_parse_hook (BUFFER * buf __attribute__ ((unused)), BUFFER * s,
+
unsigned long data,
BUFFER * err)
{
HOOK *ptr;
BUFFER command, pattern;
{
HOOK *ptr;
BUFFER command, pattern;
@@
-210,7
+211,7
@@
static void delete_hook (HOOK * h)
}
/* Deletes all hooks of type ``type'', or all defined hooks if ``type'' is 0 */
}
/* Deletes all hooks of type ``type'', or all defined hooks if ``type'' is 0 */
-static void delete_hooks (
unsigned
long type)
+static void delete_hooks (long type)
{
HOOK *h;
HOOK *prev;
{
HOOK *h;
HOOK *prev;
@@
-344,7
+345,7
@@
void mutt_message_hook (CONTEXT * ctx, HEADER * hdr, int type)
}
static int
}
static int
-mutt_addr_hook (char *path, size_t pathlen, unsigned long type, CONTEXT * ctx,
+mutt_addr_hook (char *path, s
s
ize_t pathlen, unsigned long type, CONTEXT * ctx,
HEADER * hdr)
{
HOOK *hook;
HEADER * hdr)
{
HOOK *hook;
@@
-364,7
+365,7
@@
mutt_addr_hook (char *path, size_t pathlen, unsigned long type, CONTEXT * ctx,
return -1;
}
return -1;
}
-void mutt_default_save (char *path, size_t pathlen, HEADER * hdr)
+void mutt_default_save (char *path, s
s
ize_t pathlen, HEADER * hdr)
{
*path = 0;
if (mutt_addr_hook (path, pathlen, M_SAVEHOOK, Context, hdr) != 0) {
{
*path = 0;
if (mutt_addr_hook (path, pathlen, M_SAVEHOOK, Context, hdr) != 0) {
@@
-390,7
+391,7
@@
void mutt_default_save (char *path, size_t pathlen, HEADER * hdr)
}
}
}
}
-void mutt_select_fcc (char *path, size_t pathlen, HEADER * hdr)
+void mutt_select_fcc (char *path, s
s
ize_t pathlen, HEADER * hdr)
{
address_t *adr;
char buf[_POSIX_PATH_MAX];
{
address_t *adr;
char buf[_POSIX_PATH_MAX];