.TBB message format

2003-07-05 Thread Alexey N. Vinogradov
Hello, tbdev.

... Working on BayesIt! I met the question about internal structure of
TBB files. I work with the files using description extracted from an
open-source application which also uses TBB. I found these headers in
the application:

// TBB file header
struct tmbasehead {
long Signature, SizeOfHeader;
};

// message header (inside TBB)
struct tletterhead {
long Signature, SizeOfHeader, Unk2, TimeReceived, ID, Flags,
 Encoding, ColorGrp, Priority, MsgSize, Reserved1, Reserved2;
};

(all messages is one-by-one, from offet(tmbasehead.SizeOfHeader) and
offset+=tletterhead.MsgSize+sizeof(tletterhead) for every next
message)

The question is: how is it possible to know total # of letters in
a TBB file? I mean if the short way exist (not passing all letters).

Also I never tried to investigate all letter's header's fields, but
some of them, I think, can be interested also. First of all, what
about TimeReceived? How to interpret this number (I mean, how to
extract the parts from it, or, at least, how to convert it to the
standard FILETIME or SYSTEMTIME structure?) Also, which field signs
that the letter is deleted? I suggest that it can be a bit in Flags,
but what precisely?

-- 
Sincerely,
 Alexey.
Using TB 1.63b11 on WinSrv2003 Enterprize (v5.2 b3790), spelling by ORFO2002 (CSAPI)
  mailto:[EMAIL PROTECTED]



http://www.silverstones.com/thebat/TBUDLInfo.html


Re: .TBB message format

2003-07-05 Thread NetVicious
Hello Alexey,

If  you haves a lot of messages, when you opens The Bat! you could see
how  the  number  of  messages  it's  going  up, so I think this total
doesn't exists.

sábado, 5 jul 2003 at 14:20, you wrote:

 The question is: how is it possible to know total # of letters in
 a TBB file? I mean if the short way exist (not passing all letters).


---
   
  /\/
 /  \  / \  /
/\/ e t   \/ i c i o u s
   
   [EMAIL PROTECTED]



http://www.silverstones.com/thebat/TBUDLInfo.html