int CompareSubstToToken(TemplateParam *ParamToCompare, TemplateParam *ParamToLookup);
int CompareSubstToStrBuf(StrBuf *Compare, TemplateParam *ParamToLookup);
+void StrBufAppendTemplate(StrBuf *Target,
+ int nArgs,
+ WCTemplateToken *Tokens,
+ void *Context, int ContextType,
+ StrBuf *Source, int FormatTypeIndex);
typedef struct wc_mime_attachment wc_mime_attachment;
typedef void (*RenderMimeFunc)(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundCharset);
struct wc_mime_attachment {
+ int level;
StrBuf *Name;
StrBuf *FileName;
StrBuf *PartNum;
StrBuf *Room;
StrBuf *Rfca;
StrBuf *OtherNode;
+ const StrBuf *PartNum;
HashList *Attachments; /**< list of Accachments */
HashList *Submessages;
/** The mime part of the message */
- wc_mime_attachment MsgBody;
-
-
- /** Referencces; don't neeed to be freed: */
- wc_mime_attachment *cal_partnum_ref;
- wc_mime_attachment *vcard_partnum_ref;
+ wc_mime_attachment *MsgBody;
} message_summary;
void DestroyMessageSummary(void *vMsg);
typedef void (*ExamineMsgHeaderFunc)(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset);
+void evaluate_mime_part(message_summary *Msg, wc_mime_attachment *Mime);
extern HashList *GlobalNS;
extern HashList *Iterators;
extern HashList *ZoneHash;
-extern HashList *Contitionals;
+extern HashList *Conditionals;
extern HashList *MsgHeaderHandler;
extern HashList *MimeRenderHandler;
void embed_main_menu(void);
void serv_read(char *buf, int bytes);
void readloop(char *oper);
-void read_message(StrBuf *Target, const char *tmpl, long tmpllen, long msgnum, int printable_view, const StrBuf *section);
+int read_message(StrBuf *Target, const char *tmpl, long tmpllen, long msgnum, int printable_view, const StrBuf *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);