From: martin f. krafft Date: Tue, 22 Aug 2023 12:35:48 +0000 (+1200) Subject: buildmimetree.py: --send-message base work X-Git-Url: https://git.madduck.net/etc/neomutt.git/commitdiff_plain/5c24c52dc81cd13d5c5087fbf699b9556cec0ac4?ds=sidebyside buildmimetree.py: --send-message base work --- 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):