From 9bb6eec308bbe3c7f0d9348324cb1dade2437946 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 23 Aug 2023 17:08:55 +1200 Subject: [PATCH 1/1] buildmimetree.py: Prefix inline image description --- .config/neomutt/buildmimetree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/neomutt/buildmimetree.py b/.config/neomutt/buildmimetree.py index a570a3b..06f62c5 100755 --- a/.config/neomutt/buildmimetree.py +++ b/.config/neomutt/buildmimetree.py @@ -246,7 +246,7 @@ def collect_inline_images( filewriter_fn(path, data.read(), "w+b") relparts.append( - Part(*mimetype.split("/"), path, cid=info.cid, desc=info.desc) + Part(*mimetype.split("/"), path, cid=info.cid, desc=f"Image: {info.desc}") ) return relparts @@ -934,7 +934,7 @@ try: assert relparts[0].subtype == "png" assert relparts[0].path == written[0] assert relparts[0].cid == const1 - assert relparts[0].desc == const2 + assert relparts[0].desc.endswith(const2) except ImportError: pass -- 2.39.5