~sircmpwn/aerc

update go-imap v1 PROPOSED

y0ast: 1
 update go-imap

 2 files changed, 3 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/14308/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] update go-imap Export this patch

---
This fixes the problem that when the header contains
"undisclosed-recipients:;". This gets parsed by go-imap as
"<undisclosed-recipients@>, <@>". If we do reply all, aerc adds
these malformed emails to the To: field.

The problem is resolved by patching go-imap upstream and is a much nicer
solution than https://lists.sr.ht/~sircmpwn/aerc/patches/12209.

 go.mod | 2 +-
 go.sum | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/go.mod b/go.mod
index f5b0ba5..d0da13e 100644
--- a/go.mod
+++ b/go.mod
@@ -7,7 +7,7 @@ require (
	github.com/creack/pty v1.1.10
	github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964
	github.com/ddevault/go-libvterm v0.0.0-20190526194226-b7d861da3810
	github.com/emersion/go-imap v1.0.6-0.20200914131512-88f167c1e6f7
	github.com/emersion/go-imap v1.0.6-0.20201014170015-5a03a09eba6d
	github.com/emersion/go-imap-idle v0.0.0-20190519112320-2704abd7050e
	github.com/emersion/go-imap-sortthread v1.1.0
	github.com/emersion/go-maildir v0.2.0
diff --git a/go.sum b/go.sum
index 68171a1..402fa74 100644
--- a/go.sum
+++ b/go.sum
@@ -18,6 +18,8 @@ github.com/ddevault/go-libvterm v0.0.0-20190526194226-b7d861da3810/go.mod h1:Ow1
github.com/emersion/go-imap v1.0.0/go.mod h1:MEiDDwwQFcZ+L45Pa68jNGv0qU9kbW+SJzwDpvSfX1s=
github.com/emersion/go-imap v1.0.6-0.20200914131512-88f167c1e6f7 h1:MemZhXjDIzBGeBcSddtW+YYdzInMrQW2BOWOIujO9F4=
github.com/emersion/go-imap v1.0.6-0.20200914131512-88f167c1e6f7/go.mod h1:yKASt+C3ZiDAiCSssxg9caIckWF/JG7ZQTO7GAmvicU=
github.com/emersion/go-imap v1.0.6-0.20201014170015-5a03a09eba6d h1:5Apg41zfaqwc3zqHlNTKWocu1nu69beRd61NQatGSS0=
github.com/emersion/go-imap v1.0.6-0.20201014170015-5a03a09eba6d/go.mod h1:yKASt+C3ZiDAiCSssxg9caIckWF/JG7ZQTO7GAmvicU=
github.com/emersion/go-imap-idle v0.0.0-20190519112320-2704abd7050e h1:L7bswVJZcf2YHofgom49oFRwVqmBj/qZqDy9/SJpZMY=
github.com/emersion/go-imap-idle v0.0.0-20190519112320-2704abd7050e/go.mod h1:o14zPKCmEH5WC1vU5SdPoZGgNvQx7zzKSnxPQlobo78=
github.com/emersion/go-imap-sortthread v1.1.0 h1:uRbmnQkeRny5ihKfLWBPJ/1jJdTZnCdh1zYpOagbubw=
-- 
2.28.0
Merged, thanks.
Please do run `go mod tidy` next time if you update dependencies though.
For now, I did it for you.

Cheers,
Reto