Door Games Unlimited

Welcome, Guest.


Subject: thread_id in message header Date: Sat Oct 11 2014 17:01:40
From: echicken To: Nightfox

  Re: thread_id in message header
  By: Nightfox to Digital Man on Sat Oct 11 2014 12:12:18

 Ni> If I print the properties of a message header, one of the properties is
 Ni> thread_id.  I'm guessing all messages in a sub-board that belong to a
 Ni> particular thread will have the same thread ID, is that correct?  Also, in

This is correct as far as I know.

thread_id is also the number of the original message in the thread.  (The
original message may or may not still exist.)  If the message predates the
addition of this property, then the value will be 0.

 Ni> what version of Synchronet was thread_id introduced?  I don't see it on

It was introduced after 3.15b, in March 2012 according to the commit log.  So
if you want your code to run on pre-3.16 systems, check that (typeof
header.thread_id == "number") before attempting to make use of that value.

---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
 ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com

Previous Message       Next Message
In Reply To: thread_id in message header (Nightfox)