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 Date: Fri, 17 Oct 2003 12:08:40 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: ssmtp 2.38.7-4 reads headers from message body. Message-ID: <20031017100840.GN25076@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Fri, Oct 17, 2003 at 11:04:19AM +0100, Sam Edge wrote: > Corinna Vinschen wrote in > <20031017093307 DOT GK25076 AT cygbert DOT vinschen DOT de> > in gmane.os.cygwin on Fri, 17 Oct 2003 11:33:07 +0200: > > > I'm not familar with the mail-related RFCs. Is > > it allowed to send lines with DOS lineendings? > > The RFCs for SMTP e-mail (RFC2821 and its predecesors) /require/ CR-LF > ("\r\n" i.e. "DOS") line endings. (Probably because debugging using > dumb terminals or printers was easier that way in days of yore.) Interesting. So a check as in ssmtp: while ((fgets (buffer, sizeof buffer, stdin) != NULL) && (buffer[0] != '\n')) { /* It's a header line */ } seems a bit oversimplified, right? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/