mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 08:23:48 +03:00
in "changes" email for new releases, put the "---" separator on its own line, and remove duplicate word in first sentence...
This commit is contained in:
parent
142b2498bf
commit
590ed0b81d
1 changed files with 2 additions and 2 deletions
4
serve.go
4
serve.go
|
@ -270,7 +270,7 @@ requested, other TLS certificates are requested on demand.
|
|||
|
||||
var cl string
|
||||
for _, c := range changelog.Changes {
|
||||
cl += "----\n\n" + strings.TrimSpace(c.Text)
|
||||
cl += "----\n\n" + strings.TrimSpace(c.Text) + "\n\n"
|
||||
}
|
||||
cl += "----"
|
||||
|
||||
|
@ -297,7 +297,7 @@ requested, other TLS certificates are requested on demand.
|
|||
}
|
||||
}()
|
||||
m := &store.Message{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 is 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\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