* chop messages.c into handy pieces
[citadel.git] / webcit / webcit.h
index 033262460a4d8471d74271ff02be5e438075f92a..4509ecb1ffa3a26fe3b116afcfbe11249d42a56a 100644 (file)
@@ -414,6 +414,7 @@ struct wc_mime_attachment {
        long msgnum;            /**< the message number on the citadel server derived from message_summary */
        RenderMimeFunc Renderer;
 };
+void DestroyMime(void *vMime);
 
 
 /*
@@ -455,6 +456,7 @@ typedef struct _message_summary {
        wc_mime_attachment *cal_partnum_ref;
        wc_mime_attachment *vcard_partnum_ref;
 } message_summary;
+void DestroyMessageSummary(void *vMsg);
 
 typedef void (*ExamineMsgHeaderFunc)(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset);
 
@@ -489,6 +491,35 @@ typedef struct _disp_cal {
 } disp_cal;                                            
 
 
+
+/*
+ * Address book entry (keep it short and sweet, it's just a quickie lookup
+ * which we can use to get to the real meat and bones later)
+ */
+typedef struct _addrbookent {
+       char ab_name[64]; /**< name string */
+       long ab_msgnum;   /**< message number of address book entry */
+} addrbookent;
+
+
+typedef struct _headereval {
+       ExamineMsgHeaderFunc evaluator;
+       int Type;
+} headereval;
+
+
+struct attach_link {
+       char partnum[32];
+       char html[1024];
+};
+
+
+enum {
+       eUp,
+       eDown,
+       eNone
+};
+
 /*
  * One of these is kept for each active Citadel session.
  * HTTP transactions are bound to one at a time.
@@ -750,6 +781,8 @@ void embed_main_menu(void);
 void serv_read(char *buf, int bytes);
 void readloop(char *oper);
 void read_message(long msgnum, int printable_view, char *section);
+void do_addrbook_view(addrbookent *addrbook, int num_ab);
+void display_vcard(StrBuf *Target, const char *vcard_source, char alpha, int full, char *storename, long msgnum);
 void text_to_server(char *ptr);
 void text_to_server_qp(char *ptr);
 void confirm_delete_msg(void);