From debbugs-submit-bounces@debbugs.gnu.org Wed May 09 14:51:51 2012 Received: (at submit) by debbugs.gnu.org; 9 May 2012 18:51:51 +0000 Received: from localhost ([127.0.0.1]:43535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSBzJ-0005U2-KJ for submit@debbugs.gnu.org; Wed, 09 May 2012 14:51:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60641) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSBpc-0005E5-8y for submit@debbugs.gnu.org; Wed, 09 May 2012 14:41:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSBnL-0006fk-NN for submit@debbugs.gnu.org; Wed, 09 May 2012 14:39:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,LONGWORDS, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSBnL-0006fe-Jo for submit@debbugs.gnu.org; Wed, 09 May 2012 14:39:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSBnJ-0002Si-Eb for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 14:39:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSBnH-0006ZF-3N for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 14:39:24 -0400 Received: from mail-out2.inl.gov ([134.20.2.17]:64965 helo=mail-out2.inel.gov) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSBnG-0006WI-NY for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 14:39:23 -0400 Received: from ([134.20.5.24]) by mail-out2.inel.gov with ESMTP id JBF5VL1.17848078; Wed, 09 May 2012 12:39:14 -0600 Received: from linux-h1g9.site ([134.20.230.15]) by lnmail04.inel.gov (Lotus Domino Release 7.0.4FP1 HF143) with ESMTP id 2012050912391273-77806 ; Wed, 9 May 2012 12:39:12 -0600 From: jason.wright@inl.gov (Jason L. Wright) To: bug-gnu-emacs@gnu.org Subject: 23.3; smtpmail / lotus server Date: Wed, 09 May 2012 12:39:12 -0600 Message-ID: MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on LNMAIL04/ENT/INEEL/US(Release 7.0.4FP1 HF143|January 11, 2010) at 05/09/2012 12:39:12 PM, Serialize by Router on LNMAIL04/ENT/INEEL/US(Release 7.0.4FP1 HF143|January 11, 2010) at 05/09/2012 12:39:14 PM, Serialize complete at 05/09/2012 12:39:14 PM X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 09 May 2012 14:51:48 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Using smtpmail to send mail: M-x compose-email ... type type type, ^C^C, and the result back from the SMTP server is "500 Syntax error" when using smtpmail talking to a Lotus (boo hiss!) server. SMTP trace is below. I watched it with tcpdump and smtpmail is -not- doing anything wrong (RFC-wise). But the stupid server gets bent out of shape if the \r\n's for the DATA command are sent in different packets. Changing smtpmail-send-command from: (defun smtpmail-send-command (process command) (goto-char (point-max)) (if (string-match "\\`AUTH [A-Z]+ " command) (insert (match-string 0 command) "\r\n") (insert command "\r\n")) (setq smtpmail-read-point (point)) (process-send-string process command) (process-send-string process "\r\n")) To (note the concat in process-send-string): (defun smtpmail-send-command (process command) (goto-char (point-max)) (if (string-match "\\`AUTH [A-Z]+ " command) (insert (match-string 0 command) "\r\n") (insert command "\r\n")) (setq smtpmail-read-point (point)) (process-send-string process (concat command "\r\n"))) This appears to fix it right up. This isn't a bug with smtpmail, it's a server bug (which I can't fix), but at least I can make the client appease the server. Process SMTP deleted 220 ***********************************************************************= ************************************** EHLO linux-h1g9.site 250-smtp.mydomain.com Hello linux-h1g9.site ([10.10.10.2]), pleased to meet= you 250-XXXA 250-SIZE 102400000 250 PIPELINING MAIL FROM: SIZE=3D1021 250 my@mydomain.com... Sender OK RCPT TO: 250 you@otherdomain.com... Recipient OK DATA 500 Syntax error, command "XXXX" unrecognized QUIT 500 Syntax error, command "XXXX" unrecognized In GNU Emacs 23.3.1 (i586-suse-linux-gnu, GTK+ Version 2.24.7) of 2011-10-29 on build34 configured using `configure '--with-pop' '--without-hesiod' '--with-kerber= os' '--with-kerberos5' '--with-xim' '--enable-autodepend' '--prefix=3D/usr'= '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--datadir=3D/us= r/share' '--localstatedir=3D/var' '--sharedstatedir=3D/var/lib' '--libexecd= ir=3D/usr/lib' '--with-x' '--with-sound' '--with-sync-input' '--with-xpm' '= --with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-rsvg' '--with-= dbus' '--without-gpm' '--with-x-toolkit=3Dgtk' '--x-includes=3D/usr/include= ' '--x-libraries=3D/usr/lib:/usr/share/X11' '--with-xft' '--with-libotf' '-= -with-m17n-flt' '--build=3Di586-suse-linux' 'build_alias=3Di586-suse-linux'= 'CFLAGS=3D-fomit-frame-pointer -fmessage-length=3D0 -O2 -Wall -D_FORTIFY_S= OURCE=3D2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g= -D_GNU_SOURCE -std=3Dgnu89 -pipe -Wno-pointer-sign -Wno-unused-variable -W= no-unused-label -Wno-unprototyped-calls -fno-optimize-sibling-calls -DSYSTE= M_PURESIZE_EXTRA=3D55000 -DSITELOAD_PURESIZE_EXTRA=3D10000 ' 'LDFLAGS=3D-= Wl,-O2 -Wl,--hash-size=3D65521'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Summary Minor modes in effect: show-paren-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: RET y g RET ESC x r e p o r t - e m a c s - b u g=20 RET Recent messages: nnimap: Listing subscribed mailboxes on work...done No new newsgroups Checking new news...done Reading active file from work via nnimap... nnimap: Checking mailboxes...done Checking new news...done Retrieving newsgroup: nnimap+work:INBOX... Fetching headers for nnimap+work:INBOX...done Generating summary...done Auto-saving... Load-path shadows: ~/emacs/gnugo hides /usr/share/emacs/site-lisp/gnugo/gnugo ~/emacs/flymake hides /usr/share/emacs/23.3/lisp/progmodes/flymake /usr/share/emacs/site-lisp/ruby-mode hides /usr/share/emacs/23.3/lisp/progm= odes/ruby-mode Features: (shadow warnings emacsbug mailalias smtpmail sendmail newcomment sort gnus-cite ansi-color mail-extr gnus-async gnus-bcklg parse-time timezone byte-opt bytecomp byte-compile gnus-ml utf-7 utf7 nndraft nnmh auth-source nnimap imap gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime dig nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message idna ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils mailheader canlock sha1 hex-util hashcash gnus-win gnus gnus-ems nnheader gnus-util netrc time-date mail-utils mm-util mail-prsvr flymake easy-mmode compile help-fns erc-goodies erc erc-backend erc-compat format-spec pp paren cus-start cus-load rmailgen ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a executable shell ess-arc-d ess-vst-d ess-xls-d ess-lsp-l ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp5-d ess-sp3-d ess-r-d ess-r-args assoc ess-s-l ess-inf ess-utils comint ring ess-mode noweb-mode ess ess-custom regexp-opt ess-compat ess-site color-theme easymenu wid-edit cl cl-19 preview-latex tex-site auto-loads ispell lpr disp-table tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Wed May 09 15:12:31 2012 Received: (at 11444) by debbugs.gnu.org; 9 May 2012 19:12:31 +0000 Received: from localhost ([127.0.0.1]:43543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSCJL-00060g-HA for submit@debbugs.gnu.org; Wed, 09 May 2012 15:12:31 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:40596) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSCJJ-00060Y-Ei for 11444@debbugs.gnu.org; Wed, 09 May 2012 15:12:31 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SSCH1-0001EM-Iw; Wed, 09 May 2012 21:10:07 +0200 From: Lars Magne Ingebrigtsen To: jason.wright@inl.gov (Jason L. Wright) Subject: Re: bug#11444: 23.3; smtpmail / lotus server References: Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEXz8e7v7erm5eHRz8zI x8R6enfg3ts5OTfr6eX///8HBwX9/f0ZGBb39vOwr63Z2NWoPKZWAAACOUlEQVQ4jcXTwWvTUBwH 8FdbBx4yk8NEDx1tEI0XQVOvq65FPOhAu5oyJGIOoZ56aSiUR2n08vwTxs6jEN6tMBg99BQK5SEZ LUWRjMksu0iFlcV5cPE17ZIMep4/wg/e78P390gg4M/m/AL/HbZatLzjVgDvaWuXFCRwjG3tQU2C pBwCAaEIsEAM1vJdY3v3HHbUItIjLACLpCxTCBKqgjhuAtA8rIagqQocAIxtL0Hz6QVQkO7BVbI9 NMJwzKMZ4O453KOt58xW9YkmhaHp0E0T6MHcmWTUfGgrOrAs27aj0mpprbLuw47AWhagMJDr+o1h LQR1uorCl7e2be3nQpAAgKUyOPhG26kHnzxITi/ff9GL2xbjQ5sXuMgETv4uJ2wAAlB5naObLJkZ JSPMNHFr+uZJeoW1+Or65+RDBvjQd+i3YsDeUUfC0hPWDiDN8yxgFzZIvosL8XBCLXIct9A15Uck fxCCtKvc1NGSoa0nlocvIx5cmwH6INzF+V/xwf3vIADH4RHif5LOMxtEH9R9iImuc0dRIcam+PjK Oy5IUFDVMSFdohWQgnyIiq7rOmd03tEKH2fw1YM0ld+4S6D2+jYv+NATx5mx+BxjQhrySqkYQErM iKkNgg0CayNX8aGfEkUxC6vY6FTNUfrYh1g2mxJXTIJxB1Zk9/QCZFKkAY1KZSSrxc3dAGhB8wib lcP8eJqY/AuxDJ1nTmrpN42ym1OKPjTpXMyujbznR3bVh3l1KdBqzad/AxdoN9JXoGMAAAAASUVO RK5CYII= X-Now-Playing: Various's _Metal Dance (2)_: "John Carpenter & Alan Howarth - The Duke Arrives: The Barricade - The President At The Train (12" Re-Edit)" Date: Wed, 09 May 2012 21:10:06 +0200 In-Reply-To: (Jason L. Wright's message of "Wed, 09 May 2012 12:39:12 -0600") Message-ID: User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1SSCH1-0001EM-Iw X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1337195407.97658@m2CUMWTogK09z/iq+p39jA X-Spam-Status: No X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11444 Cc: 11444@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) jason.wright@inl.gov (Jason L. Wright) writes: > Using smtpmail to send mail: M-x compose-email ... type type type, > ^C^C, and the result back from the SMTP server is "500 Syntax error" when > using smtpmail talking to a Lotus (boo hiss!) server. SMTP trace is > below. I watched it with tcpdump and smtpmail is -not- doing anything > wrong (RFC-wise). But the stupid server gets bent out of shape if the > \r\n's for the DATA command are sent in different packets. [...] > To (note the concat in process-send-string): Amusing bug. :-) I've applied your fix to the Emacs 24 branch. While not strictly speaking a regression (since smtpmail.el has always done this), smtpmail.el is going to get a lot more usage with Emacs 24.1, so I think this minor change is warranted. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Wed May 09 15:15:33 2012 Received: (at control) by debbugs.gnu.org; 9 May 2012 19:15:33 +0000 Received: from localhost ([127.0.0.1]:43547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSCMH-00065a-0n for submit@debbugs.gnu.org; Wed, 09 May 2012 15:15:33 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:40631) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSCMF-00065U-DR for control@debbugs.gnu.org; Wed, 09 May 2012 15:15:32 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SSCK0-0001HW-4W for control@debbugs.gnu.org; Wed, 09 May 2012 21:13:12 +0200 Date: Wed, 09 May 2012 21:13:11 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #11444 X-MailScanner-ID: 1SSCK0-0001HW-4W X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1337195592.30136@KMuTe75rHnNZSptxUnnMrw X-Spam-Status: No X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) tags 11444 fixed close 11444 24.1 From unknown Tue Jun 17 01:48:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 07 Jun 2012 11:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator