Mail Archives: cygwin/2003/10/17/06:29:07
On Fri, Oct 17, 2003 at 12:08:40PM +0200, Corinna Vinschen wrote:
> On Fri, Oct 17, 2003 at 11:04:19AM +0100, Sam Edge wrote:
> > Corinna Vinschen <corinna-cygwin AT cygwin DOT com> 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?
Well, this happens when reading the input file. When writing the output
stream to the mailhub, it uses \r\n explicitely.
So ssmtp assumes that the input file is using only \n. Of course, ssmtp
has never been written with textmode mounts in mind...
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/
- Raw text -