[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: smtpmail believes starttls is not needed

From: Katsumi Yamaoka
Subject: Re: smtpmail believes starttls is not needed
Date: Fri, 26 Oct 2007 20:16:46 +0900
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

>>>>> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]