]> Sergey Matveev's repositories - public-inbox.git/blob - Documentation/standards.perl
0ac6cc525efea8ef10acf28b4000a96b9db24219
[public-inbox.git] / Documentation / standards.perl
1 #!/usr/bin/perl -w
2 use strict;
3 # Copyright 2019-2020 all contributors <meta@public-inbox.org>
4 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
5
6 print <<EOF;
7 Relevant standards for public-inbox users and hackers
8 -----------------------------------------------------
9
10 Non-exhaustive list of standards public-inbox software attempts or
11 intends to implement.  This list is intended to be a quick reference
12 for hackers and users.
13
14 Given the goals of interoperability and accessibility; strict
15 conformance to standards is not always possible, but rather
16 best-effort taking into account real-world cases.  In particular,
17 "obsolete" standards remain relevant as long as clients and
18 data exists.
19
20 IETF RFCs
21 ---------
22
23 EOF
24
25 my $rfcs = [
26         3977 => 'NNTP',
27         977 => 'NNTP (old)',
28         6048 => 'NNTP additions to LIST command (TODO)',
29         8054 => 'NNTP compression',
30         4642 => 'NNTP TLS',
31         8143 => 'NNTP TLS',
32         2980 => 'NNTP extensions (obsolete, but NOT irrelevant)',
33         4287 => 'Atom syndication',
34         4685 => 'Atom threading extensions',
35         2919 => 'List-Id mail header',
36         5064 => 'Archived-At mail header',
37         3986 => 'URI escaping',
38         1521 => 'MIME extensions',
39         2616 => 'HTTP/1.1 (newer updates should apply, too)',
40         7230 => 'HTTP/1.1 message syntax and routing',
41         7231 => 'HTTP/1.1 semantics and content',
42         822 => 'Internet message format (1982)',
43         2822 => 'Internet message format (2001)',
44         5322 => 'Internet message format (2008)',
45         3501 => 'IMAP4rev1',
46         2177 => 'IMAP IDLE',
47         2683 => 'IMAP4 Implementation Recommendations',
48         # 5032 = 'WITHIN search extension for IMAP',
49         4978 => 'IMAP COMPRESS Extension',
50         # 5182 = 'IMAP Extension for Referencing the Last SEARCH Result',
51         # 5256 => 'IMAP SORT and THREAD extensions',
52         # 5738 =>  'IMAP Support for UTF-8',
53         # 8474 => 'IMAP Extension for Object Identifiers',
54
55         # 8620 => JSON Meta Application Protocol (JMAP)
56         # 8621 => JSON Meta Application Protocol (JMAP) for Mail
57         # ...
58
59         # TODO: flesh this out
60
61 ];
62
63 my @rfc_urls = qw(tools.ietf.org/html/rfc%d
64                   www.rfc-editor.org/errata_search.php?rfc=%d);
65
66 for (my $i = 0; $i < $#$rfcs;) {
67         my $num = $rfcs->[$i++];
68         my $txt = $rfcs->[$i++];
69         print "rfc$num\t- $txt\n";
70
71         printf "\thttps://$_\n", $num foreach @rfc_urls;
72         print "\n";
73 }
74
75 print <<'EOF'
76 Other relevant documentation
77 ----------------------------
78
79 * IMAP capabilities registry and response codes:
80   https://www.iana.org/assignments/imap-capabilities
81   https://www.iana.org/assignments/imap-response-codes
82
83 * Documentation/technical/http-protocol.txt in git source code:
84   https://public-inbox.org/git/9c5b6f0fac/s
85
86 * Various mbox formats (we currently emit and parse mboxrd)
87   https://en.wikipedia.org/wiki/Mbox
88
89 * PSGI/Plack specifications (as long as our web frontend uses Perl5)
90   git clone https://github.com/plack/psgi-specs.git
91
92 Copyright
93 ---------
94
95 Copyright (C) 2019-2020 all contributors <meta@public-inbox.org>
96 License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
97 EOF