File: keep-from-header-intact.patch

package info (click to toggle)
ssmtp 2.64-13
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 968 kB
  • sloc: ansic: 2,035; sh: 484; makefile: 104
file content (22 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Keep From: header intact
 This patch changes the behaviour of ssmtp when FromLineOverride=NO
 to not modify the "From:" header.  This allows forwarded emails to
 have the correct envelope sender as well as retaining the original
 "From:" header.
Author: <herbert@gondor.apana.org.au>
Bug-Debian: https://bugs.debian.org/939298

diff --git a/ssmtp.c b/ssmtp.c
index 6b2b9d0..dbb1437 100644
--- a/ssmtp.c
+++ b/ssmtp.c
@@ -701,9 +701,6 @@ void header_save(char *str)
 		if(override_from == True) {
 			uad = from_strip(ht->string);
 		}
-		else {
-			return;
-		}
 #endif
 		have_from = True;
 	}