projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
32ba61a
)
If we find '/' in message IDs, only use the following characters to calculate the...
author
Wilfried Goesgens
<willi@arangodb.com>
Sun, 3 Jan 2016 16:08:41 +0000
(17:08 +0100)
committer
Wilfried Goesgens
<willi@arangodb.com>
Sun, 3 Jan 2016 16:08:41 +0000
(17:08 +0100)
webcit/msg_renderers.c
patch
|
blob
|
history
diff --git
a/webcit/msg_renderers.c
b/webcit/msg_renderers.c
index d65d0d13bdd972a24268cd61c41c1b463adad73b..9b1c7eec90e0258325134f9d4773486f25f038d9 100644
(file)
--- a/
webcit/msg_renderers.c
+++ b/
webcit/msg_renderers.c
@@
-377,11
+377,17
@@
int Conditional_MAIL_SUMM_SUBJECT(StrBuf *Target, WCTemplputParams *TP)
void examine_msgn(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset)
{
wcsession *WCC = WC;
void examine_msgn(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset)
{
wcsession *WCC = WC;
+ long Offset = 0;
+ const char *pOffset;
CheckConvertBufs(WCC);
FreeStrBuf(&Msg->reply_inreplyto);
Msg->reply_inreplyto = NewStrBufPlain(NULL, StrLength(HdrLine));
CheckConvertBufs(WCC);
FreeStrBuf(&Msg->reply_inreplyto);
Msg->reply_inreplyto = NewStrBufPlain(NULL, StrLength(HdrLine));
- Msg->reply_inreplyto_hash = ThreadIdHash(HdrLine);
+ pOffset = strchr(ChrPtr(HdrLine), '/');
+ if (pOffset != NULL) {
+ Offset = pOffset - ChrPtr(HdrLine);
+ }
+ Msg->reply_inreplyto_hash = ThreadIdHashOffset(HdrLine, Offset);
StrBuf_RFC822_2_Utf8(Msg->reply_inreplyto,
HdrLine,
WCC->DefaultCharset,
StrBuf_RFC822_2_Utf8(Msg->reply_inreplyto,
HdrLine,
WCC->DefaultCharset,
@@
-404,11
+410,17
@@
int Conditional_MAIL_SUMM_UNREAD(StrBuf *Target, WCTemplputParams *TP)
void examine_wefw(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset)
{
wcsession *WCC = WC;
void examine_wefw(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset)
{
wcsession *WCC = WC;
+ long Offset = 0;
+ const char *pOffset;
CheckConvertBufs(WCC);
FreeStrBuf(&Msg->reply_references);
Msg->reply_references = NewStrBufPlain(NULL, StrLength(HdrLine));
CheckConvertBufs(WCC);
FreeStrBuf(&Msg->reply_references);
Msg->reply_references = NewStrBufPlain(NULL, StrLength(HdrLine));
- Msg->reply_references_hash = ThreadIdHash(HdrLine);
+ pOffset = strchr(ChrPtr(HdrLine), '/');
+ if (pOffset != NULL) {
+ Offset = pOffset - ChrPtr(HdrLine);
+ }
+ Msg->reply_references_hash = ThreadIdHashOffset(HdrLine, Offset);
StrBuf_RFC822_2_Utf8(Msg->reply_references,
HdrLine,
WCC->DefaultCharset,
StrBuf_RFC822_2_Utf8(Msg->reply_references,
HdrLine,
WCC->DefaultCharset,