Fix extraction of Message-IDs and fix function that sets the Thread-ID wrongly #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this PR, we fix two bugs which caused wrong data when identifying mail threads:
Message-ID
, namelyMessage-Id
andMessage-id
decreased the number of such e-mails from 28,500 to 10). We provide a fix to cover these additional spelling variants if no header field spelledMessage-ID
is available.break
as soon as we found one, instead of callingnext
which could result in a not-available reference.i
, as also the loop variable of the outer loop is called. That is, when returning from the inner loop, the outer loop accessesi
again but gets the last value of the inner loop instead of the current value of the outer loop, and, thus, is updating the wrong array element. We renamed the inner loop variable toj
to avoid this problem.[As Codeface installs
tm-plugin-mail
from your repository, this PR also acts as a direct bugfix to Codeface.]