mo_message

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Name    string `json:"name"`
	Address string `json:"address"`
}

type Message

type Message struct {
	Raw      json.RawMessage
	Id       string `json:"id" path:"id"`
	ThreadId string `json:"thread_id" path:"threadId"`
	Date     string `json:"date" path:"payload.headers.#(name==\"Date\").value"`
	Subject  string `json:"subject" path:"payload.headers.#(name==\"Subject\").value"`
	To       string `json:"to" path:"payload.headers.#(name==\"To\").value"`
	Cc       string `json:"cc" path:"payload.headers.#(name==\"Cc\").value"`
	From     string `json:"from" path:"payload.headers.#(name==\"From\").value"`
	ReplyTo  string `json:"reply_to" path:"payload.headers.#(name==\"Reply-To\").value"`
}

func (Message) Processed

func (z Message) Processed() (p Processed, err error)

type Processed

type Processed struct {
	Id              string            `json:"id"`
	ThreadId        string            `json:"thread_id"`
	HistoryId       string            `json:"history_id"`
	DateInternal    int64             `json:"date_internal"`
	Date8601        string            `json:"date_8601"`
	DateUnix        int64             `json:"date_unix"`
	Subject         string            `json:"subject"`
	To              []*Address        `json:"to,omitempty"`
	Cc              []*Address        `json:"cc,omitempty"`
	From            *Address          `json:"from,omitempty"`
	ReplyTo         *Address          `json:"reply_to,omitempty"`
	LabelIds        []string          `json:"label_ids"`
	LabelNames      []string          `json:"label_names"`
	LabelTypeUser   []*mo_label.Label `json:"label_type_user"`
	LabelTypeSystem []*mo_label.Label `json:"label_type_system"`
	SizeEstimate    int               `json:"size_estimate"`
	Original        json.RawMessage   `json:"original"`
}

Jump to

Keyboard shortcuts

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