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

Open
johno wants to merge 1 commits from fix/mu4e-email-body-nixos-configs-9l8 into main
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
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/mu4e-email-body-nixos-configs-9l8:fix/mu4e-email-body-nixos-configs-9l8
git checkout fix/mu4e-email-body-nixos-configs-9l8
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