imapconnection

package
v0.0.0-...-48d6722 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: GPL-3.0-or-later

SPDX-License-Identifier: GPL-3.0-or-later

SPDX-License-Identifier: GPL-3.0-or-later

SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

This section is empty.

Variables

View Source
var ItemsWithDeletedFlagPresent = fmt.Errorf("folder has previous items with delete flag set")

Functions

This section is empty.

Types

type ImapConnection

type ImapConnection struct {
	// contains filtered or unexported fields
}

func NewImapConnection

func NewImapConnection(server string, user string, password string) (*ImapConnection, error)

func (*ImapConnection) Check

func (ic *ImapConnection) Check(ids []uint32) ([]*RawMail, error)

func (*ImapConnection) Close

func (ic *ImapConnection) Close() error

func (*ImapConnection) Delete

func (ic *ImapConnection) Delete(uids []uint32) error

func (*ImapConnection) DeleteReady

func (ic *ImapConnection) DeleteReady() (error, error)

func (*ImapConnection) FetchIdHeaders

func (ic *ImapConnection) FetchIdHeaders(uids []uint32) ([]*domain.ImapIdInfo, error)

func (*ImapConnection) FetchMails

func (ic *ImapConnection) FetchMails(uids []uint32) ([]*domain.RawImapMail, error)

func (*ImapConnection) ListUids

func (ic *ImapConnection) ListUids() ([]uint32, error)

func (*ImapConnection) Move

func (ic *ImapConnection) Move(uids []uint32, folder string) error

func (*ImapConnection) MoveReady

func (ic *ImapConnection) MoveReady() (error, error)

func (*ImapConnection) Put

func (ic *ImapConnection) Put(body []byte, folder string) error

func (*ImapConnection) Select

func (ic *ImapConnection) Select(folder string) (uint32, error)

type RawMail

type RawMail struct {
	Uid  uint32
	Data []byte
}

Jump to

Keyboard shortcuts

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