| 1 |
From: Ahmad Khalifa <[email protected]> |
| 2 |
Date: Mon, 27 Apr 2026 16:25:38 +0800 |
| 3 |
Subject: Upgrade api for emersion to debian version |
| 4 |
|
| 5 |
Forwarded: not-needed |
| 6 |
Last-Update: 2024-12-13 |
| 7 |
|
| 8 |
Upstream pinned golang-github-emersion-go-smtp-dev version to v.1.17.0 |
| 9 |
which is much lower than what debian has. |
| 10 |
|
| 11 |
Not forwarding the patch as it causes changes in test behaviour where |
| 12 |
the application is still usable, but upstream may require passing tests. |
| 13 |
--- |
| 14 |
server/smtp_server.go | 2 +- |
| 15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 |
|
| 17 |
diff --git a/server/smtp_server.go b/server/smtp_server.go |
| 18 |
index 055146b..db35a39 100644 |
| 19 |
--- a/server/smtp_server.go |
| 20 |
+++ b/server/smtp_server.go |
| 21 |
@@ -95,7 +95,7 @@ func (s *smtpSession) Mail(from string, opts *smtp.MailOptions) error { |
| 22 |
return nil |
| 23 |
} |
| 24 |
|
| 25 |
-func (s *smtpSession) Rcpt(to string) error { |
| 26 |
+func (s *smtpSession) Rcpt(to string, opts *smtp.RcptOptions) error { |
| 27 |
logem(s.conn).Field("smtp_rcpt_to", to).Debug("RCPT TO: %s", to) |
| 28 |
return s.withFailCount(func() error { |
| 29 |
token := "" |