Documentation ¶
Index ¶
- Variables
- func UidToUint32(uid UID) uint32
- func UidToUint32List(uids []UID) []uint32
- type BodyStructure
- type Capabilities
- type Case
- type Directory
- type DirectoryInfo
- type Envelope
- type Flags
- type FullMessage
- type MessageBodyPart
- type MessageDetails
- type MessageInfo
- type OriginalMail
- type Role
- type SignatureValidity
- type TemplateData
- type UID
Constants ¶
This section is empty.
Variables ¶
View Source
var Roles = map[string]Role{ "all": AllRole, "archive": ArchiveRole, "drafts": DraftsRole, "inbox": InboxRole, "junk": JunkRole, "sent": SentRole, "trash": TrashRole, "query": QueryRole, }
Functions ¶
func UidToUint32 ¶
func UidToUint32List ¶
Types ¶
type BodyStructure ¶
type BodyStructure struct { MIMEType string MIMESubType string Params map[string]string Description string Encoding string Parts []*BodyStructure Disposition string DispositionParams map[string]string }
func (*BodyStructure) FileName ¶
func (bs *BodyStructure) FileName() string
func (*BodyStructure) FullMIMEType ¶
func (bs *BodyStructure) FullMIMEType() string
func (*BodyStructure) PartAtIndex ¶
func (bs *BodyStructure) PartAtIndex(index []int) (*BodyStructure, error)
PartAtIndex returns the BodyStructure at the requested index
type Capabilities ¶
Capabilities provides the backend capabilities
func (*Capabilities) Has ¶
func (c *Capabilities) Has(s string) bool
type DirectoryInfo ¶
type Flags ¶
type Flags uint32
Flags is an abstraction around the different flags which can be present in different email backends and represents a flag that we use in the UI.
const ( // SeenFlag marks a message as having been seen previously SeenFlag Flags = 1 << iota // RecentFlag marks a message as being recent RecentFlag // AnsweredFlag marks a message as having been replied to AnsweredFlag // ForwardedFlag marks a message as having been forwarded ForwardedFlag // DeletedFlag marks a message as having been deleted DeletedFlag // FlaggedFlag marks a message with a user flag FlaggedFlag // DraftFlag marks a message as a draft DraftFlag )
type FullMessage ¶
A FullMessage is the entire message
type MessageBodyPart ¶
A MessageBodyPart can be displayed in the message viewer
type MessageDetails ¶
type MessageDetails struct { IsEncrypted bool IsSigned bool SignedBy string // Primary identity of signing key SignedByKeyId uint64 SignatureValidity SignatureValidity SignatureError string DecryptedWith string // Primary Identity of decryption key DecryptedWithKeyId uint64 // Public key id of decryption key Body io.Reader Micalg string }
type MessageInfo ¶
type MessageInfo struct { BodyStructure *BodyStructure Envelope *Envelope Flags Flags Labels []string Filenames []string InternalDate time.Time RFC822Headers *mail.Header Refs []string Size uint32 Uid UID Error error }
A MessageInfo holds information about the structure of a message
func (*MessageInfo) InReplyTo ¶
func (mi *MessageInfo) InReplyTo() (msgid string, err error)
func (*MessageInfo) MsgId ¶
func (mi *MessageInfo) MsgId() (msgid string, err error)
func (*MessageInfo) References ¶
func (mi *MessageInfo) References() ([]string, error)
type OriginalMail ¶
type OriginalMail struct { Date time.Time From string Text string MIMEType string RFC822Headers *mail.Header Folder string }
OriginalMail is helper struct used for reply/forward
type Role ¶
type Role string
const ( AllRole Role = "all" ArchiveRole Role = "archive" DraftsRole Role = "drafts" InboxRole Role = "inbox" JunkRole Role = "junk" SentRole Role = "sent" TrashRole Role = "trash" // Custom aerc roles QueryRole Role = "query" // virtual node created by the directory tree VirtualRole Role = "virtual" )
type SignatureValidity ¶
type SignatureValidity int32
const ( UnknownValidity SignatureValidity = iota Valid InvalidSignature UnknownEntity UnsupportedMicalg MicalgMismatch )
type TemplateData ¶
type TemplateData interface { Account() string AccountBackend() string AccountFrom() *mail.Address Folder() string To() []*mail.Address Cc() []*mail.Address Bcc() []*mail.Address From() []*mail.Address Peer() []*mail.Address ReplyTo() []*mail.Address Date() time.Time DateAutoFormat(date time.Time) string Header(name string) string ThreadPrefix() string ThreadCount() int ThreadUnread() int ThreadFolded() bool ThreadContext() bool ThreadOrphan() bool Subject() string SubjectBase() string Number() int Labels() []string Filename() string Filenames() []string Flags() []string IsReplied() bool HasAttachment() bool Attach(string) string IsFlagged() bool IsRecent() bool IsUnread() bool IsMarked() bool IsDraft() bool IsForwarded() bool MessageId() string Role() string Size() int OriginalText() string OriginalDate() time.Time OriginalFrom() []*mail.Address OriginalMIMEType() string OriginalHeader(name string) string Recent(folders ...string) int Unread(folders ...string) int Exists(folders ...string) int RUE(folders ...string) string Connected() bool ConnectionInfo() string ContentInfo() string StatusInfo() string TrayInfo() string PendingKeys() string Style(string, string) string StyleSwitch(string, ...Case) string StyleMap([]string, ...Case) []string Signature() string }
This interface needs to be implemented for compliance with aerc-templates(7)
Click to show internal directories.
Click to hide internal directories.