mirror of
https://git.sr.ht/~rjarry/aerc
synced 2025-12-18 08:51:15 +01:00
Add a new html-inline-images option in the [viewer] section that enables inlining of images referenced by <img> tags with cid: URLs in HTML emails. When enabled, aerc will parse HTML content to find <img src="cid:..."> references, fetch the corresponding image parts using their Content-ID and use base64 encoding to embed images directly in HTML using data: URLs. This allows HTML emails with embedded images to be properly viewed in w3m and other browsers that support data: URLs. The implementation uses asynchronous callbacks to fetch all images in parallel without blocking. The feature works with all aerc commands that fetch message parts (:save, :open, :pipe, and viewing). Updated the filters/html script to enable w3m image support with sixel graphics when img2sixel is available. Add documentation for the new html-inline-images viewer option in both the default aerc.conf and the aerc-config(5) man page. Implements: https://todo.sr.ht/~rjarry/aerc/252 Changelog-added: New `[viewer].html-inline-images` option to replace `<img src="cid:...">` tags in `text/html` parts with their related `image/*` part data encoded in base64. For this to work with sixel compatible terminals, you need to update your filters with `text/html = ! html -sixel` and install `img2sixel`. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com> Tested-by: Inwit <inwit@sindominio.net> Tested-by: Matthew Phillips <matthew@matthewphillips.info> |
||
|---|---|---|
| .. | ||
| auth | ||
| autoconfig | ||
| calendar | ||
| crypto | ||
| format | ||
| hooks | ||
| ipc | ||
| iterator | ||
| jwz | ||
| log | ||
| marker | ||
| notmuch | ||
| pama | ||
| parse | ||
| pinentry | ||
| rfc822 | ||
| send | ||
| sort | ||
| state | ||
| templates | ||
| ui | ||
| watchers | ||
| xdg | ||
| attachment.go | ||
| dirstore.go | ||
| dirstore_test.go | ||
| emlview.go | ||
| history.go | ||
| inlineimages.go | ||
| keepalive_dummy.go | ||
| keepalive_linux.go | ||
| messageview.go | ||
| msgstore.go | ||
| notmuch_version.go | ||
| notmuch_version_dummy.go | ||
| oauthbearer.go | ||
| open.go | ||
| structure_helpers.go | ||
| structure_helpers_test.go | ||
| threadbuilder.go | ||
| xoauth2.go | ||