unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: gnu-emacs-bug@moderators.individual.net
Subject: Re: smtpmail believes starttls is not needed
Date: Fri, 26 Oct 2007 20:16:46 +0900	[thread overview]
Message-ID: <b4mtzoeyvkx.fsf@jpl.org> (raw)
In-Reply-To: mailman.2587.1193394072.18990.bug-gnu-emacs@gnu.org

>>>>> François Puitg wrote:

> If   I comment the  suspected lines   in smtpmail-open-stream as shown
> below,   the authentification takes    place  and everything works  as
> expected (I'm not greylisted any more) :

> (defun smtpmail-open-stream (process-buffer host port)
>   (let ((cred (smtpmail-find-credentials
> 	       smtpmail-starttls-credentials host port)))
> ;    (if (null (and cred (condition-case ()
> ;			    (with-no-warnings
> 			      (require 'starttls)
> ;			      (call-process (if starttls-use-gnutls
> ;						starttls-gnutls-program
> ;					      starttls-program)))
> ;			  (error nil))))
> ;	;; The normal case.
> ;	(progn
> ;	  (insert-string "open-network-stream\n" mondebug)
> ;	  (open-network-stream "SMTP" process-buffer host port))

You use XEmacs 21.4.20, right?  I believe the real cause of your
problem is there is not the `with-no-warnings' function.  How
about adding the following?

;; Extracted from byte-run.el in GNU Emacs.
(defun with-no-warnings (&rest body)
  "Like `progn', but prevents compiler warnings in the body."
  ;; The implementation for the interpreter is basically trivial.
  (car (last body)))

;; The byte compiler version of this function is similar to:
;;
;;(defmacro with-no-warnings (&rest body)
;;  (cons 'progn body))
;;
;; See bytecomp.el.

I think what should be suspected is the usage of `with-no-warnings'
in smtpmail.el.

Regards,




       reply	other threads:[~2007-10-26 11:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2587.1193394072.18990.bug-gnu-emacs@gnu.org>
2007-10-26 11:16 ` Katsumi Yamaoka [this message]
2007-10-26  8:53 smtpmail believes starttls is not needed François Puitg
2007-10-26 11:43 ` Katsumi Yamaoka

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=b4mtzoeyvkx.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=gnu-emacs-bug@moderators.individual.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).