>>>> "Stephen" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
Stephen> Raymond Toy writes:
> Sorry for taking so long, but Here is a proper patch for what
I've
> done. I haven't had any problems with sending mail out with this
> patch.
> +(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
original code.
I'm happy to supply a new patch not to kill the process and buffer if
the process-status is not exit.
Ray
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta