[nixos-configs-9l8] Fix mu4e emails sending without body content #4
Reference in New Issue
Block a user
Delete Branch "fix/mu4e-email-body-nixos-configs-9l8"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
+orgflag in Doom Emacs).Root Cause
The msmtp configuration was missing critical settings:
message-sendmail-f-is-evilwas not set, causing Emacs to add the-fflag which confuses msmtp--read-envelope-fromargument was missing, which tells msmtp to read the sender from headersChanges
message-sendmail-f-is-evil tto prevent the problematic -f flagmessage-sendmail-extra-arguments '("--read-envelope-from")send-mail-functionandmessage-send-mail-functionexplicitlyTesting
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
fix(mu4e): Configure msmtp to preserve email body contentto [nixos-configs-265] Fix mu4e emails sending without body content[nixos-configs-265] Fix mu4e emails sending without body contentto [nixos-configs-9l8] Fix mu4e emails sending without body contentView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.