OS2 World.Com Forum

Subject  :  command-line mail send/receive?
Author  :  warpcafe warpcafe@yahoo.de
Date  :  22 Mar, 2003 on 21:30
Hi,

might be a stupid question, but... does anyone know of a simple command-line driven utility that simply
- connects to a pop server and
- gets messages and stores them as files in a given directory and
- connects to a smtp server and
- sends specified files (containing appropriate info or cli-switches) to the smtp server

And that's it.
I don't want to have a built-in editor, I don't want to struggle with unix style bunch of switches and options and I don't want to loads tons of either emx, x, cpp-dlls, curses, termcaps or whatever additional stuff.
And before someone yells yout "rexxmail"...: I don't want it to overload my wps with objects that makes it enable desktop archiving at every boot-up.

I am aware of the fact that I might have to do some configuring of settings files and I won't mind that. But that should be enough...

So far I tried
- rexxmail
- pine
- postroad
- mutt (and pop/smtp-mutt)

I'm a registered user of pmmail but I am no longer satisfied as it f***ed up it's database indices and isn't able to recover. I want a "plain", simple, basic and transparent solution without proprietary storing, adressbook and look.

Thanks for any suggestions
Thomas


Subject  :  Re:command-line mail send/receive?
Author  :  kvo kvo@ilt.kharkov.ua
Date  :  24 Mar, 2003 on 09:36
You can try lampop for POP3 send/receive and usual sendmail to send -- both these programs are command line.

Subject  :  Re:command-line mail send/receive?
Author  :  Me
Date  :  24 Mar, 2003 on 22:43
Try this little gem:

Provides additional REXX functions for CGI scripts. Handles form processing (GET and POST methods) with data validation, supports file uploads, sending e-mail and attachments via SMTP, checking and retrieving POP3 mail, getting documents via HTTP, building PDF documents and a range of useful date, file and string functions.

Refer to readme.txt for build specific changes.

http://hobbes.nmsu.edu/pub/incoming/rxweb023.zip
http://hobbes.nmsu.edu/cgi-bin/h-search?key=rxweb023.zip


Subject  :  Re:command-line mail send/receive?
Author  :  warpcafe warpcafe@yahoo.de
Date  :  24 Mar, 2003 on 22:59

Me (Mar 24, 2003 23:43):
Try this little gem:

Provides additional REXX functions for CGI scripts. Handles form processing (GET and POST methods) with data validation, supports file uploads, sending e-mail and attachments via SMTP, checking and retrieving POP3 mail, getting documents via HTTP, building PDF documents and a range of useful date, file and string functions.

Refer to readme.txt for build specific changes.

http://hobbes.nmsu.edu/pub/incoming/rxweb023.zip
http://hobbes.nmsu.edu/cgi-bin/h-search?key=rxweb023.zip


Hey, thanks!
I already knew rxweb, but in my ind it lacked smtp-authentication (like cram-md5 or digest-md5). But as I got ot know just today, it seems that a lot of mail clients lack this function and almost every smtp-server seem to support plain login...
I digged into the stuff about smtp-authentication and loaded tons of RFC's... and ended up screaming, puzzled, frustrated and completely dazzled. I know the base64 and MD5 algorithms - to be true: I downloaded freeware tools for it;) - but I still have no slightest idea WHAT to answer a server when it gives me the "challenge" code.
So, I think I'll either use rxweb or handle the stuff on my own using rexx-sockets. The smtp and pop3 protocols are quite easy. Decoding and handling of charsets in the messages seems a lot more difficult...

But anyway - big thanks!
Thomas


Subject  :  Re:command-line mail send/receive?
Author  :  RolandR
Date  :  25 Mar, 2003 on 19:42


I digged into the stuff about smtp-authentication and loaded tons of RFC's... and ended up screaming, puzzled, frustrated and completely dazzled. I know the base64 and MD5 algorithms - to be true: I downloaded freeware tools for it;) - but I still have no slightest idea WHAT to answer a server when it gives me the "challenge" code.
So, I think I'll either use rxweb or handle the stuff on my own using rexx-sockets. The smtp and pop3 protocols are quite easy. Decoding and handling of charsets in the messages seems a lot more difficult...

This, exactly is the reason, why (at least in Germany where I live) most E-Mail providers use POP before smtp, i.e. In order to authenticate you, first you have to fetch your mail by IMAP or POP3 and only afterwards you are allowed to send your E-Mail without authentication. The server remembers your IP-address from your mail fetching and checks only this when you send e-mail.


Subject  :  Re:command-line mail send/receive?
Author  :  warpcafe warpcafe@yahoo.de
Date  :  25 Mar, 2003 on 20:41

RolandR (Mar 25, 2003 20:42):
This, exactly is the reason, why (at least in Germany where I live) most E-Mail providers use POP before smtp, i.e. In order to authenticate you, first you have to fetch your mail by IMAP or POP3 and only afterwards you are allowed to send your E-Mail without authentication. The server remembers your IP-address from your mail fetching and checks only this when you send e-mail.


Oops. It seemed to me, that the "usual" process is SENDing outgoing mails first, then READing the new ones. Is that wrong? I know that "POP before SMTP" authentication mechanism, but... is it really done like this?
Okay, I can imagine that dial-in to my ISP gives me a (temporary) IP from them (which I keep as long as my sessoin goes) and that they might use it for verifying after I QUIT the POP3 and CONNECT to the SMTP... is that what they are actually doing? How can I find out what mail service authentication method my ISP is using - if any - if it aint CRAM-MD5 or DIGEST-MD5?

Thomas


Subject  :  Re:command-line mail send/receive?
Author  :  davidfor
Date  :  25 Mar, 2003 on 23:38

warpcafe (Mar 25, 2003 22:03):
Oops. It seemed to me, that the "usual" process is SENDing outgoing mails first, then READing the new ones. Is that wrong? I know that "POP before SMTP" authentication mechanism, but... is it really done like this?
Okay, I can imagine that dial-in to my ISP gives me a (temporary) IP from them (which I keep as long as my sessoin goes) and that they might use it for verifying after I QUIT the POP3 and CONNECT to the SMTP... is that what they are actually doing?

Yes, that seems to be the "traditional" way of doing this (before people got more worried about security). Both the ISPs I use still use this. RolandR's description agrees with my understanding, with the only addition being that the IP address is authorised for a limited time. ie. the SMTP server may only allow the connection for the next few minutes. After that, you need to connect to the POP3 server again before sending more mail.


How can I find out what mail service authentication method my ISP is using - if any - if it aint CRAM-MD5 or DIGEST-MD5?

You will have to ask them. But, it should be on their setup pages for Windows users. If they are using any SMTP authentication, they will have instructions for how to enable this in the main Windows clients.
David

Powered by UltraBoard 2000 <www.ub2k.com>