Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GMail inbox mailbox GMailInbox string = "INBOX" // GMail all mail mailbox GMailAllMail string = "[Gmail]/All Mail" )
Variables ¶
View Source
var ( // Search only the unseen messages SearchUnseen = []imap.Field{"UNSEEN"} // Search all messages SearchAll = []imap.Field{"ALL"} // Search only answered messages SearchAnswered = []imap.Field{"ANSWERED"} // Search only unanswered messages SearchUnanswered = []imap.Field{"UNANSWERED"} // Search only deleted messages SearchDeleted = []imap.Field{"DELETED"} // Search only not deleted messages SearchUndeleted = []imap.Field{"UNDELETED"} // Search only flagged messages SearchFlagged = []imap.Field{"FLAGGED"} // Search only not flagged messages SearchUnflagged = []imap.Field{"UNFLAGGED"} // Search only new messages SearchNew = []imap.Field{"NEW"} // Search only old messages SearchOld = []imap.Field{"OLD"} // Search only recent messages SearchRecent = []imap.Field{"RECENT"} // Search only seen messages SearchSeen = []imap.Field{"SEEN"} )
Functions ¶
Types ¶
type Options ¶
type Options struct { // IMAP server address with port Addr string // Username Username string // Password Password string // Use TLS for the connection TLS bool // Max timeout for logging out Timeout time.Duration // Mark all the retrieved messages as seen when retrieved MarkSeen bool }
Options define the settings to perform all the reader operations
Click to show internal directories.
Click to hide internal directories.