From 513db7a41e06093ddee34c3b5b96874284c8e3a5 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 23 Aug 2023 00:35:48 +1200 Subject: [PATCH] buildmimetree.py: --send-message base work --- .config/neomutt/buildmimetree.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/neomutt/buildmimetree.py b/.config/neomutt/buildmimetree.py index bad8bbe..ad4e988 100755 --- a/.config/neomutt/buildmimetree.py +++ b/.config/neomutt/buildmimetree.py @@ -72,6 +72,12 @@ def parse_cli_args(*args, **kwargs): help="Markdown extension to add to the list of extensions use", ) + parser_setup.add_argument( + "--send-message", + action="store_true", + help="Generate command(s) to send the message after processing", + ) + parser_massage.add_argument( "--debug-commands", action="store_true", @@ -409,6 +415,9 @@ if __name__ == "__main__": args = parse_cli_args() if args.mode == "setup": + if args.send_message: + raise NotImplementedError() + do_setup(args.extensions, debug_commands=args.debug_commands) elif args.mode == "massage": @@ -531,7 +540,6 @@ try: def test_MIMETreeDFWalker_list_to_mixed(self, basic_mime_tree): mimetree = MIMETreeDFWalker() - items = [] def visitor_fn(item, stack, debugprint): -- 2.39.2