mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 08:23:48 +03:00
add Content-Type header to message delivered for new mox releases
at least the android gmail/mail app doesn't show messages without content-type header. i believe missing content-type is meant to be interpreted as text/plain, but doesn't hurt to be explicit.
This commit is contained in:
parent
7f1b7198a8
commit
700118dbd2
1 changed files with 1 additions and 1 deletions
2
serve.go
2
serve.go
|
@ -305,7 +305,7 @@ requested, other TLS certificates are requested on demand.
|
|||
Received: time.Now(),
|
||||
Flags: store.Flags{Flagged: true},
|
||||
}
|
||||
n, err := fmt.Fprintf(f, "Date: %s\r\nSubject: mox %s available\r\n\r\nHi!\r\n\r\nVersion %s of mox is available, this install is at %s.\r\n\r\nChanges:\r\n\r\n%s\r\n\r\nRemember to make a backup with \"mox backup\" before upgrading.\r\nPlease report any issues at https://github.com/mjl-/mox, thanks!\r\n\r\nCheers,\r\nmox\r\n", time.Now().Format(message.RFC5322Z), latest, latest, current, strings.ReplaceAll(cl, "\n", "\r\n"))
|
||||
n, err := fmt.Fprintf(f, "Date: %s\r\nSubject: mox %s available\r\nContent-Type: text/plain; charset=utf-8\r\nContent-Transfer-Encoding: 8-bit\r\n\r\nHi!\r\n\r\nVersion %s of mox is available, this install is at %s.\r\n\r\nChanges:\r\n\r\n%s\r\n\r\nRemember to make a backup with \"mox backup\" before upgrading.\r\nPlease report any issues at https://github.com/mjl-/mox, thanks!\r\n\r\nCheers,\r\nmox\r\n", time.Now().Format(message.RFC5322Z), latest, latest, current, strings.ReplaceAll(cl, "\n", "\r\n"))
|
||||
if err != nil {
|
||||
log.Infox("writing temporary message file for changelog delivery", err)
|
||||
return next
|
||||
|
|
Loading…
Reference in a new issue