all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Please excuse this XEmacs user's desperation: smtpmail.el over SSL
Date: Tue, 30 Mar 2010 18:33:41 +0200	[thread overview]
Message-ID: <87hbnx22hm.fsf@fh-trier.de> (raw)
In-Reply-To: 3af47939-f589-4102-8b84-6724f8a18e1e@y17g2000yqd.googlegroups.com

edburns <edburns@gmail.com> writes:

> (defun smtpmail-open-stream (process-buffer host port)
>   (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))))
>   ;; The normal case.
> =>  (open-network-stream "SMTP" process-buffer host port)
>       (let* ((cred-key (smtpmail-cred-key cred))
>        (cred-cert (smtpmail-cred-cert cred))
> host is stbeehive.oracle.com
> port is 465
> Can anyone help me here?  I mean, open-network-stream is just opening
> a simple TCP connection.  That happens before SSL is established,
> right?
>

Either `cred' is unbound at this point, or there is an error inside 
the condition-case.  So the questions are :

a) What is the value of `cred' ?
b) What happens (error or not) if you remove the condition-case
  from this function ?

> Can anyone please help?
>

-ap

> Sincerely,
>
> Ed Burns


  parent reply	other threads:[~2010-03-30 16:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-30  2:02 Please excuse this XEmacs user's desperation: smtpmail.el over SSL edburns
2010-03-30  3:25 ` edburns
2010-03-30 13:30 ` Christian Dietrich
2010-03-30 15:19   ` edburns
2010-03-30 16:33 ` Andreas Politz [this message]
2010-03-30 16:41   ` Andreas Politz
2010-04-01 19:46     ` edburns
2010-04-02  4:42       ` Andreas Politz
2010-03-31 13:39 ` Ted Zlatanov
2010-04-01 19:46   ` edburns
2010-04-05 14:30     ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hbnx22hm.fsf@fh-trier.de \
    --to=politza@fh-trier.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.