diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-12-28 18:07:18 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-12-28 18:07:18 +0200 |
commit | f113836a8fc282b7c7642eff82a4cf73d8e346fa (patch) | |
tree | b86631e738f84ba40d7244e8c3c9cf2ac627c25f /doc/gawkinet.texi | |
parent | ce2fcf704aac494b44c78a34c714732685dfc1ad (diff) | |
download | egawk-f113836a8fc282b7c7642eff82a4cf73d8e346fa.tar.gz egawk-f113836a8fc282b7c7642eff82a4cf73d8e346fa.tar.bz2 egawk-f113836a8fc282b7c7642eff82a4cf73d8e346fa.zip |
Additional update in gawkinet.texi.
Diffstat (limited to 'doc/gawkinet.texi')
-rw-r--r-- | doc/gawkinet.texi | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/doc/gawkinet.texi b/doc/gawkinet.texi index 47d9a957..342b067b 100644 --- a/doc/gawkinet.texi +++ b/doc/gawkinet.texi @@ -1270,7 +1270,21 @@ BEGIN @{ @cindex Simple Mail Transfer Protocol (SMTP) The distribution of email is usually done by dedicated email servers that communicate with your machine using special protocols. -In this @value{SECTION} we show how simple the basic steps are. +In this @value{SECTION} we show how simple the basic steps are.@footnote{No, +things are @emph{not} that simple any more. Things @emph{were} that simple +when email was young in the 20th century. These days, unencrypted plaintext +authentication is usually disallowed on non-secure connections. +Since encryption of network connections is not supported in @command{gawk}, +you should not use @command{gawk} to write such scripts. +We left this @value{SECTION} as it is because it demonstrates how +application level protocols work in principle (a command being issued +by the client followed by a reply coming back). Unfortunately, modern +application level protocols are much more flexible in the sequence of +actions. For example, modern POP3 servers may introduce themselves +with an unprompted initial line that arrives before the initial command. +Dealing with such variance is not worth the effort in @command{gawk}.} +@c FIXME: This would be the proper place to refer to Arnold's work on +@c writing SMTP client and server. To receive email, we use the Post Office Protocol (POP). Sending can be done with the much older Simple Mail Transfer Protocol (SMTP). @@ -1285,6 +1299,7 @@ name or password. Replace them in the program and it shows you the first email the server has in store: @example +@c file eg/network/mailpopclient.awk BEGIN @{ POPService = "/inet/tcp/0/@var{emailhost}/pop3" RS = ORS = "\r\n" @@ -1301,6 +1316,7 @@ BEGIN @{ print $0 close(POPService) @} +@c endfile @end example @cindex RFC 1939 |