diff options
Diffstat (limited to 'worker/imap/list.go')
-rw-r--r-- | worker/imap/list.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/worker/imap/list.go b/worker/imap/list.go index 25c247a2..026aa9a7 100644 --- a/worker/imap/list.go +++ b/worker/imap/list.go @@ -3,6 +3,7 @@ package imap import ( "github.com/emersion/go-imap" + "git.sr.ht/~rjarry/aerc/logging" "git.sr.ht/~rjarry/aerc/models" "git.sr.ht/~rjarry/aerc/worker/types" ) @@ -13,6 +14,8 @@ func (imapw *IMAPWorker) handleListDirectories(msg *types.ListDirectories) { done := make(chan interface{}) go func() { + defer logging.PanicHandler() + for mbox := range mailboxes { if !canOpen(mbox) { // no need to pass this to handlers if it can't be opened |