From 886d6f5a6c7884bc4c4e0f62cd084f36ae4fe052 Mon Sep 17 00:00:00 2001 From: dadada Date: Mon, 18 May 2020 15:25:08 +0200 Subject: [PATCH] fixup: args --- bin/mailbox2matrix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/mailbox2matrix b/bin/mailbox2matrix index a0e9ab7..c7edfd9 100755 --- a/bin/mailbox2matrix +++ b/bin/mailbox2matrix @@ -69,8 +69,10 @@ def main(): device = sys.argv[3] room = sys.argv[4] maildir = sys.argv[5] - if len(sys.argv) > 5: + if len(sys.argv) > 6: tokenfile = sys.argv[6] + else: + tokenfile = "apitoken.txt" client = Client(homeserver, username, device, room, maildir)