The following message is a courtesy copy of an article
that has been posted to gmane.emacs.xemacs.beta as well.
Jerry James <james(a)xemacs.org> writes:
On Mon, Jan 5, 2015 at 12:06 PM, Marcus
<marcus.harnisch(a)xemacs.org> wrote:
> During debugging the root cause of unexplicable SMTP authentication
> failures it turned out that after eval'ing the buffer "smtpmail.el"
> things suddenly started working :-/
Can you walk us through an example of things going wrong? Which
variables have you customized? Does smtpmail-smtp-server have the
expected value when things don't work?
This issue seems to be related to the conditional deciding whether to
open a normal or a TLS connection in #'smtpmail-open-stream.
(let ((cred (smtpmail-find-credentials
smtpmail-starttls-credentials host port)))
(if (null (and cred (condition-case ()
;; XEmacs change
(with-boundp '(starttls-use-gnutls
starttls-gnutls-program
starttls-program)
(require 'starttls)
(call-process (if starttls-use-gnutls
starttls-gnutls-program
starttls-program)))
(error nil))))
This is difficult to debug since after using #'edebug-defun things
work consistently.
While things are still *not* working, I can see in the trace-output
that #'smtpmail-find-credentials returns a list (i.e non-nil). Not
sure if cred is actually assigned, though. Tracing the condition-case
doesn't produce any output, as if it wasn't even called. This sort of
tells me that cred was nil.
Puzzled.
Thanks
Marcus
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta