diff --git a/webmail/api.go b/webmail/api.go index c5adb83..9e450b3 100644 --- a/webmail/api.go +++ b/webmail/api.go @@ -391,7 +391,7 @@ func (w Webmail) MessageSubmit(ctx context.Context, m SubmitMessage) { if v != "" && linelen+1+len(s) > 77 { v += "\r\n\t" linelen = 1 - } else { + } else if v != "" { v += " " linelen++ }