X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mx.h;h=cf032d48aaee1f47c6fd7653552c4da9018232c8;hp=57de519b5b91a62ec51006eaa9facca2950a9b81;hb=ce220f6dc8789ed75468c63adce953fbdfed11a8;hpb=9a1805afc94b21d8766e6e67ef57f92aaf966e84 diff --git a/mx.h b/mx.h index 57de519..cf032d4 100644 --- a/mx.h +++ b/mx.h @@ -65,6 +65,19 @@ enum { break; \ } +typedef struct { + FILE *fp; /* pointer to the message data */ + char *path; /* path to temp file */ + short magic; /* type of mailbox this message belongs to */ + short write; /* nonzero if message is open for writing */ + struct { + unsigned read:1; + unsigned flagged:1; + unsigned replied:1; + } flags; + time_t received; /* the time at which this message was received */ +} MESSAGE; + typedef struct { /* folder magic */ int type; @@ -78,6 +91,8 @@ typedef struct { int (*mx_access) (const char*, int); /* read mailbox into ctx structure */ int (*mx_open_mailbox) (CONTEXT*); + /* open new message */ + int (*mx_open_new_message) (MESSAGE*, CONTEXT*, HEADER*); /* check ACL flags; if not implemented, always assume granted * permissions */ int (*mx_acl_check) (CONTEXT*, int); @@ -113,19 +128,6 @@ enum { M_FLAGS /* nondestructive flags change (IMAP) */ }; -typedef struct { - FILE *fp; /* pointer to the message data */ - char *path; /* path to temp file */ - short magic; /* type of mailbox this message belongs to */ - short write; /* nonzero if message is open for writing */ - struct { - unsigned read:1; - unsigned flagged:1; - unsigned replied:1; - } flags; - time_t received; /* the time at which this message was received */ -} MESSAGE; - WHERE short DefaultMagic INITVAL (M_MBOX); /*