New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed a lot of parsing errors #11
Open
terhechte
wants to merge
21
commits into
Mubelotix:master
Choose a base branch
from
terhechte:master
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c06ca03
Added support for timezone abbreviations
terhechte eef0baf
Add support for the 9:23:47 time format
terhechte c3607e7
Fix compile issue when enabling MIME
terhechte fd66dae
Support for latin1, shiftjs, etc codepage chars in subjects
terhechte ce4c06f
Support emails with no sender but multiple from addresses
terhechte 9c2caf6
Support '.' character in from names (e.g. "From: hey.io <info@heo.io>"
terhechte 6d8b94d
Support more address chars in From. Add '@'
terhechte 1767c3a
Support for years in dates with only two digits. E.g. 11 for 2011
terhechte a0614de
Support display names in quotes with any characters inside
terhechte 7c7acc0
Add support for '+00:00' timezone format
terhechte 3e644dc
Some emails add a comment at the end of the date to indicate a timezone
terhechte 305329f
Allow multiple 'to' values in headers as this is something gmail does…
terhechte c6199ef
Add feature flag to allow multiple headers for all fields. Vecs are j…
terhechte b2c93e0
Some addresses have additional whitespace after the closing angle
terhechte 2cdebe6
Fix for an issue where unknown fields had weird unicode letters in th…
terhechte ff8e2a5
Support broken headers by moving them into unsupported (making parsin…
terhechte 2100e15
Add feature to disable mime body decoding
terhechte 88ba128
Add option to get the number for a month
terhechte 21021c9
Added tests for many of the issues that were fixed in the past commits
terhechte da8582a
Update dependency
terhechte dba59d8
Support Apple Mail messages which use LF instead of CRLF
terhechte File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ keywords = ["email", "mail", "mime", "parser"] | |
|
||
[dependencies] | ||
textcode = {version="0.2", optional=true} | ||
timezone-abbreviations = "0.1.0" | ||
|
||
[features] | ||
default = ["headers"] | ||
|
@@ -35,6 +36,8 @@ compatibility-fixes = [] | |
content-disposition = ["mime"] | ||
unrecognized-headers = ["mime"] | ||
mime = ["textcode"] | ||
allow-duplicate-headers = [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need a feature for that. I would like to leave the |
||
decode-mime-body = [] | ||
|
||
[dev-dependencies] | ||
email = "0.0.21" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct me if I am wrong but custom timezone is defined by RFC 822 and this crate is focusing on RFC 5322. There is a feature named
compatibility-fixes
to allow older syntaxes. Please put everything timezone-related under this feature gate (including the new dependency).