>>>> "Stephen" == Stephen J Turnbull
Stephen> Raymond Toy writes:
> Sorry for taking so long, but Here is a proper patch for what
> done. I haven't had any problems with sending mail out with this
> +(defun smtpmail-process-sentinel (process event)
> + (message event)
> + (delete-process process)
> + (unless smtpmail-debug-info
> + (kill-buffer process-buffer)))
Stephen> Thanks for the patch. What do you know about the EVENT that triggers
Stephen> the sentinel? It makes me nervous that you just delete the process
From a few test messages to myself just now, it appears that EVENT is
the string "finished\n". And (process-status process) is exit.
Stephen> and kill the buffer on *any* event.
I confess that I don't know the sentinel stuff at all, but since the
sentinel is set only when smtpmail is sending the QUIT message to the
smtp server after the entire message has been sent, perhaps it's not
so bad. And the original code always deleted the process and killed
the buffer. The check for the response is commented out in the
I'm happy to supply a new patch not to kill the process and buffer if
the process-status is not exit.
XEmacs-Beta mailing list