Gnus development mailing list
 help / color / mirror / Atom feed
* The return of starttls doesn't work in smtpmail
@ 2007-08-17  2:21 Wolfram Fenske
  2007-08-17  8:30 ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfram Fenske @ 2007-08-17  2:21 UTC (permalink / raw)
  To: ding

Hello!

After upgrading my Gnus I couldn't send mail via smtpmail+starttls
anymore.  The reason was that it uses the function `with-no-warnings',
which isn't defined in XEmacs.  After finding and fixing the problem
myself it turns out this is a known problem:
<http://calypso.tux.org/pipermail/xemacs-beta/2007-March/010883.html>

Back then, Simon Josefsson's response was:

--8<---------------cut here---------------start------------->8---
> Simon, I think that the best thing would be to just get rid of the
> with-no-warnings call (unless you know of bogus warnings that will
> definitely be issued), and we probably ought to change the
> condition-case to catch 'io-error, which will catch all exceptions due
> to expectable process failures.

There are several uses of with-no-warnings in modern elisp, how about
if XEmacs implements it?  The implementation seems straight forward,
here is what my Emacs has:

(put 'with-no-warnings 'lisp-indent-function 0)
(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)))

Thanks for the CC.
--8<---------------cut here---------------end--------------->8---

According to
<http://quimby.gnus.org/cgi-bin/cvsweb.cgi/gnus/contrib/smtpmail.el>,
smptmail.el still isn't fixed.  Since I can't change XEmacs, as Simon
proposed, I suggest to add the following code to smtpmail.el or
gnus.el or whichever place is appropriate, to prevent even more people
from getting bitten by this:

--8<---------------cut here---------------start------------->8---
;;; XEmacs and older Emacs might not have `with-no-warnings'
(unless (fboundp 'with-no-warnings)
  ;; Taken from Emacs' byte-run.el
  (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))))
--8<---------------cut here---------------end--------------->8---

-- 
Wolfram Fenske

A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-19 21:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-17  2:21 The return of starttls doesn't work in smtpmail Wolfram Fenske
2007-08-17  8:30 ` Reiner Steib
2007-08-19 21:17   ` Wolfram Fenske

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 NNTP newsgroup(s).