X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fwebcit.h;h=4509ecb1ffa3a26fe3b116afcfbe11249d42a56a;hp=033262460a4d8471d74271ff02be5e438075f92a;hb=a84bd57799e65e1002d98691ccad4a0b184797ef;hpb=0952ab98d73959ad9897b427773fd80a385f151b diff --git a/webcit/webcit.h b/webcit/webcit.h index 033262460..4509ecb1f 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -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);