mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
ssmtp: maintenance update
remove needless dead.letter function (at least on embedded devices) backport debian fixes (slightly modified) compile tested. Please apply to upstream - thank you! Signed-off-by: Dirk Brenken <dirk@brenken.org>
This commit is contained in:
18
mail/ssmtp/patches/008-remove_garbage.patch
Normal file
18
mail/ssmtp/patches/008-remove_garbage.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- a/ssmtp.c
|
||||
+++ b/ssmtp.c
|
||||
@@ -1591,12 +1591,12 @@ int ssmtp(char *argv[])
|
||||
outbytes += smtp_write(sock, "%s", leadingdot ? b : buf);
|
||||
} else {
|
||||
if (log_level > 0) {
|
||||
- log_event(LOG_INFO, "Sent a very long line in chunks");
|
||||
+ log_event(LOG_INFO, "Sending a partial line");
|
||||
}
|
||||
if (leadingdot) {
|
||||
- outbytes += fd_puts(sock, b, sizeof(b));
|
||||
+ outbytes += fd_puts(sock, b, strlen(b));
|
||||
} else {
|
||||
- outbytes += fd_puts(sock, buf, bufsize);
|
||||
+ outbytes += fd_puts(sock, buf, strlen(buf));
|
||||
}
|
||||
}
|
||||
(void)alarm((unsigned) MEDWAIT);
|
||||
Reference in New Issue
Block a user