projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop the horrible list2_t for good.
[apps/madmutt.git]
/
mx.h
diff --git
a/mx.h
b/mx.h
index
a537636
..
efc732b
100644
(file)
--- a/
mx.h
+++ b/
mx.h
@@
-17,30
+17,22
@@
#ifndef _MX_H
#define _MX_H
#ifndef _MX_H
#define _MX_H
-#include <sys/stat.h>
#include <utime.h>
#include <utime.h>
+#include "mutt.h"
-/*
- * supported mailbox formats
- * in mx_init() the registration order must be exactly as given here!!!1!
- */
+/* supported mailbox formats
+ XXX: has to be in the same order than mxfmts in mx.c */
enum {
enum {
- M_MBOX = 1,
- M_MMDF,
- M_MH,
- M_MAILDIR
-#ifdef USE_IMAP
- , M_IMAP
-#endif
-#ifdef USE_POP
- , M_POP
-#endif
+ M_MBOX = 1,
+ M_MMDF,
+ M_MH,
+ M_MAILDIR,
+ M_IMAP,
+ M_POP,
#ifdef USE_NNTP
#ifdef USE_NNTP
- , M_NNTP
-#endif
-#ifdef USE_COMPRESSED
- , M_COMPRESSED
+ M_NNTP,
#endif
#endif
+ M_COMPRESSED
};
enum {
};
enum {
@@
-78,7
+70,7
@@
typedef struct {
time_t received; /* the time at which this message was received */
} MESSAGE;
time_t received; /* the time at which this message was received */
} MESSAGE;
-typedef struct {
+typedef struct
mx_t
{
/* folder magic */
int type;
/* may we stat() it? */
/* folder magic */
int type;
/* may we stat() it? */
@@
-102,11
+94,10
@@
typedef struct {
void (*mx_fastclose_mailbox) (CONTEXT*);
/* write out changes */
int (*mx_sync_mailbox) (CONTEXT*, int, int*);
void (*mx_fastclose_mailbox) (CONTEXT*);
/* write out changes */
int (*mx_sync_mailbox) (CONTEXT*, int, int*);
+ /* commit a message to a folder */
+ int (*mx_commit_message) (MESSAGE*, CONTEXT*);
} mx_t;
} mx_t;
-/* called from main: init all folder types */
-void mx_init (void);
-
/* flags for mx_open_mailbox() */
#define M_NOSORT (1<<0) /* do not sort the mailbox after opening it */
#define M_APPEND (1<<1) /* open mailbox for appending messages */
/* flags for mx_open_mailbox() */
#define M_NOSORT (1<<0) /* do not sort the mailbox after opening it */
#define M_APPEND (1<<1) /* open mailbox for appending messages */
@@
-169,4
+160,7
@@
void mx_update_tables (CONTEXT *, int);
int mx_lock_file (const char *, int, int, int, int);
int mx_unlock_file (const char *path, int fd, int dot);
int mx_lock_file (const char *, int, int, int, int);
int mx_unlock_file (const char *path, int fd, int dot);
+int mx_rebuild_cache (void);
+void mutt_parse_mime_message (CONTEXT * ctx, HEADER *);
+
#endif /* !_MX_H */
#endif /* !_MX_H */