X-Git-Url: https://git.madduck.net/etc/neomutt.git/blobdiff_plain/726c8629b9c0de4f9da7852be4dc4897bf9d2e8b..36b999025f767b33be493a29e7636036b17b5dca:/.config/neomutt/buildmimetree.py diff --git a/.config/neomutt/buildmimetree.py b/.config/neomutt/buildmimetree.py index 02d668b..97ada97 100755 --- a/.config/neomutt/buildmimetree.py +++ b/.config/neomutt/buildmimetree.py @@ -252,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: