Documentation ¶
Index ¶
Constants ¶
View Source
const MessageTimeFormat = "2006/01/02 15:04"
View Source
const ParametersTimeFormat = "20060102150405"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { XMLName xml.Name `xml:"Winlink_Express_message_export"` Parameters Parameters `xml:"export_parameters"` MessageList []Message `xml:"message_list>message"` }
type Message ¶
type Message struct { XMLName xml.Name `xml:"message"` ID string `xml:"id"` FolderType string `xml:"foldertype"` Folder string `xml:"folder"` Subject string `xml:"subject"` Time MessageTime `xml:"time"` Sender string `xml:"sender"` Acknowledged bool `xml:"acknowledged"` AttachmentsOpened bool `xml:"attachmentsopened"` Replied bool `xml:"replied"` RMSOriginator string `xml:"rmsoriginator"` RMSDestination string `xml:"rmsdestination"` RMSPath string `xml:"rmspath"` Location string `xml:"location"` CompressedSize int64 `xml:"csize"` DownloadServer string `xml:"downloadserver"` Forwarded bool `xml:"forwarded"` MessageServer string `xml:"messageserver"` Precedence string `xml:"precedence"` PeerToPeer bool `xml:"peertopeer"` RoutingFlag string `xml:"routingflag"` Source string `xml:"source"` Unread bool `xml:"unread"` Flags string `xml:"flags"` // MessageOptions is really a series of booleans // but I don't need them and thus don't parse them MessageOptions string `xml:"messageoptions"` // MessageContents is the mail-encoded email contents // with all the relevant headers, body, and attachments MessageContents string `xml:"mime"` }
type MessageTime ¶
func (MessageTime) MarshalText ¶
func (m MessageTime) MarshalText() ([]byte, error)
func (*MessageTime) UnmarshalText ¶
func (m *MessageTime) UnmarshalText(text []byte) error
type Parameters ¶
type Parameters struct { FileVersion string `xml:"xml_file_version"` WinlinkExpressVersion string `xml:"winlink_express_version"` Timestamp ParametersTime `xml:"export_datetime_utc"` Callsign string `xml:"callsign"` }
type ParametersTime ¶
func (ParametersTime) MarshalText ¶
func (p ParametersTime) MarshalText() ([]byte, error)
func (*ParametersTime) UnmarshalText ¶
func (p *ParametersTime) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.