X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fmessages.h;fp=webcit%2Fmessages.h;h=eb014f43852f55452d9afab34c491feccb266abf;hb=aeade41982c6c9a3e745a3b3c8262a3ec6952670;hp=3c0145b9a42213c8fdda6fd029c5e23d82c2103c;hpb=e50541a93234d675ea8e0055326f335daa1ced76;p=citadel.git diff --git a/webcit/messages.h b/webcit/messages.h index 3c0145b9a..eb014f438 100644 --- a/webcit/messages.h +++ b/webcit/messages.h @@ -52,7 +52,9 @@ typedef struct _message_summary { StrBuf *to; /* the recipient */ StrBuf *subj; /* the title / subject */ StrBuf *reply_inreplyto; + long reply_inreplyto_hash; StrBuf *reply_references; + long reply_references_hash; StrBuf *ReplyTo; StrBuf *cccc; StrBuf *hnod; @@ -282,3 +284,12 @@ void RegisterMimeRenderer(const char *HeaderName, long HdrNLen, RenderMimeFunc MimeRenderer, int InlineRenderable, int Priority); + + +/** + * @brief fill the header parts of Msg with the headers loaded by MSG0 + * @param Msg empty message struct, only preinitialized with the msgid + * @param FoundCharset buffer with the prefered charset of the headers + * @param buf linebuffer used to buffer citserver replies + */ +int ReadOneMessageSummary(message_summary *Msg, StrBuf *FoundCharset, StrBuf *Buf);