Documentation ¶
Index ¶
- Variables
- type ListMailResponse
- type MailAttachmentDto
- type MailDto
- type MailReader
- func (mr *MailReader) DownloadAttachment(uid int, mime string, name string) (io.Reader, error)
- func (mr *MailReader) GetBySid(sid int) (*MailDto, error)
- func (mr *MailReader) Last(count int) (*ListMailResponse, error)
- func (mr *MailReader) List(page int) (*ListMailResponse, error)
- func (mr *MailReader) MailBoxes() ([]string, error)
- func (mr *MailReader) Move(uid uint32, mailbox string) error
- func (mr *MailReader) SetFolder(folder string) (*imap.MailboxStatus, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyMailbox = errors.New("mailbox is empty")
View Source
var ErrNotFound = errors.New("not found messgaes")
Functions ¶
This section is empty.
Types ¶
type ListMailResponse ¶
type MailAttachmentDto ¶
type MailAttachmentDto struct { Mime string Name string Index int // contains filtered or unexported fields }
func (*MailAttachmentDto) GetReader ¶
func (ma *MailAttachmentDto) GetReader() io.Reader
func (*MailAttachmentDto) SetReader ¶
func (ma *MailAttachmentDto) SetReader(r io.Reader)
type MailReader ¶
func Dial ¶
func Dial() *MailReader
func Get ¶
func Get() *MailReader
func (*MailReader) DownloadAttachment ¶
func (*MailReader) GetBySid ¶
func (mr *MailReader) GetBySid(sid int) (*MailDto, error)
view message by sid
func (*MailReader) Last ¶
func (mr *MailReader) Last(count int) (*ListMailResponse, error)
func (*MailReader) List ¶
func (mr *MailReader) List(page int) (*ListMailResponse, error)
List of emails
func (*MailReader) MailBoxes ¶
func (mr *MailReader) MailBoxes() ([]string, error)
List of mailboxes
func (*MailReader) SetFolder ¶
func (mr *MailReader) SetFolder(folder string) (*imap.MailboxStatus, error)
Setted current Folder
Click to show internal directories.
Click to hide internal directories.