home readme diff tree note docs

0commit 0a3bd3429629aceba546190ecb0ea7c365c9a17e
1Author: Coby McKinney <coby@bytemap.space>
2Date:   Mon Feb 2 21:26:14 2026 -0800
3
4    gitws/patches: List raw mailing lists
5    
6    Mailing lists are currently hidden server-side and the client has no way
7    to access them.
8    
9    Added a way to view the raw mailing list for use in scripts.
10    
11    Signed-off-by: Coby McKinney <coby@bytemap.space>
12
13diff --git a/cgi-bin/mailto.awk b/cgi-bin/mailto.awk
14index 242b402..6d3c474 100755
15--- a/cgi-bin/mailto.awk
16+++ b/cgi-bin/mailto.awk
17@@ -60,6 +60,17 @@ BEGIN {
18 		}
19 	}
20 
21+	if (action == "raw") {
22+		print "Content-Type: text/plain\r\n"
23+		file = "/var/mailto/" list ".txt"
24+
25+		if (system("test -f \"" file "\"") == 0) {
26+			system "cat \"" file "\"")
27+		}
28+		
29+		exit
30+	}
31+
32 	if (email != "") {
33 		file = "/var/mailto/" list ".txt"
34