diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-05 20:25:23 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-05 20:25:23 +0200 |
commit | 29a0b7530d6bf50056e4903512e5c205c7078b6f (patch) | |
tree | 0ace9057314a4af350a00ef656aa7848f710f189 | |
parent | Buncha work. (diff) | |
download | vimwiki-scripts-29a0b7530d6bf50056e4903512e5c205c7078b6f.tar.gz vimwiki-scripts-29a0b7530d6bf50056e4903512e5c205c7078b6f.tar.xz |
Manually number attachements.
-rwxr-xr-x | do.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()) |