mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 18:47:51 +08:00
b79488ae43
Summary: This diff solves a few separate issues from T7313, T7316, T7282, and it refactors the send code a little bit. Initially, the problem that led to this diff was generating message ids that wouldn't collide (which was causing errors in the message-processor). Collisions in ids were being caused by messages that contained the exact same participants, subject and date (most likely due bots or scripts sending emails in quick succession) To prevent collisions this commit adds the `message-id` header as part of the database message id, and ensures that we set it correctly before sending, and that it remains consistent through send, multi-send, and the sync loop. During the refactor and review, I removed some code that assumed that we were syncing drafts (which we aren't), and also fixes a few other known and unknown issues around sending, message creation, and tracking, like assigning the correct date header (we were previously assigning the draft creation date from within N1), fixing the tracking regex, among other smaller bugs/typos. Will address inline TODOs in a separate diff Test Plan: TODO!!! I will add tests in another diff Reviewers: evan, halla, jackie, khamidou Reviewed By: halla, jackie Differential Revision: https://phab.nylas.com/D3507
19 lines
281 B
Text
19 lines
281 B
Text
*.swp
|
|
*~
|
|
.DS_Store
|
|
node_modules
|
|
dump.rdb
|
|
*npm-debug.log
|
|
storage/
|
|
lerna-debug.log
|
|
newrelic_agent.log
|
|
|
|
# Vim temp files
|
|
*.swp
|
|
*.swo
|
|
|
|
# Elastic Beanstalk Files
|
|
.elasticbeanstalk/*
|
|
!.elasticbeanstalk/*.cfg.yml
|
|
!.elasticbeanstalk/*.global.yml
|
|
/packages/local-sync/spec-saved-state.json
|