export

package
v0.0.0-...-7862e70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 9 Imported by: 0

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"`
}

func (File) ToFBB

func (ef File) ToFBB() ([]*fbb.Message, error)

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

type MessageTime time.Time

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

type ParametersTime time.Time

func (ParametersTime) MarshalText

func (p ParametersTime) MarshalText() ([]byte, error)

func (*ParametersTime) UnmarshalText

func (p *ParametersTime) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL