Launchpad encodes eMail Subject wrong
I just got an eMail with:
Subject: =?utf-8?
This obviously violates the usual RFCs. I suspect the underlying cause is https:/
For reference, here is how I encode the Subject header from a shell script (git post-receive hook):
' 2>/dev/null) || error-handling
This is for the Korn shell; for nōn-Korn shells, replace “print -nr -- "Subject: $subj"” with “printf 'Subject: %s' "$subj"”. For Python/py3k, you’d obviously just write the header to encode into the subprocess’ stdin.
Oh, and the “"\012"” is so the output has Unix line endings, for consistency with the rest; these are converted to CRLF later in my script, by the MSA. Use “"\015\012"” if you need it with CRLF right there.
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: