Documentation ¶
Index ¶
- func FoldersHandler(resp http.ResponseWriter, req *http.Request)
- func GetLastUIDs(alluids []uint32) *imap.SeqSet
- func GetUIDs(mbox string, client *imap.Client) ([]uint32, error)
- func MessageHandler(resp http.ResponseWriter, req *http.Request)
- type Folder
- type FoldersPayload
- type Message
- type MessagePayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FoldersHandler ¶
func FoldersHandler(resp http.ResponseWriter, req *http.Request)
Handle /mailbox/<email>/folders
func GetLastUIDs ¶
func MessageHandler ¶
func MessageHandler(resp http.ResponseWriter, req *http.Request)
Types ¶
type FoldersPayload ¶
type Message ¶
type Message struct { Uid uint32 `json:"uid"` Folder string `json:"folder"` FromName string `json:"from_name"` FromEmail string `json:"from_email"` Date string `json:"date"` Seen bool `json:"seen"` Flagged bool `json:"flagged"` Answered bool `json:"answered"` Subject string `json:"subject"` BodyHtml string `json:"body_html"` BodyText string `json:"body_text"` ContentType string `json:"content_type"` }
===================================================================
type MessagePayload ¶
Click to show internal directories.
Click to hide internal directories.