The docstring for mh-x-face-file says that you can set it to nil to disable the creation of an X-Face header in outgoing mail. But if you actually do that, you get an error. The debugger says
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
mh-compose-and-send-mail("draft-1" "" nil nil "" "" "" nil nil #<window-configuration>)
mh-send-sub("" "" "" #<window-configuration>)
mh-send("" "" "")
call-interactively(mh-smail record nil)
call-interactively(execute-extended-command nil nil)
Originally observed in MH-E 8.3.1, and confirmed (by looking at the source) that the same issue exists in MH-E 8.5. Emacs 24.3 (and maybe 23.4; I can't remember what Ubuntu 12.04 ships).
The fix looks simple enough:
(defun mh-insert-x-face ()
"Append X-Face, Face or X-Image-URL field to header.
If the field already exists, this function does nothing."
(when (and mh-x-face-file <--- ensure mh-x-face-file is non-nil
Or would it be better to check using (stringp mh-x-face-file)?
Log in to post a comment.