-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use a fallback date if Date header is not valid RFC2822
Use Time.rfc2822 to parse the Date header in RFC2822 format, rather than letting Time.parse try heuristics to guess the format. If parsing fails, use the fallback date (mtime or From line timestamp) instead of letting Time.parse fill in the missing pieces from the current time. Fixes #252.
- Loading branch information
Showing
5 changed files
with
26 additions
and
2 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
To: [email protected] | ||
Subject: pre-RFC2822 Date header | ||
Content-type: text/plain | ||
From: [email protected] | ||
Message-Id: <[email protected]> | ||
Date: ons, 26 maj 1999 11:00:34 +0200 (CEST) | ||
|
||
A message body. |
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