Finally redid the schema for email storage and transitioned from email objects to thread objects containing message objects! Now there will be a ton less weird edge case behaviours when it comes to threads