summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-07-19 10:08:03 +0200
committerRobin Jarry <robin@jarry.cc>2022-07-23 22:37:08 +0200
commitb188f191313b838f74a1c4b09b58b0ccd1076287 (patch)
tree6c38b005de6480c7234e07c2c3cace640f40123e
parentb8bb2a6ac115d8cfbb2bbe2517831278740fcf75 (diff)
downloadaerc-b188f191313b838f74a1c4b09b58b0ccd1076287.zip
imap: disable debug logger
This causes all raw email bodies to be dumped along with actual debugging messages. I don't believe we neither need nor want such a thing. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
-rw-r--r--worker/imap/connect.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/worker/imap/connect.go b/worker/imap/connect.go
index 9cc394b..2581c6d 100644
--- a/worker/imap/connect.go
+++ b/worker/imap/connect.go
@@ -85,8 +85,6 @@ func (w *IMAPWorker) connect() (*client.Client, error) {
}
}
- c.SetDebug(w.worker.Logger.Writer())
-
if _, err := c.Select(imap.InboxName, false); err != nil {
return nil, err
}