πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #135939

Re: [tin +OE ] Use OE to mail from tin?

#135939
From: Frank Slootweg
Date: Wed, 22 Oct 2003 15:28
35 lines
2918 bytes
Urs Janßen <urs@buil.tin.org> wrote:
> In <3f92a724$0$430$1b62eedf@news.wanadoo.nl>,
>     Frank Slootweg wrote:
>>> I'm not into cygwin, but tin writes the mail using unix
>>> style-linefeed only ("\n") and I guess that is what most (all)
>>> other apllications in cygwin do.
>>  My copy of tin-1.4.2 which was compiled under Cygwin B20 (i.e. very
>> old) writes the mail file in *DOS*-format (\r\n). First I thought that
> 
> IIRC (I did not check the code) tin writes out '\n' (of course
> cygwin may convert that on the fly to "\r\n" and vice versa (but what
> if anyone writes binary data?)), so the '\r' must be introduced by
> something else.

  It is probably a Cygwin thing.
  
  As I mentioned, tin was compiled under Cygwin B20. I don't know what
the B20 behaviour was, so I looked at the behaviour of current Cygwin
versions [1].

  I invoke tin from a 'DOS' "Command Prompt" window, i.e. *not* from a
(bash, etc.) shell. Under these conditions, I think we have this case:

CUG> b. If the file appears to reside on a file system that is not
CUG>    mounted (as can happen when the path contains a drive letter),
CUG>    the default is text.

("text" means \r\n).

  So I think it is safe to assume that in my setup, it is indeed Cygwin
which does the translation from \n to \r\n (and probably also vice
versa).

[1] Cygwin User's Guide "Text and Binary modes"
(<http://cygwin.com/cygwin-ug-net/using-textbinary.html>).
Technical Details
Message-ID: <3f96a22e$0$430$1b62eedf@news.wanadoo.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!postnews1.euro.net!news.wanadoo.nl!not-for-mail
References: <3f869331$0$445$1b62eedf@news.wanadoo.nl> <3f885d20$1$445$1b62eedf@news.wanadoo.nl> <3f8d430a$0$75615$1b62eedf@news.wanadoo.nl> <3f900962$0$169$1b62eedf@news.wanadoo.nl> <bmp81s$mpt$03$1@news.t-online.com> <3f91997f$0$443$1b62eedf@news.wanadoo.nl> <bms801$ad5$3@news.rz.uni-karlsruhe.de> <3f92a724$0$430$1b62eedf@news.wanadoo.nl> <bmv1kh$msl$1@news.rz.uni-karlsruhe.de>

Show Full Headers
Complete Article Headers
Message-ID: <3f96a22e$0$430$1b62eedf@news.wanadoo.nl>
Subject: Re: [tin +OE ] Use OE to mail from tin?
Date: Wed, 22 Oct 2003 15:28:48 +0000
From: Frank Slootweg <this@ddress.is.invalid>
References: <3f869331$0$445$1b62eedf@news.wanadoo.nl> <3f885d20$1$445$1b62eedf@news.wanadoo.nl> <3f8d430a$0$75615$1b62eedf@news.wanadoo.nl> <3f900962$0$169$1b62eedf@news.wanadoo.nl> <bmp81s$mpt$03$1@news.t-online.com> <3f91997f$0$443$1b62eedf@news.wanadoo.nl> <bms801$ad5$3@news.rz.uni-karlsruhe.de> <3f92a724$0$430$1b62eedf@news.wanadoo.nl> <bmv1kh$msl$1@news.rz.uni-karlsruhe.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!postnews1.euro.net!news.wanadoo.nl!not-for-mail
Newsgroups: news.software.readers
Organization: NOYB
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (CYGWIN_NT-5.1/20.1
 (0.3/1/1) (i1586)) Hamster/2.0.0.1
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 35
NNTP-Posting-Date: 22 Oct 2003 15:28:48 GMT
NNTP-Posting-Host: c51470495.cable.wanadoo.nl
X-Trace: 1066836528 flip.euronet.nl 430 81.71.4.149:3743
X-Complaints-To: abuse@wanadoo.nl