all repos — navani @ 2928def670071abf79a9dd21ecbaa532149405f4

forlater's primary mail processing service

Remove commented out code
Anirudh Oppiliappan x@icyphox.sh
Thu, 14 Oct 2021 21:25:10 +0530
commit

2928def670071abf79a9dd21ecbaa532149405f4

parent

b9e318987ea1da4422e9d5e1ce0bf72ee361a93d

1 files changed, 0 insertions(+), 10 deletions(-)

jump to
M main.gomain.go

@@ -37,16 +37,6 @@ if err != nil {

log.Printf("reader fetch: %v\n", err) } - // if resp.MIMEType != "text/html" { - // err = mail.SendAttachment(resp, m.From, u) - // if err != nil { - // log.Printf("error sending attachment to: %s: %v\n", m.From, err) - // } else { - // log.Printf("sent attachment to %s: %s\n", m.From, resp.MIMEType) - // } - // break - // } - article, err := reader.Readable(resp.Body, parsedURL) if (err == nil) && (resp.MIMEType == "text/html") { err = mail.SendArticle(&article, m.From, true)