1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-11-25 00:54:48 +01:00
aerc/worker
Simon Martin cc91915550 imap: add option to get go-imap to emit and store its own logs
I thought several times in the past that it'd be great to see how
go-imap and a given IMAP server interact, and it turns out that there's
a easy way to do it. This patch adds an option to control this.

I have validated that this logging works fine when the target path
exists and is writable to, and that we simply ignore the option
otherwise, logging something like:
  TRACE 2025/11/21 14:49:41.924753 connect.go:127: [ProtonMail] Not
  logging IMAP debug logs: open ./idontexist/imap_debug_ProtonMail.log:
  no such file or directory

Signed-off-by: Simon Martin <simon@nasilyan.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2025-11-23 14:49:16 +01:00
..
handlers watchers: move filesystem monitoring stuff in lib 2023-08-04 11:32:40 +02:00
imap imap: add option to get go-imap to emit and store its own logs 2025-11-23 14:49:16 +01:00
jmap jmap: skip Email/get request if there are no emails to fetch 2025-11-17 09:53:18 +01:00
lib treewide: replace interface{} with any 2025-04-07 10:51:05 +02:00
maildir maildir: add missing detection of all new messages on startup 2025-10-30 21:10:49 +01:00
mbox chore: switch to using stdlib helper functions 2025-08-04 12:47:05 +02:00
middleware foldermap: map directory in Messages{Moved,Copied} and RemoveDirectory 2025-03-30 21:31:28 +02:00
notmuch mod: update go-maildir 2025-05-25 19:05:07 +02:00
types worker: fix race condition 2025-09-23 14:09:25 +02:00
handler_notmuch.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
worker.go aerc: use single event loop 2022-10-07 10:51:53 +02:00
worker_enabled.go watchers: move filesystem monitoring stuff in lib 2023-08-04 11:32:40 +02:00