🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #135639

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

#135639
From: Frank Slootweg
Date: Fri, 17 Oct 2003 15:23
46 lines
3462 bytes
On October 15, I wrote:
> On October 11, I wrote:
>>   Thanks, Dirk and Urs. I probably first will have a look at the Cygwin
>> ssmtp package. In hindsight, it probably isn't fair on tin to ask it to
>> invoke OE. It is already sad that it 'has' to *run on* a virus, but
>> asking it to willingly *invoke* one is plain cruel. My apologies! [1]
>> 
>> [1] For the HI: :-)
> 
>   I tried the Cygwin ssmtp(8) package ("A minimal mail-transfer agent
> which forwards mail to an SMTP server") and it works somewhat.
> 
>   Sadly enough, there is a bug in it. Like for sendmail, I use ssmtp's
> "-t" option. However ssmtp keeps reading the headers (like From:, etc.)
> after it has read the full header, i.e. it also reads 'header' lines
> from the *body* of the message. I.e. when I tried to mail one of my
> postings to myself, it failed because the *body* contained "From: Frank
> Slootweg <this@ddress.is.invalid>" (of course I had put my real address
> in the real From: header).
> 
>   I will try to report this bug to the author(s)/maintainer(s) of ssmtp.
> In the meantime I will have to (">") escape any header lines in the body.

  With help from the cygwin mailing list (<cygwin@cygwin.com> Thanks
Corinna V.!) we have found the cause and a workaround!

  The cause is that ssmtp can apparently not (fully) handle 'DOS'-format
(<CR><LF> line terminators) input, but expects UNIX-format (<LF>), at
least for the 'blank' line *between* the header and body (it
(apparently) can handle blank lines *in* the body.

  The workaround is (obviously) to convert the data from DOS-format to
UNIX format before passing it on to ssmtp.

  The jury is still out as to whether or not this is a bug (I think it
is, considering that this (ssmtp) is a Cygwin package, i.e. it is
supposed to run on a Windows system, where DOS-format is the norm.).

  I case anyone is interested, you can follow the discussion on the
cygwin list, in the (web) archive and in the gmane.os.cygwin Newsgroup
(on the web or via NNTP). For details, see the Cygwin home page
(<http://cygwin.com/>), especially the "Mailing Lists" and "Unofficial
Newsgroup" links. 'My' thread is "ssmtp 2.38.7-4 reads headers from
message body." of October 16. See for example
<http://sources.redhat.com/ml/cygwin/2003-10/threads.html> (sorted by
date).
Technical Details
Message-ID: <3f900962$0$169$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>

Show Full Headers
Complete Article Headers
Message-ID: <3f900962$0$169$1b62eedf@news.wanadoo.nl>
Subject: Re: [tin +OE ] Use OE to mail from tin?
Date: Fri, 17 Oct 2003 15:23:14 +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>
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
Lines: 46
NNTP-Posting-Date: 17 Oct 2003 15:23:14 GMT
NNTP-Posting-Host: c3eea3b2a.cable.wanadoo.nl
X-Trace: 1066404194 willi.euronet.nl 169 62.234.59.42:4282
X-Complaints-To: abuse@wanadoo.nl