Documentation
¶
Overview ¶
The dates found in email headers vary a lot in format and are often malformed
Some real examples
Date: 07 Feb 18 12:03:02 // E.ON 2 digit year and no offset Date: 10 Mar 2017 20:37:12 +0100 Date: 9 Mar 2017 16:38:21 +0000 // day can be single digit Date: 04 May 2017 11:36:05 +0200 // or have leading zero Date: Tue, 30 Jan 2018 22:54:19 +0000 // can have dayname prefix Date: Tue, 30 Jan 2018 07:44:40 +0000 (GMT) // and timezone in a (comment) Date: Mon, 23 Apr 2018 12:51:21 -0400 // B.G. offset can be negative
Some found examples for which mail.ParseDate() returns an error
Date: Fri, 0 Jan 2011 12:20:30 +0100 // invalid day of month Received: ... ; 6 May 2004 16:14:42 UT // should be UTC Received: ... ; Fri, 26 Mar 2004 15:30:19 +0000 (GMT) // (GMT) is comment
type Parser exists only to hold a log level value to enable this library to use the system log library without disrupting library users use of system log methods
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContentType ¶
type ContentType struct {
// contains filtered or unexported fields
}
type MsgInfo ¶
type MsgInfo struct {
// contains filtered or unexported fields
}
--------------------------------------------------------------- Items needed to make a list of messages
type MsgList ¶
type MsgList []MsgInfo