aboutsummaryrefslogtreecommitdiff
path: root/tests/test-custom-buffer-file--view-email-in-buffer.el
Commit message (Collapse)AuthorAgeFilesLines
* fix(custom-buffer-file): stop leaking the MIME handle in the email viewerCraig Jennings22 hours1-0/+20
| | | | | | cj/view-email-in-buffer dissected the message into a handle, then signaled a user-error when it found no displayable part, before the mm-destroy-parts cleanup. The handle leaked on every image-only or attachment-only email. Wrap the body in unwind-protect so the handle is always destroyed. While here, the eager top-level require of mm-decode only fed the mm-handle-type macro at compile time. The viewer already requires mm-decode at runtime before any mm-* call, so I moved it to eval-when-compile plus declare-function (matching the ps-print block above). Opening Emacs no longer loads mm-decode unless you view an email.
* fix(email): improve MIME handle parsing for email viewerCraig Jennings2026-02-041-0/+237
- Add helper functions for robust MIME structure navigation - cj/--email-handle-is-type-p: check handle content type - cj/--email-find-displayable-part: recursively find HTML/plain text - Handle both leaf handles and nested multipart structures - Add 9 unit tests covering normal, boundary, and error cases