Skip to content

Conversation

@fcuenca4
Copy link

@fcuenca4 fcuenca4 commented Apr 29, 2025

rebased from upstream repo https://github.com/emersion/go-message/

emersion and others added 30 commits February 13, 2023 14:06
Introduced by mistake in the previous commit:

    ./multipart.go:103:3: h declared and not used
The GitHub UI already displays that information.
As-is, extending PartHeader is a breaking change, and we only want
to allow two variants.
…sion#187)

Without the recent change of line wrapper implementation, this test is
failing. There seem to be line breaks inserted in the middle of the
body:

```diff
--- /tmp/go-message-orig-194495186.txt
+++ /tmp/go-message-after-83245617.txt
@@ -37,7 +37,8 @@
  	if c.editor == nil {
  		return
  	}
-@@ -1205,7 +1213,7 @@ func (c *Composer) termClosed(err error) {
+@@ -1205,7 +1
+213,7 @@ func (c *Composer) termClosed(err error) {
  		PushError("Failed to reopen email file: " + e.Error())
  	}
  	editor := c.editor
@@ -70,7 +71,8 @@
 +					PushError(err.Error())
 +				})
  			}
- 			return
+ 			return
+
  		}
 --
 2.47.1
```

References: emersion@c2ff70fd20da09d40ba
References: emersion@6a718fa6214f9f35d33
Signed-off-by: Robin Jarry <[email protected]>
The doc incorrectly stated that the method requires the argument to have a comma character. Instead, it requires a colon.
fix: removed the "[, ]" brackets to parse email header where Message-ID: <[[email protected]]>.
According to RFC 5322 3.2.3 it is a special character and special characters do not appear in atext.
But we've found some email examples, those email contains the special character in Message-ID header.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants