From 7f1cd9ea11db55e9de986a0b08132eb76143a9d1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 20 Apr 2019 00:20:04 +0000 Subject: doc: add standards reference Incomplete at the moment, but this ought to be a handy reference for both implementers and users alike. --- Documentation/standards.perl | 74 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100755 Documentation/standards.perl (limited to 'Documentation/standards.perl') diff --git a/Documentation/standards.perl b/Documentation/standards.perl new file mode 100755 index 00000000..baaaaf01 --- /dev/null +++ b/Documentation/standards.perl @@ -0,0 +1,74 @@ +#!/usr/bin/perl -w +use strict; +# Copyright 2019 all contributors +# License: AGPL-3.0+ + +print < 'NNTP', + 977 => 'NNTP (old)', + 6048 => 'NNTP additions to LIST command (TODO)', + 8054 => 'NNTP compression (TODO)', + 4642 => 'NNTP TLS (TODO)', + 8143 => 'NNTP TLS (TODO)', + 2980 => 'NNTP extensions (obsolete, but NOT irrelevant)', + 4287 => 'Atom syndication', + 4685 => 'Atom threading extensions', + 2919 => 'List-Id mail header', + 5064 => 'Archived-At mail header', + 3986 => 'URI escaping', + 1521 => 'MIME extensions', + 2616 => 'HTTP/1.1 (newer updates should apply, too)', + 7230 => 'HTTP/1.1 message syntax and routing', + 7231 => 'HTTP/1.1 semantics and content', + 2822 => 'Internet message format', + # TODO: flesh this out + +]; + +my @rfc_urls = qw(tools.ietf.org/html/rfc%d + www.rfc-editor.org/errata_search.php?rfc=%d); + +for (my $i = 0; $i < $#$rfcs;) { + my $num = $rfcs->[$i++]; + my $txt = $rfcs->[$i++]; + print "rfc$num\t- $txt\n"; + + printf "\thttps://$_\n", $num foreach @rfc_urls; + print "\n"; +} + +print <<'EOF' +Other relevant documentation +---------------------------- + +* Documentation/technical/http-protocol.txt in git source code: + https://public-inbox.org/git/9c5b6f0fac/s + +* Various mbox formats (we currently emit and parse mboxrd) + https://en.wikipedia.org/wiki/Mbox + +Copyright +--------- + +Copyright 2019 all contributors +License: AGPL-3.0+ +EOF -- cgit v1.2.3-24-ge0c7