diff options
Diffstat (limited to 'alps-fix-156.patch')
-rw-r--r-- | alps-fix-156.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/alps-fix-156.patch b/alps-fix-156.patch deleted file mode 100644 index 9172f9847b08..000000000000 --- a/alps-fix-156.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- a/plugins/base/imap.go 2022-05-08 10:19:23.329157653 +0200 -+++ b/plugins/base/imap.go 2022-05-08 10:23:38.878395784 +0200 -@@ -530,14 +530,23 @@ - } - - ch := make(chan *imap.Message, 1) -- if err := conn.UidFetch(seqSet, fetch, ch); err != nil { -- return nil, nil, fmt.Errorf("failed to fetch message: %v", err) -- } -+ done := make(chan error, 1) -+ go func() { -+ done <- conn.UidFetch(seqSet, fetch, ch) -+ }() - -+ // There may be multiple FETCH data responses. -+ // Keep the first message and discard the rest. - msg := <-ch - if msg == nil { - return nil, nil, fmt.Errorf("server didn't return message") - } -+ for range ch { -+ } -+ -+ if err := <-done; err != nil { -+ return nil, nil, fmt.Errorf("failed to fetch message: %v", err) -+ } - - body := msg.GetBody(&partHeaderSection) - if body == nil { |