reopen 114849
reassign 114849 emacs24
found 114849 24.4+1-4
retitle 114849 Invoke sendmail with -odb -oee
thanks

I have just reproduced this with emacs24 in sid.

I did this:
 * Install emacs and exim4-daemon-light
 * Ran emacs -nw -f mail
 * Started an (as root) an strace -ff of the relevant pid
 * Filled in an email address and subject and body and sent the mail

I observed emacs doing this:
  execve("/usr/sbin/sendmail", ["/usr/sbin/sendmail", "-oi", "-oep", "-odi", 
"-t"], [/* 50 vars */]) = 0

Emacs should use -odb -oee.

-odb means to deliver the mail in the background.  I.e., the parent
sendmail exits as soon as it has queued the mail.  Without this, emacs
might hang because of network problems.

-oee means to produce a useful exit status.  See the exim4 manpage.

NB that -odb *MUST NOT* be achieved by setting `mail-interactive' to
`nil'.  `mail-interactive' controls whether Emacs waits for the exit
status from the sendmail that it spawns and MUST be set to `t'.
Otherwise mail can be lost.

Thankfully with the situation in sid, I don't think mail can be lost.
It might generate _both_ an error in emacs _and_ a bounce.  And as I
say Emacs might hang.

Ian.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to