Thread View: news.software.readers
14 messages
14 total messages
Started by Frank Slootweg
Fri, 10 Oct 2003 11:08
[tin +OE ] Use OE to mail from tin?
Author: Frank Slootweg
Date: Fri, 10 Oct 2003 11:08
Date: Fri, 10 Oct 2003 11:08
14 lines
1626 bytes
1626 bytes
I use tin on (MS) Windows. Is it possible to invoke Outlook Express to mail messages (i.e. "r", "m", etc.) from tin? If so, how? FWIW, I use Hamster, but only as a News server, not as a mail server. I would prefer not to use the mail server part of Hamster, because my mail setup is already complex enough (interaction with my anti-virus software, etc.). Alternatively, I think that Cygwin has (optional) sendmail or/and SMTP packages, but I have only very limited experience with sendmail, i.e. only as a user, not as a (mail) administrator. Thanks in advance for any and all responses.
Re: [tin +OE ] Use OE to mail from tin?
Author: Dirk Nimmich
Date: Fri, 10 Oct 2003 14:48
Date: Fri, 10 Oct 2003 14:48
26 lines
2108 bytes
2108 bytes
Frank Slootweg wrote: > I use tin on (MS) Windows. Is it possible to invoke Outlook Express to > mail messages (i.e. "r", "m", etc.) from tin? If so, how? That combination is really astonishing. So, if you are _really_ sure that you want to use OE despite its mail replication features, and OE can be invoked from cygwin, and OE is able to read a file with a prepared mail -- then use use_mailreader_i=ON (tin < 1.7.1) or interactive_mailer=1 or interactive_mailer=2 (tin >= 1.7.1) and default_mailer_format=however-oe-is-invoked /whatever-options. Maybe <http://www.okinfoweb.com/moe/general/gen_047.htm> and subsequently <http://www.okinfoweb.com/moe/mail/mail_029.htm> help you a bit. From a short reading there it may be better to write a small script that takes the mail file, the recipients and the subject as its arguments, generates an appropriate mailto-URL and eventually invokes OE. Or use a script that knows how to deal with the MAPI interface. If it works, I'd really like to know about it. :-) HTH & TIA, and good luck.
Re: [tin +OE ] Use OE to mail from tin?
Author: Mike Easter
Date: Fri, 10 Oct 2003 15:46
Date: Fri, 10 Oct 2003 15:46
11 lines
1521 bytes
1521 bytes
Dirk Nimmich wrote: > Or use a script that knows how to deal with > the MAPI interface. I tho't that Outlook OL is a MAPI mail client, but that Outlook Express OE is not. -- Mike Easter
Re: [tin +OE ] Use OE to mail from tin?
Author: Dirk Nimmich
Date: Fri, 10 Oct 2003 16:09
Date: Fri, 10 Oct 2003 16:09
12 lines
1457 bytes
1457 bytes
Mike Easter schrieb: > Dirk Nimmich wrote: >> Or use a script that knows how to deal with >> the MAPI interface. > > I tho't that Outlook OL is a MAPI mail client, but that Outlook Express > OE is not. *shrug* I'm no Windows programming expert. But somehow it should be possible to hand over a message to OE, and I thought it may be MAPI.
Re: [tin +OE ] Use OE to mail from tin?
Author: Frank Slootweg
Date: Sat, 11 Oct 2003 19:42
Date: Sat, 11 Oct 2003 19:42
7 lines
1277 bytes
1277 bytes
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: :-)
Re: [tin +OE ] Use OE to mail from tin?
Author: Frank Slootweg
Date: Wed, 15 Oct 2003 12:52
Date: Wed, 15 Oct 2003 12:52
21 lines
2160 bytes
2160 bytes
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.
Re: [tin +OE ] Use OE to mail from tin?
Author: Frank Slootweg
Date: Fri, 17 Oct 2003 15:23
Date: Fri, 17 Oct 2003 15:23
46 lines
3462 bytes
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).
Re: [tin +OE ] Use OE to mail from tin?
Author: Dirk Nimmich
Date: Fri, 17 Oct 2003 17:14
Date: Fri, 17 Oct 2003 17:14
16 lines
1968 bytes
1968 bytes
Frank Slootweg wrote: > 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.). If ssmtp can't handle CRLF it's seriously broken. CRLF is the canonical line ending on SMTP connections.
Re: [tin +OE ] Use OE to mail from tin?
Author: Frank Slootweg
Date: Sat, 18 Oct 2003 19:50
Date: Sat, 18 Oct 2003 19:50
25 lines
2453 bytes
2453 bytes
Dirk Nimmich <nimmich@muenster.de> wrote: > Frank Slootweg wrote: >> 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.). > > If ssmtp can't handle CRLF it's seriously broken. CRLF is the > canonical line ending on SMTP connections. That has also been mentioned on the cygwin list, but don't confuse *input to* *ssmtp* (the *program*) with what happens on the *SMTP * (the *protocol*) *connection*. 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.
Re: [tin +OE ] Use OE to mail from tin?
Author: Urs Janßen
Date: Sat, 18 Oct 2003 20:32
Date: Sat, 18 Oct 2003 20:32
18 lines
2121 bytes
2121 bytes
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. IMHO all applications which do
read/write text should expect (or at least handle) unix style-linefeed
input (in this case ssmtp).
urs
--
Jef Poskanzer:
"When people aren't stupid Usenet is even more useful. Too bad this happens
so rarely."
Re: [tin +OE ] Use OE to mail from tin?
Author: Dirk Nimmich
Date: Sun, 19 Oct 2003 10:00
Date: Sun, 19 Oct 2003 10:00
12 lines
1841 bytes
1841 bytes
Frank Slootweg wrote: > Dirk Nimmich <nimmich@muenster.de> wrote: >> If ssmtp can't handle CRLF it's seriously broken. CRLF is the >> canonical line ending on SMTP connections. > > That has also been mentioned on the cygwin list, but don't confuse > *input to* *ssmtp* (the *program*) with what happens on the *SMTP * (the > *protocol*) *connection*. Either way, a robust implementation must be able to cope with any of the line endings. So many broken clients out there ...
Re: [tin +OE ] Use OE to mail from tin?
Author: Frank Slootweg
Date: Sun, 19 Oct 2003 15:00
Date: Sun, 19 Oct 2003 15:00
29 lines
2865 bytes
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).
Re: [tin +OE ] Use OE to mail from tin?
Author: Urs Janßen
Date: Sun, 19 Oct 2003 22:01
Date: Sun, 19 Oct 2003 22:01
14 lines
2065 bytes
2065 bytes
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.
urs
Re: [tin +OE ] Use OE to mail from tin?
Author: Frank Slootweg
Date: Wed, 22 Oct 2003 15:28
Date: Wed, 22 Oct 2003 15:28
35 lines
2918 bytes
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>).
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads