You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(server): cache HTML attachments at ~/.cache/mailbrus/html/<id>.html
The unified open_attachment handler wrote every part to
/tmp/<id>_<name>, which left HTML attachments at a path the
browser was free to sniff as text/plain.
- Branch on mime: text/html parts go to
$XDG_CACHE_HOME/mailbrus/html/<safe-id>.html (stable, single
".html" suffix); all other parts keep the existing temp_dir
behavior.
- Open HTML via a file:// URL so it routes through the browser
junction (same fix as b41854a, which the new handler had lost).
- Other attachments still open with open::that_detached on the
bare path.
0 commit comments