models

package
v0.0.0-...-2649749 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	/**S
	 * The message class as defined in the .msg file.
	 */
	MessageClass string
	/**
	 * The message Id.
	 */
	MessageID string
	/**
	 * The address part of From: mail address.
	 */
	FromEmail string
	/**
	 * The name part of the From: mail address
	 */
	FromName string
	/**
	 * The address part of To: mail address.
	 */
	ToEmail string
	/**
	 * The name part of the To: mail address
	 */
	ToName string
	/**
	 * The address part of Reply-To header
	 */
	ReplyToEmail string
	/**
	 * The name part of Reply-To header
	 */
	ReplyToName string
	/**
	 * The S/MIME part of the S/MIME header
	 */
	//OutlookSmime smime;
	/**
	 * The mail's subject.
	 */
	Subject string
	/**
	 * The normalized body text.
	 */
	BodyText string
	/**
	 * The displayed To: field
	 */
	DisplayTo string
	/**
	 * The displayed Cc: field
	 */
	DisplayCc string
	/**
	 * The displayed Bcc: field
	 */
	DisplayBcc string

	/**
	 * The body in RTF format (if available)
	 */
	BodyRTF string

	/**
	 * The body in HTML format (if available)
	 */
	BodyHTML string

	/**
	 * The body in HTML format (converted from RTF)
	 */
	ConvertedBodyHTML string
	/**
	 * Email headers (if available)
	 */
	Headers string

	/**
	 * Email Date
	 */
	Date time.Time

	/**
	 * Client Submit Time
	 */
	ClientSubmitTime time.Time

	CreationDate time.Time

	LastModificationDate time.Time

	Properties map[int64]string
}

Message is a struct that holds a structered result of parsing the entry

func (*Message) GetHeaders

func (res *Message) GetHeaders() string

GetHeaders returns headers

func (*Message) ParseHeaders

func (res *Message) ParseHeaders() map[string][]string

ParseHeaders returns a map of key value of headers

func (*Message) SetProperties

func (res *Message) SetProperties(msgProps MessageProperty)

SetProperties sets the message properties

type MessageProperty

type MessageProperty struct {
	Class string
	Mapi  int64
	Data  interface{}
}

MessageProperty holds the type of data and the data

type OutlookMessageInformation

type OutlookMessageInformation struct {
	Class string
	Mapi  int64
}

OutlookMessageInformation is the field information of a property

Jump to

Keyboard shortcuts

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