From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65064 Path: news.gmane.org!not-for-mail From: Wolfram Fenske Newsgroups: gmane.emacs.gnus.general Subject: The return of starttls doesn't work in smtpmail Date: Fri, 17 Aug 2007 04:21:48 +0200 Message-ID: <86d4xmyk77.fsf@hondo.cadr.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187317372 9023 80.91.229.12 (17 Aug 2007 02:22:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2007 02:22:52 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13574@lists.math.uh.edu Fri Aug 17 04:22:49 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1ILrU8-0005oh-JY for ding-account@gmane.org; Fri, 17 Aug 2007 04:22:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1ILrTM-0003Ub-LR; Thu, 16 Aug 2007 21:22:00 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1ILrTJ-0003UD-Mc for ding@lists.math.uh.edu; Thu, 16 Aug 2007 21:21:57 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1ILrTF-0000ul-Ob for ding@lists.math.uh.edu; Thu, 16 Aug 2007 21:21:57 -0500 Original-Received: from mail.uni-magdeburg.de ([141.44.1.10]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ILrTE-0002vE-00 for ; Fri, 17 Aug 2007 04:21:52 +0200 Original-Received: from sunny.urz.uni-magdeburg.de ([141.44.8.7]) by mail.uni-magdeburg.de with esmtp (EXIM Version 4.62) for id 1ILrTC-0000ha-7f; Fri, 17 Aug 2007 04:21:51 +0200 Original-Received: from hondo.cadr.de (p54B6BC78.dip0.t-ipconnect.de [84.182.188.120]) (authenticated bits=0) by sunny.urz.uni-magdeburg.de (8.12.10/8.12.10) with ESMTP id l7H2LnSr023316 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 17 Aug 2007 04:21:50 +0200 Mail-Followup-To: ding@gnus.org X-Spam-Score: -4.0 (----) X-Spam-Report: ---- Start SpamAssassin results Content analysis details: (-4.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.4 AWL AWL: From: address is in the auto white-list ---- End of SpamAssassin results X-Scan-Signature: 55778b15ab165876ba455c8d65d312fa X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65064 Archived-At: 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: 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 , 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?