X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mx.c;h=b596bcaebd5a6950c0aba908cf1827e366e85189;hp=53488216fa942171cd5bbfa436002bacbd09a7fb;hb=3c3c535e5ed1d651c6024b5acf670e217af473f7;hpb=238b70e39b78f585c586bd51aef41988b3cc73d1 diff --git a/mx.c b/mx.c index 5348821..b596bca 100644 --- a/mx.c +++ b/mx.c @@ -18,12 +18,13 @@ #include #include +#include + #include "mutt.h" #include "buffy.h" #include "mx.h" #include "mbox.h" #include "mh.h" -#include "rfc2047.h" #include "sort.h" #include "thread.h" #include "copy.h" @@ -82,8 +83,6 @@ static list2_t* MailboxFormats = NULL; * retry - should retry if unable to lock? */ -#ifdef DL_STANDALONE - static int invoke_dotlock (const char *path, int dummy, int flags, int retry) { char cmd[LONG_STRING + _POSIX_PATH_MAX]; @@ -108,12 +107,6 @@ static int invoke_dotlock (const char *path, int dummy, int flags, int retry) return mutt_system (cmd); } -#else - -#define invoke_dotlock dotlock_invoke - -#endif - static int dotlock_file (const char *path, int fd, int retry) { int r; @@ -1122,7 +1115,7 @@ int mx_sync_mailbox (CONTEXT* ctx, int* index_hint) { MESSAGE *mx_open_new_message (CONTEXT * dest, HEADER * hdr, int flags) { MESSAGE *msg; - ADDRESS *p = NULL; + address_t *p = NULL; if (!MX_IDX(dest->magic-1)) { debug_print (1, ("function unimplemented for mailbox type %d.\n", dest->magic));