From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jason.wright@inl.gov (Jason L. Wright) Newsgroups: gmane.emacs.bugs Subject: bug#11444: 23.3; smtpmail / lotus server Date: Wed, 09 May 2012 12:39:12 -0600 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1336589409 30902 80.91.229.3 (9 May 2012 18:50:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 May 2012 18:50:09 +0000 (UTC) To: 11444@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 09 20:50:06 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSBxZ-0001Xg-8X for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 May 2012 20:50:01 +0200 Original-Received: from localhost ([::1]:52167 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSBxY-0004om-HB for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 May 2012 14:50:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSBxP-0004o9-V1 for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 14:49:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSBxN-0003Od-Of for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 14:49:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSBxN-0003OX-LJ for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 14:49:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SSBzW-0005UY-Fi for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 14:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: jason.wright@inl.gov (Jason L. Wright) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 May 2012 18:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11444 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133658951121086 (code B ref -1); Wed, 09 May 2012 18:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 May 2012 18:51:51 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-Received: from ([134.20.5.24]) by mail-out2.inel.gov with ESMTP id JBF5VL1.17848078; Wed, 09 May 2012 12:39:14 -0600 Original-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 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 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Wed, 09 May 2012 14:49:58 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59895 Archived-At: 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)