Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282907 - Stabilize =mail-mta/ssmtp-2.62-r7
Summary: Stabilize =mail-mta/ssmtp-2.62-r7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2009-08-27 13:44 UTC by isaac
Modified: 2009-12-09 19:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix, uninitialized variable (from_format_fix.path,543 bytes, text/plain)
2009-09-11 10:10 UTC, damage
Details

Note You need to log in before you can comment on or make changes to this bug.
Description isaac 2009-08-27 13:44:58 UTC
When upgrading from ssmtp-2.62-r4 to ssmtp-2.62-r6, the message format is changed and this breaks the proper reading of the From: and Subject lines and the message body.

Reproducible: Always

Steps to Reproduce:
1. Upgrade to ssmtp-2.62-r6 and configure connection to an SMTP server
2. Pipe a message to ssmtp with To: and Subject: lines at the beginning of the message
3. View the sent email in raw format

Actual Results:  
From: is an optional port number that defaults to 25.
Message-ID: <xxxxxx@store72m.internal>
Date: Thu, 27 Aug 2009 09:11:38 -0400

Date: Thu, 27 Aug 2009 08:23:23 -0500
To: my@email.dom
Subject: Calendar
This is the message body


Expected Results:  
From: myemail@email.dom
Date: Thu, 27 Aug 2009 08:28:39 -0500
To: my@email.dom
Subject: Calendar
Message-ID: <xxxxxxxx@store72m.internal>

This is the message body


Piped message to ssmtp looks like this:
To: my@email.dom
Subject: calendar
This is the message body
.
Comment 1 Enchant 2009-09-07 11:57:23 UTC
I confirm this bug.

For me if in user name (system login) consist symbol dot (example: test.org) then header FROM cutted to some symbols.

Example: I send pipe message to ssmtp under system user test.ru:

>>
test.ru@dev-hosts ~ $ echo "test meaasge" | sendmail xxxx@server.org
<<

and got messege with broken head FROM:

>>
From: e.ru
Date: Mon, 07 Sep 2009 15:49:54 +0400
Message-Id: <E1MkcjK-0001tW-4o@xxx.ru>

test meaasge
<<

Head From cutted to string "e.ru".
Comment 2 damage 2009-09-11 10:09:25 UTC
Hi,
I think that is the problem I have created a fix for.

The Problem exists if a user from which you are sending a mail has no Real Name in /etc/passwd and if FromLineOverride=No (which is default).

The problem is a uninitialized variable. Please see my patch and tell if it is working for you.

greez
Daniel
Comment 3 damage 2009-09-11 10:10:05 UTC
Created attachment 203775 [details]
fix, uninitialized variable
Comment 4 Enchant 2009-09-11 12:32:12 UTC
Yes, patch works for me. I tasted it in two instances, where I had a problem, and after its the problem was solved.
Comment 5 isaac 2009-10-15 14:07:42 UTC
The patch works for me also. I no longer see the mangled header.
Comment 6 Tobias Scherbaum (RETIRED) gentoo-dev 2009-10-17 17:37:54 UTC
Fixed in ssmtp-2.62-r7.
Comment 7 Enchant 2009-11-27 14:03:15 UTC
Please, stable ssmtp-2.62-r7.
Comment 8 Tobias Scherbaum (RETIRED) gentoo-dev 2009-11-27 14:42:50 UTC
(In reply to comment #7)
> Please, stable ssmtp-2.62-r7.
> 

Adding arches.
Comment 9 Tobias Klausmann (RETIRED) gentoo-dev 2009-11-29 14:43:48 UTC
Stable on alpha.
Comment 10 Markus Meier gentoo-dev 2009-12-01 09:53:41 UTC
amd64/arm/x86 stable
Comment 11 Tiago Cunha (RETIRED) gentoo-dev 2009-12-02 15:02:47 UTC
sparc stable
Comment 12 Raúl Porcel (RETIRED) gentoo-dev 2009-12-02 18:19:05 UTC
ia64/m68k/s390/sh stable
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2009-12-04 16:13:17 UTC
Stable for HPPA.
Comment 14 Brent Baude (RETIRED) gentoo-dev 2009-12-08 18:47:27 UTC
ppc64 done
Comment 15 nixnut (RETIRED) gentoo-dev 2009-12-09 19:24:03 UTC
ppc stable