~sircmpwn/aerc2#366: 
aerc crashes when displaying an email encrypted for someone else's key

A friend of mine just sent me an email and trying to display it caused aerc to crash with the stack trace below. It wasn't until I tried to open it on mobile that I realised exactly why; OpenKeychain said K-9 was requested my friend's key, not mine.

❯ aerc
panic: pgpmail: failed to read PGP message: openpgp: incorrect key

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/lib.NewMessageStoreView.func1(0x55a74e0727a0, 0xc000494f60)
        /home/amolith/repos/aerc/lib/messageview.go:71 +0x2c9
git.sr.ht/~sircmpwn/aerc/lib.(*MessageStore).Update(0xc0000ac3c0, 0x55a74e07e6a0, 0xc0004ae8c0)
        /home/amolith/repos/aerc/lib/msgstore.go:236 +0xa6a
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountView).onMessage(0xc00020b570, 0x55a74e07e6a0, 0xc0004ae8c0)
        /home/amolith/repos/aerc/widgets/account.go:265 +0x4ff
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountView).Tick(0xc00020b570, 0xc000210e00)
        /home/amolith/repos/aerc/widgets/account.go:104 +0xa3
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Tick(0xc00012c4d0, 0xc000296100)
        /home/amolith/repos/aerc/widgets/aerc.go:128 +0x93
main.main()
        /home/amolith/repos/aerc/aerc.go:185 +0x630
Status
REPORTED
Submitter
~amolith
Assigned to
No-one
Submitted
2 months ago
Updated
a month ago
Labels
No labels applied.

~reedwade a month ago

Got a similar case

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/lib.NewMessageStoreView.func1(0xc0001dc960)
    /media/reed/data2/home/reed/workspace/aerc/lib/messageview.go:73 +0x2f0
git.sr.ht/~sircmpwn/aerc/lib.(*MessageStore).Update(0xc00073c280, 0xaf8d00, 0xc0001dc960)
    /media/reed/data2/home/reed/workspace/aerc/lib/msgstore.go:236 +0xa54
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountView).onMessage(0xc0002ee5b0, 0xaf8d00, 0xc0001dc960)
    /media/reed/data2/home/reed/workspace/aerc/widgets/account.go:269 +0x4fd
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountView).Tick(0xc0002ee5b0, 0xc000289800)
    /media/reed/data2/home/reed/workspace/aerc/widgets/account.go:104 +0xa1
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Tick(0xc0002a0160, 0xc0001de000)
    /media/reed/data2/home/reed/workspace/aerc/widgets/aerc.go:134 +0x91
main.main()
    /media/reed/data2/home/reed/workspace/aerc/aerc.go:185 +0x62e

It seems there are some works with openpgp in aerc but I can't find any config or anything. How should we use it ?

Register here or Log in to comment, or comment via email.