aboutsummaryrefslogtreecommitdiffstats
path: root/worker/mbox
diff options
context:
space:
mode:
Diffstat (limited to 'worker/mbox')
-rw-r--r--worker/mbox/create.go1
-rw-r--r--worker/mbox/worker.go6
2 files changed, 4 insertions, 3 deletions
diff --git a/worker/mbox/create.go b/worker/mbox/create.go
index 7c4d9f7b..266398ab 100644
--- a/worker/mbox/create.go
+++ b/worker/mbox/create.go
@@ -8,7 +8,6 @@ import (
)
func createMailboxContainer(path string) (*mailboxContainer, error) {
-
file, err := os.Open(path)
if err != nil {
return nil, err
diff --git a/worker/mbox/worker.go b/worker/mbox/worker.go
index 4c0a1271..6ba886ae 100644
--- a/worker/mbox/worker.go
+++ b/worker/mbox/worker.go
@@ -99,7 +99,8 @@ func (w *mboxWorker) handleMessage(msg types.WorkerMessage) error {
if !ok {
w.folder = w.data.Create(w.name)
w.worker.PostMessage(&types.Done{
- Message: types.RespondTo(&types.CreateDirectory{})}, nil)
+ Message: types.RespondTo(&types.CreateDirectory{}),
+ }, nil)
}
w.worker.PostMessage(&types.DirectoryInfo{
Info: w.data.DirectoryInfo(msg.Directory),
@@ -338,7 +339,8 @@ func (w *mboxWorker) handleMessage(msg types.WorkerMessage) error {
if !ok {
folder = w.data.Create(msg.Destination)
w.worker.PostMessage(&types.Done{
- Message: types.RespondTo(&types.CreateDirectory{})}, nil)
+ Message: types.RespondTo(&types.CreateDirectory{}),
+ }, nil)
}
if err := folder.Append(msg.Reader, msg.Flags); err != nil {