Package: ssmtp
Version: 2.64

How to reproduce:

1. set the config-option:
FromLineOverride=YES

2. Send an meail with the header:
FROM: u...@domain.com


Expected result:

The emails return-path should be <u...@domain.com>


Real Result:

The emails return-path is <"FROM:user"@domain.com>

Patch:

---------------------
--- ssmtp-2.64/ssmtp.c  2009-11-23 10:55:11.000000000 +0100
+++ ssmtp.c     2013-10-30 13:43:30.000000000 +0100
@@ -433,7 +433,7 @@
        (void)fprintf(stderr, "*** from_strip(): str = [%s]\n", str);
 #endif

-       if(strncmp("From:", str, 5) == 0) {
+       if(strncasecmp("From:", str, 5) == 0) {
                str += 5;
        }
----------------------

Notice:

I'm not running debian, compiled the package from:
http://ftp.se.debian.org/debian/pool/main/s/ssmtp/ssmtp_2.64.orig.tar.bz2

Reply via email to