X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mbox.c;h=59c71cf592c212e034e95eb2a0b086e01d198d78;hp=e973d3b631abbc8aebb4bbe6d6eec2026ce3c0c3;hb=ee1d4d931ca3ebec494694b74a1868a7a2e631e3;hpb=0f44dc85fc1280372ffab911d701e703d803fb4b diff --git a/mbox.c b/mbox.c index e973d3b..59c71cf 100644 --- a/mbox.c +++ b/mbox.c @@ -14,8 +14,8 @@ #endif #include "mutt.h" -#include "mailbox.h" #include "mx.h" +#include "mbox.h" #include "sort.h" #include "copy.h" @@ -45,6 +45,13 @@ struct m_update_t { long length; }; + +int mbox_open_new_message (MESSAGE * msg, CONTEXT * dest, HEADER * hdr) +{ + msg->fp = dest->fp; + return 0; +} + /* parameters: * ctx - context to lock * excl - exclusive lock? @@ -601,7 +608,7 @@ int mbox_check_mailbox (CONTEXT * ctx, int *index_hint) } if (modified) { - if (mutt_reopen_mailbox (ctx, index_hint) != -1) { + if (mbox_reopen_mailbox (ctx, index_hint) != -1) { if (unlock) { mbox_unlock_mailbox (ctx); mutt_unblock_signals (); @@ -972,7 +979,7 @@ int mbox_close_mailbox (CONTEXT * ctx) return 0; } -int mutt_reopen_mailbox (CONTEXT * ctx, int *index_hint) +int mbox_reopen_mailbox (CONTEXT * ctx, int *index_hint) { int (*cmp_headers) (const HEADER *, const HEADER *) = NULL; HEADER **old_hdrs; @@ -1035,7 +1042,7 @@ int mutt_reopen_mailbox (CONTEXT * ctx, int *index_hint) case M_MBOX: case M_MMDF: if (fseek (ctx->fp, 0, SEEK_SET) != 0) { - dprint (1, (debugfile, "mutt_reopen_mailbox: fseek() failed\n")); + dprint (1, (debugfile, "mbox_reopen_mailbox: fseek() failed\n")); rc = -1; } else {