[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#956883: marked as done (ITP: golang-github-emersion-go-smtp -- :outbox_tray: An SMTP client & server library written in Go)



Your message dated Sat, 18 Apr 2020 18:00:11 +0000
with message-id <E1jPrlD-000CZm-8o@fasolo.debian.org>
and subject line Bug#956883: fixed in golang-github-emersion-go-smtp 0.11.2-1
has caused the Debian Bug report #956883,
regarding ITP: golang-github-emersion-go-smtp -- :outbox_tray: An SMTP client & server library written in Go
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
956883: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956883
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: wnpp
Severity: wishlist
Owner: suman <suman@protonmail.com>

* Package name    : golang-github-emersion-go-smtp
  Version         : 0.11.2-1
  Upstream Author : Simon Ser
* URL             : https://github.com/emersion/go-smtp
* License         : Expat
  Programming Lang: Go
  Description     : :outbox_tray: An SMTP client & server library written in Go

 go-smtp GoDoc (https://godoc.org/github.com/emersion/go-smtp)
 builds.sr.ht status (https://builds.sr.ht/~emersion/go-smtp?)  codecov
 (https://codecov.io/gh/emersion/go-smtp)
 .
 An ESMTP client and server library written in Go.
 Features• ESMTP client & server implementing RFC 5321
 (https://tools.ietf.org/html/rfc5321)• Support for SMTP
 AUTH (https://tools.ietf.org/html/rfc4954) and PIPELINING
 (https://tools.ietf.org/html/rfc2920)• UTF-8 support for subject and
 message• LMTP (https://tools.ietf.org/html/rfc2033) supportUsageClient
 ```go package main
 .
 import (
     "log" "strings"
 "github.com/emersion/go-sasl" "github.com/emersion/go-smtp"
 .
 )
 .
 func main() {
     // Set up authentication information.  auth := sasl.NewPlainClient("",
     "user@example.com", "password")
 // Connect to the server, authenticate, set the sender and
 recipient, // and send the email all in one step.  to :=
 []string{"recipient@example.net"} msg := strings.NewReader("To:
 recipient@example.net\r\n" +
     "Subject: discount Gophers!\r\n" + "\r\n" + "This is the email
     body.\r\n")
 err := smtp.SendMail("mail.example.com:25", auth, "sender@example.org",
 to, msg) if err != nil {
     log.Fatal(err)
 }
 .
 } ```
 .
 If you need more control, you can use Client instead.  Server ```go
 package main
 .
 import (
     "errors" "io" "io/ioutil" "log" "time"
 "github.com/emersion/go-smtp"
 .
 )
 .
 // The Backend implements SMTP server methods.  type Backend struct{}
 .
 // Login handles a login command with username and password.  func (bkd
 *Backend) Login(state *smtp.ConnectionState, username, password string)
 (smtp.Session, error) {
     if username != "username" || password != "password" {
         return nil, errors.New("Invalid username or password")
     } return &Session{}, nil
 }
 .
 // AnonymousLogin requires clients to authenticate using SMTP AUTH
 before sending emails func (bkd *Backend) AnonymousLogin(state
 *smtp.ConnectionState) (smtp.Session, error) {
     return nil, smtp.ErrAuthRequired
 }
 .
 // A Session is returned after successful login.  type Session struct{}
 .
 func (s *Session) Mail(from string, opts smtp.MailOptions) error {
     log.Println("Mail from:", from) return nil
 }
 .
 func (s *Session) Rcpt(to string) error {
     log.Println("Rcpt to:", to) return nil
 }
 .
 func (s *Session) Data(r io.Reader) error {
     if b, err := ioutil.ReadAll(r); err != nil {
         return err
     } else {
         log.Println("Data:", string(b))
     } return nil
 }
 .
 func (s *Session) Reset() {}
 .
 func (s *Session) Logout() error {
     return nil
 }
 .
 func main() {
     be := &Backend{}
 s := smtp.NewServer(be)
 .
 s.Addr = ":1025" s.Domain = "localhost" s.ReadTimeout = 10 * time.Second
 s.WriteTimeout = 10 * time.Second s.MaxMessageBytes = 1024 * 1024
 s.MaxRecipients = 50 s.AllowInsecureAuth = true
 .
 log.Println("Starting server at", s.Addr) if err := s.ListenAndServe();
 err != nil {
     log.Fatal(err)
 }
 .
 } ```
 .
 You can use the server manually with telnet:
 .
 $ telnet localhost 1025 EHLO localhost AUTH PLAIN AHVzZXJuYW1lAHBhc3N3b3Jk
 MAIL FROM:<root@nsa.gov> RCPT TO:<root@gchq.gov.uk> DATA Hey <3 .
 .
 Relationship with net/smtp The Go standard library provides a SMTP client
 implementation in net/smtp.  However net/smtp is frozen: it's not getting
 any new features. go-smtp provides a server implementation and a number
 of client improvements.

--- End Message ---
--- Begin Message ---
Source: golang-github-emersion-go-smtp
Source-Version: 0.11.2-1
Done: suman <suman@protonmail.com>

We believe that the bug you reported is fixed in the latest version of
golang-github-emersion-go-smtp, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 956883@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
suman <suman@protonmail.com> (supplier of updated golang-github-emersion-go-smtp package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 16 Apr 2020 17:24:03 +0530
Source: golang-github-emersion-go-smtp
Binary: golang-github-emersion-go-smtp-dev
Architecture: source all
Version: 0.11.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Changed-By: suman <suman@protonmail.com>
Description:
 golang-github-emersion-go-smtp-dev - ESMTP client & server library written in Go (library)
Closes: 956883
Changes:
 golang-github-emersion-go-smtp (0.11.2-1) unstable; urgency=medium
 .
   * Initial release (Closes: #956883)
Checksums-Sha1:
 36c3ade6ef7c6cbdc48bc591b824a39792db7985 2294 golang-github-emersion-go-smtp_0.11.2-1.dsc
 a236a15e6efa53ef643b7cf9fcca23496ced1f46 24309 golang-github-emersion-go-smtp_0.11.2.orig.tar.gz
 1dd1c7521916e1cc7be33be92f8a7dc5f85dff46 2608 golang-github-emersion-go-smtp_0.11.2-1.debian.tar.xz
 090a662e2a2e7b1b5e5bcdb8013afc7b6a333720 21356 golang-github-emersion-go-smtp-dev_0.11.2-1_all.deb
 314e1aa41e62601c57d69e95e4fe2b54df387ac5 5923 golang-github-emersion-go-smtp_0.11.2-1_amd64.buildinfo
Checksums-Sha256:
 39dd901d8734a479d6f2348376f29a29383511719d48cdfa5fad8e98d53f9013 2294 golang-github-emersion-go-smtp_0.11.2-1.dsc
 8ff2245d939e20d284e2db3060b75dc9fde7eff6b59a47c0c81f7dd7ed5f965f 24309 golang-github-emersion-go-smtp_0.11.2.orig.tar.gz
 b2fa0d53e548f7329082ad5dcd37893fa67643466a99e9ddf522aa9ce6e83235 2608 golang-github-emersion-go-smtp_0.11.2-1.debian.tar.xz
 8fab8efac688994790cd9e4e2400b3418a5f21e5aafabc48ee2e73be3d59563a 21356 golang-github-emersion-go-smtp-dev_0.11.2-1_all.deb
 a588b68933d7949179eef5d10522f410f206003af42436e56f4dd2beb2650ca8 5923 golang-github-emersion-go-smtp_0.11.2-1_amd64.buildinfo
Files:
 25898c9e87e0b66aaf4260aee59535cf 2294 devel optional golang-github-emersion-go-smtp_0.11.2-1.dsc
 f3210a7d7deff2e9fe55829376fc0694 24309 devel optional golang-github-emersion-go-smtp_0.11.2.orig.tar.gz
 b2cb4584923b70cd03997a35812121ae 2608 devel optional golang-github-emersion-go-smtp_0.11.2-1.debian.tar.xz
 78698617b2d9820fe5f3072d115993ce 21356 devel optional golang-github-emersion-go-smtp-dev_0.11.2-1_all.deb
 cee288a5acbf7d1b4e2e9ae116da1f60 5923 devel optional golang-github-emersion-go-smtp_0.11.2-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0whj4mAg5UP0cZqDj1PgGTspS3UFAl6ZyyAACgkQj1PgGTsp
S3VJ2hAAiznJnv3Hsi7pke2dAK4On62u8jsJbAP+mrBW5AngzGNAusPgc7lGZ1sL
5+keCFqLl/0QbkgcMH2fZj0ibCa1Dq5aBa3ZJ3VGRMqLqcDvy/LcoWL+Re/OeLU1
ddYKoyuwqj2VhHCPsu7W6le8+E1oZuvaxj1avsAKQWZNShyo73AkMBZFZ2xOn1xi
+kMLV2X8UjaT/ajNPLBOx1xNneOi3Ouj3VKRGLIOXNZJ/7npw1aQ7fTgMlaXr+0B
rCKvKWG03DbCAY7ZjTii1G597OQseK5vVp6n7vZNpRYqSspVN3fRF4FpS2EDHtKh
80rL6TmCZ8ifXY90w6FNGJ3lIGjEOn2ndmrycXQGPhA3SRXR2NNPDFEFAjdaUTHh
UYdQaz6QgRq0pMt0blIGUReNOYgzAa4gLW8+Zl8kvmnsElE4+Ahkd63kseZfG85m
0Fgk1bNZm7za9oA6yaP+d90dDA1iSL+NvSbAFwZa6cOBh3TBvJ795wAXlSH6E03E
IU5fPpPHJmCh6jKYXWa2A1OTkqMyeoThVaTkcV5y7wB+AECX8U9iugbWxfop3alW
iYF+qhRd9b17PHp5bLIeaoNf9JHkFoQ0l3p/bSs5DQm6YAF7htsHT6vmhZ+2Zw5H
sKulFnwIvDlzSxpuKzwiJxSZtpKMtDEMsUy7rI+M+Gcd15VeBqk=
=DeZW
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: