Remove old pipeline code and tests.
Fix issues caused by removing old files.
Fix email message ids not being added for incoming emails.