diff options
Diffstat (limited to 'archive.c')
-rw-r--r-- | archive.c | 9 |
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) { |