aboutsummaryrefslogtreecommitdiff
path: root/worker/types/messages.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-06-24 16:29:13 -0400
committerDrew DeVault <sir@cmpwn.com>2019-06-24 16:29:25 -0400
commit0e9c411751c752eeef4e2132f778308689001388 (patch)
treefe9fe8059873f1399f4e732078772534b59a13fd /worker/types/messages.go
parentb15d1e52b3fc53d2b0336168b29ccb14722eac69 (diff)
worker/imap: implement search
Diffstat (limited to 'worker/types/messages.go')
-rw-r--r--worker/types/messages.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go
index fa4b4e4..d9e911f 100644
--- a/worker/types/messages.go
+++ b/worker/types/messages.go
@@ -82,6 +82,11 @@ type FetchDirectoryContents struct {
Message
}
+type SearchDirectory struct {
+ Message
+ Criteria *imap.SearchCriteria
+}
+
type CreateDirectory struct {
Message
Directory string
@@ -152,6 +157,11 @@ type DirectoryContents struct {
Uids []uint32
}
+type SearchResults struct {
+ Message
+ Uids []uint32
+}
+
type MessageInfo struct {
Message
BodyStructure *imap.BodyStructure