[nixos-configs-9l8] Fix mu4e emails sending without body content #4

Merged
johno merged 1 commits from fix/mu4e-email-body-nixos-configs-9l8 into main 2026-01-13 17:48:36 -08:00
Owner

Summary

Fixes mu4e emails being sent with empty body content when using msmtp.

Problem

When sending emails via mu4e with msmtp, the email body was being stripped - especially for multipart messages generated by org-msg (enabled via the +org flag in Doom Emacs).

Root Cause

The msmtp configuration was missing critical settings:

  • message-sendmail-f-is-evil was not set, causing Emacs to add the -f flag which confuses msmtp
  • --read-envelope-from argument was missing, which tells msmtp to read the sender from headers

Changes

  • Added message-sendmail-f-is-evil t to prevent the problematic -f flag
  • Added message-sendmail-extra-arguments '("--read-envelope-from")
  • Set both send-mail-function and message-send-mail-function explicitly

Testing

After applying this fix, reload Doom config (SPC h r r) or restart Emacs, then send a test email to verify the body content is preserved.


Bead: nixos-configs-9l8

## Summary Fixes mu4e emails being sent with empty body content when using msmtp. ## Problem When sending emails via mu4e with msmtp, the email body was being stripped - especially for multipart messages generated by org-msg (enabled via the `+org` flag in Doom Emacs). ## Root Cause The msmtp configuration was missing critical settings: - `message-sendmail-f-is-evil` was not set, causing Emacs to add the `-f` flag which confuses msmtp - `--read-envelope-from` argument was missing, which tells msmtp to read the sender from headers ## Changes - Added `message-sendmail-f-is-evil t` to prevent the problematic -f flag - Added `message-sendmail-extra-arguments '("--read-envelope-from")` - Set both `send-mail-function` and `message-send-mail-function` explicitly ## Testing After applying this fix, reload Doom config (`SPC h r r`) or restart Emacs, then send a test email to verify the body content is preserved. --- **Bead:** nixos-configs-9l8
johno added 3 commits 2026-01-10 10:40:20 -08:00
The mu4e msmtp configuration was causing email bodies to be stripped,
especially for multipart messages from org-msg. This was due to missing
critical msmtp settings.

Changes:
- Add message-sendmail-f-is-evil to prevent -f flag issues
- Add --read-envelope-from to msmtp arguments
- Set both send-mail-function and message-send-mail-function

Fixes: nixos-configs-9l8
johno changed title from fix(mu4e): Configure msmtp to preserve email body content to [nixos-configs-265] Fix mu4e emails sending without body content 2026-01-10 12:52:44 -08:00
johno changed title from [nixos-configs-265] Fix mu4e emails sending without body content to [nixos-configs-9l8] Fix mu4e emails sending without body content 2026-01-10 12:53:16 -08:00
johno force-pushed fix/mu4e-email-body-nixos-configs-9l8 from 05ad04764e to 07ecbf3141 2026-01-13 16:41:40 -08:00 Compare
johno merged commit 0bc134f557 into main 2026-01-13 17:48:36 -08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johno/nixos-configs#4