X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fmessages.h;h=eb014f43852f55452d9afab34c491feccb266abf;hb=aeade41982c6c9a3e745a3b3c8262a3ec6952670;hp=0738e947e39ff3ba1e80f4641c792853a52c6a96;hpb=154ecc9117291889ed20b392e65725f883a2d962;p=citadel.git diff --git a/webcit/messages.h b/webcit/messages.h index 0738e947e..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; @@ -155,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; */ @@ -281,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);