aboutsummaryrefslogtreecommitdiff
path: root/worker
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-02-29 14:40:52 +0100
committerDrew DeVault <sir@cmpwn.com>2020-02-29 13:16:33 -0500
commitf3dbecaaea16fe8956af2bbd29472243f0496995 (patch)
tree086fe851440ababd9eb5a6da73c48fd9068f1081 /worker
parentfb2df7e1694a99c8c74e931453aa863125e208f2 (diff)
remove the dirInfoUpdateRequest functionality
The notmuch worker followed suit in handling the dirInfo submission manually. That removes the last user so we might as well remove the functionality.
Diffstat (limited to 'worker')
-rw-r--r--worker/imap/worker.go2
-rw-r--r--worker/types/messages.go7
2 files changed, 0 insertions, 9 deletions
diff --git a/worker/imap/worker.go b/worker/imap/worker.go
index 1037f81..ddd95b6 100644
--- a/worker/imap/worker.go
+++ b/worker/imap/worker.go
@@ -181,8 +181,6 @@ func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) error {
w.handleAppendMessage(msg)
case *types.SearchDirectory:
w.handleSearchDirectory(msg)
- case *types.DirectoryInfoUpdateRequest:
- // not implemented
default:
reterr = errUnsupported
}
diff --git a/worker/types/messages.go b/worker/types/messages.go
index f43ab0a..c7d5077 100644
--- a/worker/types/messages.go
+++ b/worker/types/messages.go
@@ -149,13 +149,6 @@ type DirectoryInfo struct {
Info *models.DirectoryInfo
}
-// Sent whenever we assume that a directory content changed
-// workers are requested to update the DirectoryInfo to display the unread count
-type DirectoryInfoUpdateRequest struct {
- Message
- Name string
-}
-
type DirectoryContents struct {
Message
Uids []uint32