search: leave drafts out of the corpus and drop deleted messages

A JMAP draft is a new message each time it is saved, and the corpus only ever grew, so it would keep every version of every draft and every message deleted for good. Search cannot show them, as their threads are gone, but they cost the index and the file. Leave drafts out of the backfill's query; one sent loses $draft and is kept then. Drop the messages Email/changes reports destroyed: a record says each is gone, read back as the corpus loads, and the index leaves it out of searches. Those told before the file has been read are dropped once it has.


Author rockorager.dev
Date Commit Parent 997af288
+123 -26
5 changed files
+123 -26
5 changed files