mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
chore: tidy up before merge
This commit is contained in:
@ -91,7 +91,6 @@ func Parse(r io.Reader, key, keyName string) (m *pmapi.Message, mimeBody, plainB
|
|||||||
func convertForeignEncodings(p *parser.Parser) error {
|
func convertForeignEncodings(p *parser.Parser) error {
|
||||||
logrus.Debug("Converting foreign encodings")
|
logrus.Debug("Converting foreign encodings")
|
||||||
|
|
||||||
// HELP: Is it correct to only do this to text types?
|
|
||||||
return p.NewWalker().
|
return p.NewWalker().
|
||||||
RegisterContentTypeHandler("text/html", func(p *parser.Part) error {
|
RegisterContentTypeHandler("text/html", func(p *parser.Part) error {
|
||||||
if err := p.ConvertToUTF8(); err != nil {
|
if err := p.ConvertToUTF8(); err != nil {
|
||||||
|
|||||||
@ -222,8 +222,6 @@ Feature: SMTP sending of plain messages
|
|||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# HELP: This is strange... why do we want this behaviour?
|
|
||||||
@ignore
|
|
||||||
Scenario: Message without charset and content is detected as HTML
|
Scenario: Message without charset and content is detected as HTML
|
||||||
When SMTP client sends message
|
When SMTP client sends message
|
||||||
"""
|
"""
|
||||||
@ -254,7 +252,7 @@ Feature: SMTP sending of plain messages
|
|||||||
],
|
],
|
||||||
"CCList": [],
|
"CCList": [],
|
||||||
"BCCList": [],
|
"BCCList": [],
|
||||||
"MIMEType": "text/html"
|
"MIMEType": "text/plain"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user