*/
#define SM_VERIFY_GOODNESS 1 /* Verify this is a real msg number */
#define SM_DO_REPL_CHECK 2 /* Perform replication checks */
+#define SM_DONT_BUMP_REF 3 /* Don't bump reference count
+ (use with extreme care!!!!!!) */
+
+
+/*
+ * Possible return codes from CtdlOutputMsg()
+ */
+enum {
+ om_ok,
+ om_not_logged_in,
+ om_no_such_msg,
+ om_mime_error
+};
+
struct ma_info {
void do_help_subst (char *buffer);
void memfmout (int width, char *mptr, char subst);
void output_mime_parts(char *);
-void output_message (char *, int, int);
void cmd_msg0 (char *cmdbuf);
void cmd_msg2 (char *cmdbuf);
void cmd_msg3 (char *cmdbuf);
char *CtdlReadMessageBody(char *terminator, size_t maxlen, char *exist);
char *CtdlGetSysConfig(char *sysconfname);
void CtdlPutSysConfig(char *sysconfname, char *sysconfdata);
+int CtdlOutputMsg(long msg_num, /* message number (local) to fetch */
+ int mode, /* how would you like that message? */
+ int headers_only, /* eschew the message body? */
+ int do_proto, /* do Citadel protocol responses? */
+ FILE *outfp,
+ int outsock,
+ int crlf);