πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #135746

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

#135746
From: Frank Slootweg
Date: Sun, 19 Oct 2003 15:00
29 lines
2865 bytes
Urs Janßen <urs@buil.tin.org> wrote:
> In <3f91997f$0$443$1b62eedf@news.wanadoo.nl>,
>     Frank Slootweg wrote:
>>  tin invokes ssmtp as "/usr/sbin/ssmtp -t < %F" (i.e. similar to the
>> normal invocation of sendmail(1M)). What I am talking about is how ssmtp
>> reads from the (DOS or UNIX format) file %F, *not* how ssmtp 'talks' on
>> the SMTP connection to the remote mail server.
> 
> 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
perhaps vim (the editor) was converting the file, but I just checked and
the file is DOS-format even when you just send without editing. I don't
know why this happens, I just know it does. Personally, I consider this
the right way, because Cygwin run on (MS) Windows and on Windows
DOS-format is still the norm (for example Notepad can still not handle
UNIX-format) and smart software can, often transparently, handle both
formats.

>				   IMHO all applications which do
> read/write text should expect (or at least handle) unix style-linefeed
> input (in this case ssmtp).

  ssmtp can indeed handle UNIX-format input, but not DOS-format. That
was/is the 'problem' (Now I *know* that it can not handle DOS-format, it
is no longer a problem, "tr -d '\015'" is your friend).
Technical Details
Message-ID: <3f92a724$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>

Show Full Headers
Complete Article Headers
Message-ID: <3f92a724$0$430$1b62eedf@news.wanadoo.nl>
Subject: Re: [tin +OE ] Use OE to mail from tin?
Date: Sun, 19 Oct 2003 15:00:52 +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>
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: 29
NNTP-Posting-Date: 19 Oct 2003 15:00:52 GMT
NNTP-Posting-Host: cd51133d7.cable.wanadoo.nl
X-Trace: 1066575652 flip.euronet.nl 430 213.17.51.215:3412
X-Complaints-To: abuse@wanadoo.nl