ews

package
v0.0.0-...-aca2b95 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2017 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const CURLAUTH_NTLM = 0x08

From curl.h c lang header

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentId

type AttachmentId struct {
	Id string `xml:"Id,attr"`
}

type Body

type Body struct {
	XMLName xml.Name `xml:"Body"`
	Raw     []byte   `xml:",innerxml"`
}

type EmailClient

type EmailClient struct {
	Debug        int
	UserPassword string
	Url          string
	PostXML      string
	RespXML      string
	MessageList  []ItemId
}

State that holds data between different functions (methods)

func (*EmailClient) CheckInbox

func (client *EmailClient) CheckInbox() (err error)

type Envelope

type Envelope struct {
	XMLName xml.Name `xml:"Envelope"`
	Body    Body
}

type FileAttachment

type FileAttachment struct {
	XMLName      xml.Name `xml:"FileAttachment"`
	AttachmentId AttachmentId
	Name         string `xml:"Name"`
	Content      string `xml:"Content"`
	ContentType  string `xml:"ContentType"`
}

type Filter

type Filter struct {
	Class       string
	Subject     string
	SenderName  string
	SenderEmail string
}

To use with posts that filter for certain emails

type FindItemResp

type FindItemResp struct {
	XMLName xml.Name        `xml:"FindItemResponse"`
	Msg     FindItemRespMsg `xml:"ResponseMessages>FindItemResponseMessage"`
}

type FindItemRespMsg

type FindItemRespMsg struct {
	XMLName xml.Name `xml:"FindItemResponseMessage"`
	Class   string   `xml:"ResponseClass,attr"`
	Code    string   `xml:"ResponseCode"`
	Folder  RootFolder
}

type FolderId

type FolderId struct {
	Id        string `xml:"Id,attr"`
	ChangeKey string `xml:"ChangeKey,attr"`
}

type ItemId

type ItemId struct {
	Id        string `xml:"Id,attr"`
	ChangeKey string `xml:"ChangeKey,attr"`
}

type Items

type Items struct {
	XMLName xml.Name `xml:"Items"`
	Message []Message
}

type Message

type Message struct {
	XMLName xml.Name `xml:"Message"`
	ItemId  ItemId
}

type RootFolder

type RootFolder struct {
	XMLName      xml.Name `xml:"RootFolder"`
	TotalItems   int      `xml:"TotalItemsInView,attr"`
	IncludesLast bool     `xml:"IncludesLastItemInRange,attr"`
	Raw          []byte   `xml:",innerxml"`
}

Jump to

Keyboard shortcuts

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