Turns out this is required to be spec-compliant. I don't think this was
why things broke in my tests, but it is good to be comlpiant.
'contenttype': '{}; name={}'.format(_get_contenttype_from_extension(f), f),
'filename': f,
'disposition': 'inline; filename="{}"'.format(f),
- 'id': '<{}>'.format(f),
+ 'id': '<{}@img>'.format(f),
}
with open(os.path.join(basedir, f), "rb") as f:
a['content'] = f.read()
{%block content%}
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" style="width: 100%;">
<tr>
- <td><img style="width: 50px; height: 50px;" height="50" width="50" src="cid:slonik.png" alt="PostgreSQL logo"></td>
+ <td><img style="width: 50px; height: 50px;" height="50" width="50" src="cid:slonik.png@img" alt="PostgreSQL logo"></td>
<td style="text-align: center;"><h1>{{news.title}}</h1></td>
- <td><img style="width: 50px; height: 50px;" height="50" width="50" src="cid:slonik.png" alt="PostgreSQL logo"></td>
+ <td><img style="width: 50px; height: 50px;" height="50" width="50" src="cid:slonik.png@img" alt="PostgreSQL logo"></td>
</tr>
</table>
{{news.content|markdown}}