Move the thread matching from the blog to a more generic place.
[citadel.git] / webcit / messages.h
index 050117b0e2dd7df7a136eab2ff68045188d67537..eb014f43852f55452d9afab34c491feccb266abf 100644 (file)
@@ -1,3 +1,15 @@
+/*
+ * Copyright (c) 1996-2013 by the citadel.org team
+ *
+ * This program is open source software.  You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License, version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
 extern CtxType CTX_MAILSUM;
 extern CtxType CTX_MIME_ATACH;
 extern HashList *MsgHeaderHandler;
@@ -40,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;
@@ -143,6 +157,7 @@ typedef struct _SharedMessageStatus {
 
        long startmsg;         /* which is the start message? */
        long nummsgs;          /* How many messages are available to your view? */
+       long numNewmsgs;       /* if you load the seen-status, this is the count of them. */
        long num_displayed;    /* counted up for LoadMsgFromServer */ /* TODO: unclear who should access this and why */
 
        long lowest_found;     /* smallest Message ID found;  */
@@ -269,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);