Documentation ¶
Overview ¶
Copyright © 2020 Elias Norberg Licensed under the GPLv3 or later. See COPYING at the root of the repository for details.
Copyright © 2020 Elias Norberg Licensed under the GPLv3 or later. See COPYING at the root of the repository for details.
Index ¶
Constants ¶
const ( FlagPassed = "P" FlagReplied = "R" FlagSeen = "S" FlagTrashed = "T" FlagDraft = "D" FlagFlagged = "F" )
Flags as defined by the maildir specification (https://cr.yp.to/proto/maildir.html)
Flag "P" (passed): the user has resent/forwarded/bounced this message to someone else. Flag "R" (replied): the user has replied to this message. Flag "S" (seen): the user has viewed this message, though perhaps he didn't read all the way through it. Flag "T" (trashed): the user has moved this message to the trash; the trash will be emptied by a later user action. Flag "D" (draft): the user considers this message a draft; toggled at user discretion. Flag "F" (flagged): user-defined flag; toggled at user discretion.
Variables ¶
var FlagIMAPConversionTable = map[string]string{ FlagPassed: "$Forwarded", FlagReplied: imap.AnsweredFlag, FlagSeen: imap.SeenFlag, FlagTrashed: imap.DeletedFlag, FlagDraft: imap.DraftFlag, FlagFlagged: imap.FlaggedFlag, }
FlagIMAPConversionTable is used to map between maildir flags and IMAP flags
Functions ¶
func FlagsFromIMAP ¶
FlagsFromIMAP converts from IMAP flags to maildir flags
func FlagsToIMAP ¶
FlagsToIMAP converts from maildir flags to IMAP flags