X-Git-Url: https://git.madduck.net/etc/neomutt.git/blobdiff_plain/aec9fd58d4de930e396f832f77b9ece3b4c7638c..9347b03add9503a0c059940f14f0defcdc1bbaf5:/.config/neomutt/buildmimetree.py diff --git a/.config/neomutt/buildmimetree.py b/.config/neomutt/buildmimetree.py index 0dd1882..97ada97 100755 --- a/.config/neomutt/buildmimetree.py +++ b/.config/neomutt/buildmimetree.py @@ -101,8 +101,10 @@ def parse_cli_args(*args, **kwargs): massage_p.add_argument( "--write-commands-to", + "-o", metavar="PATH", dest="cmdpath", + required=True, help="Temporary file path to write commands to", ) @@ -250,6 +252,9 @@ class Multipart( def __str__(self): return f" children={len(self.children)}" + def __hash__(self): + return hash(str(self.subtype) + "".join(str(self.children))) + def filewriter_fn(path, content, mode="w", **kwargs): with open(path, mode, **kwargs) as out_f: