2cf4c64778d92d2143b5efcb5b746c4dbd6bf2e7
[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
21
22 int alias (char *name);
23 void get_mm (void);
24 void cmd_msgs (char *cmdbuf);
25 void help_subst (char *strbuf, char *source, char *dest);
26 void do_help_subst (char *buffer);
27 void memfmout (int width, char *mptr, char subst);
28 void output_mime_parts(char *);
29 void output_message (char *, int, int);
30 void cmd_msg0 (char *cmdbuf);
31 void cmd_msg2 (char *cmdbuf);
32 void cmd_msg3 (char *cmdbuf);
33 void cmd_msg4 (char *cmdbuf);
34 void cmd_opna (char *cmdbuf);
35 long send_message (struct CtdlMessage *, int, FILE *);
36 void loadtroom (void);
37 void CtdlSaveMsg(struct CtdlMessage *, char *, char *, int, int);
38 void quickie_message (char *, char *, char *, char *);
39 struct CtdlMessage *make_message (struct usersupp *, char *,
40                    char *, int, int, int, char *);
41 void cmd_ent0 (char *entargs);
42 void cmd_ent3 (char *entargs);
43 void cmd_dele (char *delstr);
44 void cmd_move (char *args);
45 void GetSuppMsgInfo(struct SuppMsgInfo *, long);
46 void PutSuppMsgInfo(struct SuppMsgInfo *);
47 void AdjRefCount(long, int);
48 void simple_listing(long);
49 int CtdlMsgCmp(struct CtdlMessage *msg, struct CtdlMessage *template);
50 void CtdlForEachMessage(int mode, long ref,
51                         char *content_type,
52                         struct CtdlMessage *compare,
53                         void (*CallBack) (long msgnum) );
54 int CtdlDeleteMessages(char *, long, char *);
55 void CtdlWriteObject(char *, char *, char *, struct usersupp *,
56                         int, int, unsigned int);
57 struct CtdlMessage *CtdlFetchMessage(long msgnum);
58 void CtdlFreeMessage(struct CtdlMessage *msg);
59 void serialize_message(struct ser_ret *, struct CtdlMessage *);
60 int is_valid_message(struct CtdlMessage *);