aboutsummaryrefslogtreecommitdiffstats
path: root/worker
diff options
context:
space:
mode:
Diffstat (limited to 'worker')
-rw-r--r--worker/lib/testdata/message/invalid/hexa2
-rw-r--r--worker/notmuch/worker.go5
-rw-r--r--worker/types/thread_test.go3
3 files changed, 0 insertions, 10 deletions
diff --git a/worker/lib/testdata/message/invalid/hexa b/worker/lib/testdata/message/invalid/hexa
index 2967a198..56b352ff 100644
--- a/worker/lib/testdata/message/invalid/hexa
+++ b/worker/lib/testdata/message/invalid/hexa
@@ -24,5 +24,3 @@ Content-Type: text/html; charset=utf-8
<ObJECT>
--Nextpart_1Q2YJhd197991794467076Pgfa--
-
-
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go
index f1533e12..38539df5 100644
--- a/worker/notmuch/worker.go
+++ b/worker/notmuch/worker.go
@@ -135,18 +135,13 @@ func (w *worker) handleMessage(msg types.WorkerMessage) error {
case *types.CheckMail:
go w.handleCheckMail(msg)
return nil
-
// not implemented, they are generally not used
// in a notmuch based workflow
// case *types.DeleteMessages:
// case *types.CopyMessages:
- // return w.handleCopyMessages(msg)
// case *types.AppendMessage:
- // return w.handleAppendMessage(msg)
// case *types.CreateDirectory:
- // return w.handleCreateDirectory(msg)
// case *types.RemoveDirectory:
- // return w.handleRemoveDirectory(msg)
}
return errUnsupported
}
diff --git a/worker/types/thread_test.go b/worker/types/thread_test.go
index 803f7ba9..b3c39322 100644
--- a/worker/types/thread_test.go
+++ b/worker/types/thread_test.go
@@ -70,9 +70,6 @@ func TestNewWalk(t *testing.T) {
var prefix []string
lastLevel := 0
tree.Walk(func(t *Thread, lvl int, e error) error {
- // if t.Uid%2 != 0 {
- // return ErrSkipThread
- // }
if e != nil {
fmt.Printf("ERROR: %v\n", e)
}