Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <005201c395ab$42a3c080$657ba8c0@neth.hp.com> From: "Frank Slootweg" To: References: <00be01c393c0$869213b0$647ba8c0 AT neth DOT hp DOT com> <20031016115054 DOT GH28997 AT cygbert DOT vinschen DOT de> <021e01c3940b$9ef6c770$647ba8c0 AT neth DOT hp DOT com> <20031017093307 DOT GK25076 AT cygbert DOT vinschen DOT de> <20031017100840 DOT GN25076 AT cygbert DOT vinschen DOT de> <20031017102654 DOT GO25076 AT cygbert DOT vinschen DOT de> <017a01c394b2$db44baf0$657ba8c0 AT neth DOT hp DOT com> <20031017134523 DOT GT25076 AT cygbert DOT vinschen DOT de> <024a01c394bd$6967b580$657ba8c0 AT neth DOT hp DOT com> <20031018172157 DOT GB25076 AT cygbert DOT vinschen DOT de> Subject: Re: ssmtp 2.38.7-4 reads headers from message body. Date: Sat, 18 Oct 2003 21:08:48 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal x-mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Antivirus: avast! (VPS 17/10/2003), Outbound message X-Antivirus-Status: Clean Corinna Vinschen" wrote: > On Fri, Oct 17, 2003 at 04:46:13PM +0200, Frank Slootweg wrote: > > Corinna Vinschen" wrote: > > > On Fri, Oct 17, 2003 at 03:30:39PM +0200, Frank Slootweg wrote: > > [deleted] > > > > So my problem is solved, but what about the generic problem? > > > > IMO ssmtp in a Cygwin environment should be able to handle DOS > > > > format data. AFAIK, there are (POSIX? XPG?) standards for > > > > opening a stream in text mode, which should make things > > > > compatible between ('DOS' and UNIX) platforms. > > [...] > > So I think that ssmtp is somewhat unique and somewhat 'broken'. > > I've took some time to investigate the situation and I have to say > that I can't reproduce your effect. I created an appropriate testfile > from your template and regardless of having the file on a textmode > mount or a binmode mount, regardless of the shell in which I call > `ssmtp -t < file' and regardless if the file has LF or CRLF > lineendings, ssmpt always got that right. Especially I found that > ssmtp already opens the file in textmode (yeah, I didn't remember) so > the problem you found is even more weird. Which means, I'll not > change anything unless somebody (you?) can explain what *exactly* goes > wrong. Thanks for your efforts. To be Frank :-), I am not aware that I have any special kind of 'mount'. I understand what you mean, but I have just a basic Cygwin setup on my C: drive. The only related thing I can think of is that I always specify "Default Text File Type" as "Unix" when I run Cygwin Setup (I don't know what that does, but that is what I specify). In my normal setup, tin is invoked from a DOS Command Prompt window (i.e. not from bash) and tin invokes ssmtp as indicated in my 'basenote'. However after your posting, I tried in a bash shell and can also reproduce the problem there: $ /usr/sbin/ssmtp -t <.letter.save /usr/sbin/ssmtp: smtp server didn't accept RCPT To: command, replied "450 : Sender address rejected: Domain not found". franks AT ipc1fs02 ~ $ The this AT ddress DOT is DOT invalid address is only in the body, so ssmtp clearly gets the address from the body. To show that it is really the DOS-format which is the problem: $ cat .letter.save | /usr/sbin/ssmtp -t /usr/sbin/ssmtp: smtp server didn't accept RCPT To: command, replied "450 : Sender address rejected: Domain not found". Using cat(1) and a pipe to show that the problem is not related to "<" input redirection. franks AT ipc1fs02 ~ $ cat .letter.save | tr -d '\015' | /usr/sbin/ssmtp -t franks AT ipc1fs02 ~ $ I.e. without \r (\015), ssmtp works correctly. Anything else you need? It would be interesting to hear if other people can reproduce my problem. -- 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/