~emersion/public-inbox

go-maildir: Handle mail files with no separator v1 APPLIED

Ben Burwell: 1
 Handle mail files with no separator

 1 files changed, 1 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/~emersion/public-inbox/patches/9348/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH go-maildir] Handle mail files with no separator Export this patch

---
See https://todo.sr.ht/~sircmpwn/aerc2/323 for context.

 maildir.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maildir.go b/maildir.go
index d68f478..33453be 100644
--- a/maildir.go
+++ b/maildir.go
@@ -230,7 +230,7 @@ func (d Dir) Flags(key string) ([]Flag, error) {
		return r == separator
	})
	switch {
	case len(split) == 1:
	case len(split) <= 1:
		return nil, &MailfileError{filename}
	case len(split[1]) < 2,
		split[1][1] != ',':
-- 
2.24.1
Pushed:

To github.com:emersion/go-maildir.git
   00590b34339e..14e25d3ea720  master -> master

Thanks!