Thank you for answering these questions, so it is atm hard to properly prase the mystery gifts only as it just happens when they happen when other events get in-between.
Would be awesome to have a flag, now that i think about it msg-id could be (re)used with the type of mysterygift so the msg-id of USERNOTICE is exanded to sub, resub, subgift , raid , ritual and mysterygift and would solve most of the concerns and issues to properly parse and ignore these mystery gifts while still detecting normal (re)subs and gifts.