Humbedooh commented on issue #497: In single-thread view, nesting is at most two
URL: 
https://github.com/apache/incubator-ponymail/issues/497#issuecomment-511350012
 
 
   pesudo-fix for thread.lua:
   
   ~~~ lua
           local direct_ref = true -- direct reference or not?
           local xemid = pdoc['message-id'] -- exact email id or parent
           if doc.references and #doc.references >= #xemid and 
doc.references:sub(-#xemid) ~= xemid and doc['in-reply-to'] ~= xemid then -- if 
it has "references" but doesn't match exactly, disregard
               direct_ref = false
           end
   ~~~
   
   Then in the iteration, we'd check if `direct_ref` is true or false, and only 
add/account for if true.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to