Re: linebreak handling / qmail-inject

2001-05-08 Thread Karsten W. Rohrbach

Markus Stumpf([EMAIL PROTECTED])@2001.05.07 15:27:52 +:
> > solution for handling DOS style linebreaks with qmail I would appreciate any
> > hints.
> 
> Do correct escaping of LFs according to RFC 2821.
something like
| recode dos:latin1
???
;-)

/k

-- 
> cd /pub; more beer
KR433/KR11-RIPE -- http://www.webmonster.de -- ftp://ftp.webmonster.de
[Key] [KeyID---] [Created-] [Fingerprint-]
GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE  DF22 3340 4F4E 2964 BF46




Re: linebreak handling / qmail-inject

2001-05-07 Thread Markus Stumpf

On Mon, May 07, 2001 at 12:58:12PM +0200, Sascha Dahl wrote:
> I considered that qmail seems to make a difference between DOS and UNIX
> style linebreaks ("\r\n" AND "\n") when sending mails from localhost.

Read RFC 2821 (obsoleted 821) 
Bare LF without a preceding CR are invalid in SMTP dialogue.

> Is this the usual behaviour of qmail? That would mean, that it is not 100%
> sendmail compatible... or did I misconfigure something? If there is a

Compatibility to sendmail is irrelevant.
qmail implements the standard. Some version of MS exchange and Outloook
don't. The funny thing about it is that under some circumstances Outlook
can't decode email that has been sent by another Outlook client.

> solution for handling DOS style linebreaks with qmail I would appreciate any
> hints.

Do correct escaping of LFs according to RFC 2821.

Just a notice: it is also irrelevant if LF to CRLF conversion does make
sense in your opinion. The standard defines that it has to be converted.

\Maex

-- 
SpaceNet AG| Joseph-Dollinger-Bogen 14 | Fon: +49 (89) 32356-0
Research & Development |   D-80807 Muenchen| Fax: +49 (89) 32356-299
Stress is when you wake up screaming and you realize you haven't fallen
asleep yet.



Re: linebreak handling / qmail-inject

2001-05-07 Thread Dave Sill

"Sascha Dahl" <[EMAIL PROTECTED]> wrote:

>I considered that qmail seems to make a difference between DOS and UNIX
>style linebreaks ("\r\n" AND "\n") when sending mails from localhost.

qmail runs on UNIX systems, and UNIX systems use newlines, not CR-LF.

>Is this the usual behaviour of qmail?

Yes.

>That would mean, that it is not 100% sendmail compatible...

Correct. qmail is not bug-compatible with Sendmail.

>or did I misconfigure something?

No.

>If there is a solution for handling DOS style linebreaks with qmail I
>would appreciate any hints.

Why not just store files with the line breaks appropriate for the OS
they're stored on?

-Dave