projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
mbox.c
diff --git
a/mbox.c
b/mbox.c
index
e973d3b
..
59c71cf
100644
(file)
--- a/
mbox.c
+++ b/
mbox.c
@@
-14,8
+14,8
@@
#endif
#include "mutt.h"
#endif
#include "mutt.h"
-#include "mailbox.h"
#include "mx.h"
#include "mx.h"
+#include "mbox.h"
#include "sort.h"
#include "copy.h"
#include "sort.h"
#include "copy.h"
@@
-45,6
+45,13
@@
struct m_update_t {
long length;
};
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?
/* parameters:
* ctx - context to lock
* excl - exclusive lock?
@@
-601,7
+608,7
@@
int mbox_check_mailbox (CONTEXT * ctx, int *index_hint)
}
if (modified) {
}
if (modified) {
- if (m
utt
_reopen_mailbox (ctx, index_hint) != -1) {
+ if (m
box
_reopen_mailbox (ctx, index_hint) != -1) {
if (unlock) {
mbox_unlock_mailbox (ctx);
mutt_unblock_signals ();
if (unlock) {
mbox_unlock_mailbox (ctx);
mutt_unblock_signals ();
@@
-972,7
+979,7
@@
int mbox_close_mailbox (CONTEXT * ctx)
return 0;
}
return 0;
}
-int m
utt
_reopen_mailbox (CONTEXT * ctx, int *index_hint)
+int m
box
_reopen_mailbox (CONTEXT * ctx, int *index_hint)
{
int (*cmp_headers) (const HEADER *, const HEADER *) = NULL;
HEADER **old_hdrs;
{
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) {
case M_MBOX:
case M_MMDF:
if (fseek (ctx->fp, 0, SEEK_SET) != 0) {
- dprint (1, (debugfile, "m
utt
_reopen_mailbox: fseek() failed\n"));
+ dprint (1, (debugfile, "m
box
_reopen_mailbox: fseek() failed\n"));
rc = -1;
}
else {
rc = -1;
}
else {