~shawnanastasio


#127 panic: runtime error: index out of range in handleFetchMessages 3 months ago

Ticket created by ~shawnanastasio on ~sircmpwn/aerc2

When opening a message after switching folders, aerc sometimes crashes and the following is printed:

panic: runtime error: index out of range                                             
                                                                                     
                                        goroutine 230 [running]:                     
                                                                git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessages.func1(0xc00060a2a0, 0xc0001d41c0, 0x1049d1a0, 0xc0003fce00, 0xc00000c180, 0xc00060a300)                                 
                                                        /home/shawnanastasio/opt/aerc/worker/imap/fetch.go:54 +0x494                                                      
                               created by git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessages                                                          
                                /home/shawnanastasio/opt/aerc/worker/imap/fetch.go:52 +0xa0