conststrings.o copy.o curs_lib.o curs_main.o edit.o editmsg.o \
enriched.o enter.o filter.o flags.o from.o group.o handler.o \
hdrline.o help.o history.o hook.o init.o keymap.o \
- main.o mbox.o menu.o mh.o muttlib.o mutt_account.o mutt_attach.o mutt_body.o mutt_header.o \
+ main.o menu.o mh.o muttlib.o mutt_account.o mutt_attach.o mutt_body.o mutt_header.o \
mutt_logging.o mutt_signal.o mutt_socket.o mutt_thread.o mutt_window.o mx.o \
pager.o parse.o pattern.o \
postpone.o progress.o query.o recvattach.o recvcmd.o resize.o rfc1524.o \
MUTTLIBS+= $(LIBNNTP)
ALLOBJS+= $(LIBNNTPOBJS)
+###############################################################################
+# libmbox
+LIBMBOX= libmbox.a
+LIBMBOXOBJS= mbox/mbox.o
+CLEANFILES+= $(LIBMBOX) $(LIBMBOXOBJS)
+MUTTLIBS+= $(LIBMBOX)
+ALLOBJS+= $(LIBMBOXOBJS)
+
###############################################################################
# libmutt
LIBMUTT= libmutt.a
$(PWD)/nntp:
$(MKDIR_P) $(PWD)/nntp
+# libmbox
+$(LIBMBOX): $(PWD)/mbox $(LIBMBOXOBJS)
+ $(AR) cr $@ $(LIBMBOXOBJS)
+ $(RANLIB) $@
+$(PWD)/mbox:
+ $(MKDIR_P) $(PWD)/mbox
+
# libncrypt
$(LIBNCRYPT): $(PWD)/ncrypt $(LIBNCRYPTOBJS)
$(AR) cr $@ $(LIBNCRYPTOBJS)
--- /dev/null
+/**
+ * @file
+ * Mbox local mailbox type
+ *
+ * @authors
+ * Copyright (C) 1996-2002,2010,2013 Michael R. Elkins <me@mutt.org>
+ *
+ * @copyright
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 2 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _MBOX_MBOX_H
+#define _MBOX_MBOX_H
+
+struct Context;
+struct stat;
+
+extern struct MxOps mx_mbox_ops;
+extern struct MxOps mx_mmdf_ops;
+
+void mbox_reset_atime(struct Context *ctx, struct stat *st);
+
+#endif /* _MBOX_MBOX_H */
#include "globals.h"
#include "keymap.h"
#include "mailbox.h"
+#include "mbox/mbox.h"
#include "mutt_header.h"
#include "mutt_thread.h"
#include "ncrypt/ncrypt.h"
struct MxOps *mx_get_ops(int magic);
extern struct MxOps mx_maildir_ops;
-extern struct MxOps mx_mbox_ops;
extern struct MxOps mx_mh_ops;
-extern struct MxOps mx_mmdf_ops;
/* This variable is backing for a config item */
WHERE short MboxType;
init.c
keymap.c
main.c
-mbox.c
+mbox/mbox.c
menu.c
mh.c
mutt/base64.c