benilla-re systems structs docs

s_mailRecordArray

global · ui

Address
0xb6ef4c · 16 bytes, up to 0xb6ef5b
Type
uint32_t[4]
Meaning
Holds the growable array of mail record pointers: allocated size, length, data and growth step
Confidence
verified, proof one
Finding
ui/mail#the-list-packet

Finding: The list packet in ui: the mailbox and the inbox

SMSG_MAIL_LIST_RESULT (0x23b, 0x4ad1b0) carries a u8 mail count and that many mails. The array of mail records grows to the count (never shrinks) and each record is 0x260 bytes. The reader is the stream reader of 0x418cb0 to 0x4191b0; the table gives the wire order with the record offset each field lands in.

offsetwire field
+0x00mail id u32
+0x04type u8: 0 player, 2 auction, 3 creature, 4 game object
+0x08 or +0x10type 0: sender GUID u64 at +8 and 0 at +0x10; types 1 to 4: sender id u32 at +0x10 and 0 at +8; above 4: none
+0x14subject, a string copied with no bound into the 0x100 bytes to +0x113
+0x114, +0x118, +0x11citem text id, package id, stationery id (u32 each)
+0x120, +0x124, +0x128, +0x12citem entry, enchantment id, random property id, suffix factor
+0x130item count u8
+0x134, +0x138, +0x13ccharges, then two more u32, unread
+0x140, +0x144money, COD amount
+0x148flags: 1 read, 2 returned, 4 text turned into an item, 8 COD
+0x14cdays left, f32
+0x25cmail template id u32

The derivation is in the doc.