X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mx.c;h=b596bcaebd5a6950c0aba908cf1827e366e85189;hp=b25d84155bbb792b0efda925828fac17d637c9aa;hb=3c3c535e5ed1d651c6024b5acf670e217af473f7;hpb=2ea77d3b2827ba23feb756ce2fb936565ae38998 diff --git a/mx.c b/mx.c index b25d841..b596bca 100644 --- a/mx.c +++ b/mx.c @@ -16,13 +16,15 @@ #include #include #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" @@ -81,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]; @@ -107,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; @@ -744,10 +738,10 @@ static int _mx_close_mailbox (CONTEXT * ctx, int *index_hint) if ((p = mutt_find_hook (M_MBOXHOOK, ctx->path))) { isSpool = 1; - strfcpy (mbox, p, sizeof (mbox)); + m_strcpy(mbox, sizeof(mbox), p); } else { - strfcpy (mbox, NONULL (Inbox), sizeof (mbox)); + m_strcpy(mbox, sizeof(mbox), NONULL(Inbox)); isSpool = mutt_is_spool (ctx->path) && !mutt_is_spool (mbox); } mutt_expand_path (mbox, sizeof (mbox)); @@ -1008,8 +1002,7 @@ static int _mx_sync_mailbox (CONTEXT * ctx, int *index_hint) km_find_func (MENU_MAIN, OP_TOGGLE_WRITE))) snprintf (tmp, sizeof (tmp), _(" Press '%s' to toggle write"), buf); else - strfcpy (tmp, _("Use 'toggle-write' to re-enable write!"), - sizeof (tmp)); + m_strcpy(tmp, sizeof(tmp), _("Use 'toggle-write' to re-enable write!")); mutt_error (_("Mailbox is marked unwritable. %s"), tmp); return -1; @@ -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));