Move the thread matching from the blog to a more generic place.
[citadel.git] / webcit / messages.h
index 3c0145b9a42213c8fdda6fd029c5e23d82c2103c..eb014f43852f55452d9afab34c491feccb266abf 100644 (file)
@@ -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);