summaryrefslogtreecommitdiff
path: root/worker/imap/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap/worker.go')
-rw-r--r--worker/imap/worker.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/worker/imap/worker.go b/worker/imap/worker.go
index a095e60..97cd4b0 100644
--- a/worker/imap/worker.go
+++ b/worker/imap/worker.go
@@ -34,11 +34,11 @@ func (w *IMAPWorker) PostAction(msg types.WorkerMessage) {
func (w *IMAPWorker) handleMessage(_msg types.WorkerMessage) {
switch msg := _msg.(type) {
case types.Ping:
- w.messages <- &types.Ack{
+ w.messages <- types.Ack{
Message: types.RespondTo(msg),
}
default:
- w.messages <- &types.Unsupported{
+ w.messages <- types.Unsupported{
Message: types.RespondTo(_msg),
}
}
@@ -49,7 +49,7 @@ func (w *IMAPWorker) Run() {
for {
select {
case msg := <-w.actions:
- fmt.Printf("<= %T: %+v\n", msg, msg)
+ fmt.Printf("<= %T\n", msg)
w.handleMessage(msg)
default:
// no-op