]> Sergey Matveev's repositories - sgblog.git/blobdiff - cmd/sgblog-comment-add/mail.go
Raise copyright years
[sgblog.git] / cmd / sgblog-comment-add / mail.go
index 7b804c19d61d63ae28a29ca09f76f18c3e3cbc95..2a8bf45b3e03c16803a5e973645a289835ef80e8 100644 (file)
@@ -1,6 +1,6 @@
 /*
-SGBlog -- Git-backed CGI/inetd blogging/phlogging engine
-Copyright (C) 2020-2021 Sergey Matveev <stargrave@stargrave.org>
+SGBlog -- Git-backed CGI/UCSPI blogging/phlogging/gemlogging engine
+Copyright (C) 2020-2023 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as
@@ -22,7 +22,6 @@ import (
        "encoding/base64"
        "errors"
        "io"
-       "io/ioutil"
        "mime"
        "mime/multipart"
        "mime/quotedprintable"
@@ -84,7 +83,7 @@ func parseEmail(msg *mail.Message) (subj string, body io.Reader, err error) {
                err = errors.New("no boundary string")
                return
        }
-       data, err := ioutil.ReadAll(msg.Body)
+       data, err := io.ReadAll(msg.Body)
        if err != nil {
                return
        }