summary refs log tree commit diff
path: root/archive.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-15 19:06:42 -0400
committerJune McEnroe <june@causal.agency>2020-04-15 19:06:42 -0400
commitd72dcfd4665f937eec2d325c10d35a644e9c06ad (patch)
tree81617185483e24ab19a0beefa4c69405a69e596e /archive.c
parentTweak fetchParts naming (diff)
downloadbubger-d72dcfd4665f937eec2d325c10d35a644e9c06ad.tar.gz
bubger-d72dcfd4665f937eec2d325c10d35a644e9c06ad.zip
Rewrite HTML rendering
Diffstat (limited to '')
-rw-r--r--archive.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/archive.c b/archive.c
index 992b592..7edc6d6 100644
--- a/archive.c
+++ b/archive.c
@@ -62,9 +62,6 @@ int main(int argc, char *argv[]) {
 	const char *algo = "REFERENCES";
 	const char *search = "ALL";
 
-	const char *title = NULL;
-	const char *headPath = NULL;
-
 	for (int opt; 0 < (opt = getopt(argc, argv, "C:a:h:p:s:t:u:vw:"));) {
 		switch (opt) {
 			break; case 'C': {
@@ -72,10 +69,10 @@ int main(int argc, char *argv[]) {
 				if (error) err(EX_NOINPUT, "%s", optarg);
 			}
 			break; case 'a': algo = optarg;
-			break; case 'h': headPath = optarg;
+			break; case 'h': concatHead = optarg;
 			break; case 'p': port = optarg;
 			break; case 's': search = optarg;
-			break; case 't': title = optarg;
+			break; case 't': htmlTitle = optarg;
 			break; case 'u': atomBaseURL = optarg;
 			break; case 'v': imapVerbose = true;
 			break; case 'w': passPath = optarg;
@@ -87,7 +84,7 @@ int main(int argc, char *argv[]) {
 
 	if (!host) errx(EX_USAGE, "host required");
 	if (!user) errx(EX_USAGE, "user required");
-	if (!title) title = mailbox;
+	if (!htmlTitle) htmlTitle = mailbox;
 
 	char *pass = NULL;
 	if (passPath) {