This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ssmtp -t alters To: header of outgoing mail


Running ssmtp -t with input like
---
Date: Thu, 27 Nov 2003 16:57:42 +0000
From: schneck@math.berkeley.edu
To: schneck@math.berkeley.edu, cygwin@cygwin.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@math.berkeley.edu
To: schneck@math.berkeley.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@math.berkeley.edu
To: schneck@math.berkeley.edu,
  cygwin@cygwin.com
Subject: test

test
---
results in a message being sent to "schneck@math.berkeley.edu",
"@math.berkeley.edu", "cygwin@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]