- Chris Johnson <[EMAIL PROTECTED]>:
| How does Emacs inject mail?
Usually, it uses sendmail-send-it, defined in sendmail.el. The
important part says
(apply 'call-process-region
(append (list (point-min) (point-max)
(if (boundp 'sendmail-program)
sendmail-program
"/usr/lib/sendmail")
nil errbuf nil "-oi")
;; Always specify who from,
;; since some systems have broken sendmails.
(list "-f" (user-login-name))
(and mail-alias-file
(list (concat "-oA" mail-alias-file)))
;; These mean "report errors by mail"
;; and "deliver in background".
(if (null mail-interactive) '("-oem" "-odb"))
;; Get the addresses from the message
;; unless this is a resend.
;; We must not do that for a resend
;; because we would find the original addresses.
;; For a resend, include the specific addresses.
(or resend-to-addresses
'("-t"))))
In other words, it basically runs
/usr/lib/sendmail -oi -f USER -oem -edb -t
where USER is your login name.
That is presumably what causes the problem.
This was from emacs 19; things may be different in the emacs 20 world.
- Harald