* Replication fixes
[citadel.git] / citadel / msgbase.h
1 /* $Id$ */
2
3 #define aide_message(text)      quickie_message("Citadel",NULL,AIDEROOM,text)
4
5 #define MSGS_ALL        0
6 #define MSGS_OLD        1
7 #define MSGS_NEW        2
8 #define MSGS_FIRST      3
9 #define MSGS_LAST       4
10 #define MSGS_GT         5
11
12
13 struct ma_info {
14         char prefix[256];       /* Prefix for a multipart/alternative */
15         int is_ma;              /* Set to 1 if we are using this stuff */
16         int did_print;          /* One alternative has been displayed */
17 };
18
19
20 struct repl {                   /* Info for replication checking */
21         char extended_id[256];
22         time_t highest;
23 };
24
25
26 int alias (char *name);
27 void get_mm (void);
28 void cmd_msgs (char *cmdbuf);
29 void help_subst (char *strbuf, char *source, char *dest);
30 void do_help_subst (char *buffer);
31 void memfmout (int width, char *mptr, char subst);
32 void output_mime_parts(char *);
33 void output_message (char *, int, int);
34 void cmd_msg0 (char *cmdbuf);
35 void cmd_msg2 (char *cmdbuf);
36 void cmd_msg3 (char *cmdbuf);
37 void cmd_msg4 (char *cmdbuf);
38 void cmd_opna (char *cmdbuf);
39 long send_message (struct CtdlMessage *, int, FILE *);
40 void loadtroom (void);
41 void CtdlSaveMsg(struct CtdlMessage *, char *, char *, int, int);
42 void quickie_message (char *, char *, char *, char *);
43 struct CtdlMessage *make_message (struct usersupp *, char *,
44                    char *, int, int, int, char *);
45 void cmd_ent0 (char *entargs);
46 void cmd_ent3 (char *entargs);
47 void cmd_dele (char *delstr);
48 void cmd_move (char *args);
49 void GetSuppMsgInfo(struct SuppMsgInfo *, long);
50 void PutSuppMsgInfo(struct SuppMsgInfo *);
51 void AdjRefCount(long, int);
52 void simple_listing(long);
53 int CtdlMsgCmp(struct CtdlMessage *msg, struct CtdlMessage *template);
54 void CtdlForEachMessage(int mode, long ref,
55                         char *content_type,
56                         struct CtdlMessage *compare,
57                         void (*CallBack) (long msgnum) );
58 int CtdlDeleteMessages(char *, long, char *);
59 void CtdlWriteObject(char *, char *, char *, struct usersupp *,
60                         int, int, unsigned int);
61 struct CtdlMessage *CtdlFetchMessage(long msgnum);
62 void CtdlFreeMessage(struct CtdlMessage *msg);
63 void serialize_message(struct ser_ret *, struct CtdlMessage *);
64 int is_valid_message(struct CtdlMessage *);