summary refs log tree commit diff
path: root/archive.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--archive.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/archive.c b/archive.c
index af0329a..7aa6028 100644
--- a/archive.c
+++ b/archive.c
@@ -29,6 +29,9 @@
 
 #define ENV_PASSWORD "BUBGER_IMAP_PASSWORD"
 
+const char *baseURL = "";
+const char *baseTitle;
+
 static uint32_t uidRead(const char *path) {
 	FILE *file = fopen(path, "r");
 	if (!file) return 0;
@@ -72,8 +75,8 @@ int main(int argc, char *argv[]) {
 			break; case 'h': concatHead = optarg;
 			break; case 'p': port = optarg;
 			break; case 's': search = optarg;
-			break; case 't': htmlTitle = optarg;
-			break; case 'u': atomBaseURL = optarg;
+			break; case 't': baseTitle = optarg;
+			break; case 'u': baseURL = optarg;
 			break; case 'v': imapVerbose = true;
 			break; case 'w': passPath = optarg;
 		}
@@ -84,7 +87,7 @@ int main(int argc, char *argv[]) {
 
 	if (!host) errx(EX_USAGE, "host required");
 	if (!user) errx(EX_USAGE, "user required");
-	if (!htmlTitle) htmlTitle = mailbox;
+	if (!baseTitle) baseTitle = mailbox;
 
 	char *pass = NULL;
 	if (passPath) {