Documentation
¶
Index ¶
- Constants
- type BodyPart
- type BodyPath
- type DateFromStr
- type Mail
- func (m *Mail) Delete(r ndb.Execer) error
- func (m *Mail) Depth() int
- func (m *Mail) FetchRoot(r ndb.Queryer) (*Mail, error)
- func (m *Mail) FindFirstNonMultipart() *BodyPart
- func (m *Mail) FindPlaintext() *BodyPart
- func (m *Mail) InsertInto(r ndb.Execer, mailbox, accname string) error
- func (m *Mail) IsUnread() bool
- func (m *Mail) MarkAsRead()
- func (m *Mail) SaveFlags(r ndb.Execer) error
- func (m *Mail) StyledContent() []*widgets.ContentWithStyle
- func (m *Mail) UpdateFlags(r ndb.Execer, flags []string) error
- func (m *Mail) UpdateThreadid(tx *sql.Tx) error
- func (m *Mail) UpdateThreadidOnChild(tx *sql.Tx, threadid int) error
- type Mailbox
- type Thread
- type ThreadCounter
Constants ¶
View Source
const DATE_SQLITE_FORMAT = "2006-01-02 15:04:05.999999999Z07:00"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyPart ¶
type BodyPart struct { Path BodyPath `json:"path"` MIMEType string `json:"mimetype"` MIMESubType string `json:"mimesubtype"` }
func BodyPartsFromImap ¶
func BodyPartsFromImap(bs *imap.BodyStructure) []*BodyPart
func (*BodyPart) StyledContent ¶
func (bp *BodyPart) StyledContent() []*widgets.ContentWithStyle
type DateFromStr ¶
func (*DateFromStr) Scan ¶
func (d *DateFromStr) Scan(src interface{}) error
type Mail ¶
type Mail struct { Id int Uid uint32 Threadid int Subject string Flags []string MessageId string Mailbox string InReplyTo string Parts []*BodyPart Date time.Time Header *mail.Header // contains filtered or unexported fields }
func AllThreadMails ¶
given the id of a mail this function returns all of its children in its thread with specific depth for each
func FetchMails ¶
func (*Mail) FindFirstNonMultipart ¶
func (*Mail) FindPlaintext ¶
func (*Mail) MarkAsRead ¶
func (m *Mail) MarkAsRead()
func (*Mail) StyledContent ¶
func (m *Mail) StyledContent() []*widgets.ContentWithStyle
type Mailbox ¶
type Mailbox struct { Name string Parent string ShortName string Count uint32 Unseen uint32 ReadOnly bool LastSeenUid uint32 // contains filtered or unexported fields }
func (*Mailbox) StyledContent ¶
func (m *Mailbox) StyledContent() []*widgets.ContentWithStyle
type Thread ¶
XXX rename to ThreadInfo?
func (*Thread) MarkOneAsRead ¶
func (t *Thread) MarkOneAsRead()
func (*Thread) StyledContent ¶
func (t *Thread) StyledContent() []*widgets.ContentWithStyle
type ThreadCounter ¶
type ThreadCounter struct {
// contains filtered or unexported fields
}
func FetchThreadCounter ¶
func FetchThreadCounter(r ndb.Queryer) (ThreadCounter, error)
func (*ThreadCounter) Next ¶
func (t *ThreadCounter) Next() int
func (*ThreadCounter) UpdateThreadCounter ¶
func (t *ThreadCounter) UpdateThreadCounter(r ndb.Execer) error
Click to show internal directories.
Click to hide internal directories.