Documentation ¶
Index ¶
- type Attachment
- type Attendee
- type EmbeddedFile
- type Envelope
- type Event
- type Message
- func (m *Message) AddFlags(c *imapclient.Client, flags ...imap.Flag) error
- func (m *Message) Copy(c *imapclient.Client, mailbox string) error
- func (m *Message) DeleteFlags(c *imapclient.Client, flags ...imap.Flag) error
- func (m *Message) Fetch(c *imapclient.Client, options ...*imap.FetchOptions) error
- func (m *Message) FromIMAP(buffer *imapclient.FetchMessageBuffer, fields map[string]bool) error
- func (m *Message) FromIMAPEnvelope(envelope *imap.Envelope, fields map[string]bool) error
- func (m *Message) HasFlag(flag imap.Flag) bool
- func (m *Message) MarkDeleted(c *imapclient.Client) error
- func (m *Message) MarkDraft(c *imapclient.Client) error
- func (m *Message) MarkFlagged(c *imapclient.Client) error
- func (m *Message) MarkSeen(c *imapclient.Client) error
- func (m *Message) MarkUndeleted(c *imapclient.Client) error
- func (m *Message) MarkUndraft(c *imapclient.Client) error
- func (m *Message) MarkUnflagged(c *imapclient.Client) error
- func (m *Message) MarkUnseen(c *imapclient.Client) error
- func (m *Message) Move(c *imapclient.Client, mailbox string) error
- func (m *Message) SetFlags(c *imapclient.Client, flags ...imap.Flag) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attendee ¶
type Attendee struct { Email string Status ics.ParticipationStatus }
type EmbeddedFile ¶
type Message ¶
type Message struct { UID uint32 SeqNum uint32 Flags []imap.Flag InternalDate time.Time RFC822Size int64 Mailbox string ContentType string Raw []byte Headers map[string][]string RawHeaders []byte RawBody []byte RawMime []byte Text string HTML string Attachments []*Attachment HasAttachments bool Embedded []*EmbeddedFile HasEmbeds bool Events []*Event HasEvents bool RawInvites [][]byte Envelope *Envelope }
func NewMessage ¶
func NewMessage() *Message
func NewMessageFromIMAP ¶
func NewMessageFromIMAP(buffer *imapclient.FetchMessageBuffer, fields map[string]bool) (*Message, error)
func (*Message) AddFlags ¶
func (m *Message) AddFlags(c *imapclient.Client, flags ...imap.Flag) error
AddFlags adds the specified flags to the message.
func (*Message) Copy ¶
func (m *Message) Copy(c *imapclient.Client, mailbox string) error
Copy copies the specified message(s) to the end of the specified destination mailbox.
func (*Message) DeleteFlags ¶
func (m *Message) DeleteFlags(c *imapclient.Client, flags ...imap.Flag) error
DeleteFlags removes the specified flags from the message.
func (*Message) Fetch ¶
func (m *Message) Fetch(c *imapclient.Client, options ...*imap.FetchOptions) error
func (*Message) FromIMAP ¶
func (m *Message) FromIMAP(buffer *imapclient.FetchMessageBuffer, fields map[string]bool) error
FromIMAP converts a raw IMAP message into a Message object.
func (*Message) FromIMAPEnvelope ¶
func (*Message) MarkDeleted ¶
func (m *Message) MarkDeleted(c *imapclient.Client) error
MarkDeleted marks the message to be deleted.
func (*Message) MarkDraft ¶
func (m *Message) MarkDraft(c *imapclient.Client) error
MarkDraft marks the message as a draft.
func (*Message) MarkFlagged ¶
func (m *Message) MarkFlagged(c *imapclient.Client) error
MarkFlagged marks the message as flagged / important.
func (*Message) MarkSeen ¶
func (m *Message) MarkSeen(c *imapclient.Client) error
MarkSeen marks the message as seen.
func (*Message) MarkUndeleted ¶
func (m *Message) MarkUndeleted(c *imapclient.Client) error
MarkUndeleted removes the deleted flag from the message.
func (*Message) MarkUndraft ¶
func (m *Message) MarkUndraft(c *imapclient.Client) error
MarkUndraft removes the draft flag from the message.
func (*Message) MarkUnflagged ¶
func (m *Message) MarkUnflagged(c *imapclient.Client) error
MarkUnflagged removes the flagged / important flag from the message.
func (*Message) MarkUnseen ¶
func (m *Message) MarkUnseen(c *imapclient.Client) error
MarkUnseen marks the message as unseen.