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>
This commit is contained in:
Robin Jarry 2022-07-19 10:08:03 +02:00
parent b8bb2a6ac1
commit b188f19131

View file

@ -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
}