delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/07/21:07:00

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: Mon, 8 Dec 2003 02:03:21 +0000
From: Robert R Schneck <schneck AT math DOT berkeley DOT edu>
To: cygwin AT cygwin DOT com
Subject: Re: ssmtp -t alters To: header of outgoing mail
In-Reply-To: <20031201141624.GV26514@cygbert.vinschen.de>
References: <E1APUZU-0004iS-TU AT mk-smarthost-3 DOT mail DOT uk DOT tiscali DOT com>
<20031128084335 DOT GB3137 AT cygbert DOT vinschen DOT de>
<E1APqUP-00067c-1N AT mk-smarthost-3 DOT mail DOT uk DOT tiscali DOT com>
<20031201141624 DOT GV26514 AT cygbert DOT vinschen DOT de>
MIME-Version: 1.0
Message-Id: <E1ATAms-000BMU-MQ@mk-smarthost-9.mail.uk.tiscali.com>

Corinna Vinschen wrote:
> Thanks for the patch.  I'm sorry but it's not quite clear to me what
> the second part of the patch is doing?  Could you give a short explanation
> why it returns at that point if sawSomething is 0?

As the line is traversed, sawSomething gets 0 at every comma and 1 at
every other non-space.  At the point you mention, the end of the line has
been reached and the remainder of the function records the address since
the last comma.  But if sawSomething==0 (i.e., the comma ended the line)
that address would be ""; including that as a recipient has undesired
consequences, so the patch causes a return instead.


> Oh, btw., Chris is right.  It would be nice if you could adhere to
> the formatting rules of the surrounding source.

Thank you both for alerting me to this, I will pay more attention to it in
the future.


> Are you interested in maintaining that new version?  It seems to
> address the multiple recipient problem already, AFAICT.  It would
> probably just need a Makefile tweak and the small patch from Enoch Wu,
> which allows to send to a server listening on other ports than 25.

I would be happy to, but be aware that it will almost certainly be a
couple of weeks before I look at it---so if anyone else wants at it, I
encourage them.

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