summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-10-05 20:25:23 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-10-05 20:25:23 +0200
commit29a0b7530d6bf50056e4903512e5c205c7078b6f (patch)
tree0ace9057314a4af350a00ef656aa7848f710f189
parentBuncha work. (diff)
downloadvimwiki-scripts-29a0b7530d6bf50056e4903512e5c205c7078b6f.tar.gz
vimwiki-scripts-29a0b7530d6bf50056e4903512e5c205c7078b6f.tar.xz
Manually number attachements.
-rwxr-xr-xdo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/do.py b/do.py
index 217d231..1f4e6a9 100755
--- a/do.py
+++ b/do.py
@@ -70,8 +70,8 @@ def resolve_mail(addr, frag, comment):
body = msg.get_body(preferencelist=('related', 'plain', 'html'))
for field in ['Date', 'From', 'To' 'Cc', 'Subject']:
- if h := msg.get(field):
- outstr += f'{field}: {h}\n'
+ h = msg.get(field)
+ if h: outstr += f'{field}: {h}\n'
outstr += '\n'
if frag == 'short':
outstr += shorten_mail(body.get_content())