delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/27/17:25:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 27 Nov 2003 17:13:51 +0000
From: Robert R Schneck <schneck AT math DOT berkeley DOT edu>
To: cygwin AT cygwin DOT com
Subject: ssmtp -t alters To: header of outgoing mail
MIME-Version: 1.0
Message-Id: <E1APUZU-0004iS-TU@mk-smarthost-3.mail.uk.tiscali.com>

Running ssmtp -t with input like
---
Date: Thu, 27 Nov 2003 16:57:42 +0000
From: schneck AT math DOT berkeley DOT edu
To: schneck AT math DOT berkeley DOT edu, cygwin AT cygwin DOT com
Subject: test

test
---
will result in the following being sent to *both* recipients:
---
Date: Thu, 27 Nov 2003 16:57:42 +0000
From: schneck AT math DOT berkeley DOT edu
To: schneck AT math DOT berkeley DOT edu
Subject: test

test
---

That is, it ends the To: line at the first comma.  It's easy to see why
from the source, is finds the comma, puts in a null to easily read the
address, but then never puts the comma back in.

Additionally, running ssmtp -t with input like
---
Date: Thu, 27 Nov 2003 16:57:42 +0000
From: schneck AT math DOT berkeley DOT edu
To: schneck AT math DOT berkeley DOT edu,
  cygwin AT cygwin DOT com
Subject: test

test
---
results in a message being sent to "schneck AT math DOT berkeley DOT edu",
"@math.berkeley.edu", "cygwin AT cygwin DOT com".  That is, when there is a comma
at the end of a line, it still interprets the empty space at the end of
the line as an address.  Most smtp servers seem to ignore the invalid
address, but I have had at least one refuse to deliver because of it.

Thank you,
Robert

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019