diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-10 23:45:00 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-10 23:45:00 -0400 |
commit | b3896476a0e6978c0d7f6fedfb64588934a78f1e (patch) | |
tree | 735e92c3ecb2955ab53cb3f77f0c676fcd64f1a0 /worker/types/messages.go | |
parent | 289e3b09ea20e911071e5a0f274445429502e934 (diff) | |
download | aerc-b3896476a0e6978c0d7f6fedfb64588934a78f1e.tar.gz |
Fetch valid UIDs from server after opening dir
Diffstat (limited to 'worker/types/messages.go')
-rw-r--r-- | worker/types/messages.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go index 02a31194..d44624d6 100644 --- a/worker/types/messages.go +++ b/worker/types/messages.go @@ -2,6 +2,10 @@ package types import ( "crypto/x509" + "net/mail" + "time" + + "github.com/emersion/go-imap" "git.sr.ht/~sircmpwn/aerc2/config" ) @@ -68,6 +72,20 @@ type OpenDirectory struct { Directory string } +type FetchDirectoryContents struct { + Message +} + +type FetchMessageHeaders struct { + Message + Uids imap.SeqSet +} + +type FetchMessageBodies struct { + Message + Uids imap.SeqSet +} + // Messages type CertificateApprovalRequest struct { @@ -89,3 +107,18 @@ type DirectoryInfo struct { Exists, Recent, Unseen int } + +type DirectoryContents struct { + Message + Uids []uint64 +} + +type MessageInfo struct { + Message + Envelope *imap.Envelope + Flags []string + InternalDate time.Time + Mail *mail.Message + Size uint32 + Uid uint64 +} |