all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: emacs-devel@gnu.org
Subject: Re: smtpmail.el and 1msg
Date: Wed, 10 Mar 2004 23:51:56 +0100	[thread overview]
Message-ID: <iluhdwwiacz.fsf@latte.josefsson.org> (raw)
In-Reply-To: <16463.23363.546305.750102@freezer.sbum.org> (jglauner@sbum.org's message of "Wed, 10 Mar 2004 12:15:31 -0600")

jglauner@sbum.org writes:

>   > Do you have of a reference to this 1msg stuff?  
>
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=53a824b6.0402031144.54558593%40posting.google.com&rnum=30&prev=/groups%3Fq%3D1msg%26start%3D20%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D53a824b6.0402031144.54558593%2540posting.google.com%26rnum%3D30
>
> Sorry about the long URL there, but I that thread was as close as I
> could find.  Basically, SBC came in and made some changes that aren't
> compatible with various mailers including Mozilla, Eudora, and Emacs
> smtpmail...  If I use smtpauth.sbcglobal.net and use AUTH LOGIN, I can
> send just fine and it waits for QUIT just like it's supposed to.  
>
> Ultimately, I suspect that other ISPs are going to use the 1msg option
> to help stop spammers.  *eyeroll* Not sure how it should be
> incorporated...  all I know for sure is that my patch Works For Me.
> ;-)

Thanks for the reference.  I'm not sure about your patch -- it appears
wrong to look for /1msg.  I think the right fix would be to fix the
code so that smtpmail.el doesn't hang forever waiting for response to
QUIT.  So it should work without detecting "/1msg".  Does this patch
help?  If not, can you pinpoint exactly where does smtpmail.el hang,
using (setq debug-on-quit t) and pressing C-g when it spins?

--- smtpmail.el.~1.65.~	2004-02-11 13:34:59.000000000 +0100
+++ smtpmail.el	2004-03-10 23:50:06.000000000 +0100
@@ -1,6 +1,6 @@
 ;;; smtpmail.el --- simple SMTP protocol (RFC 821) for sending mail
 
-;; Copyright (C) 1995, 1996, 2001, 2002, 2003 Free Software Foundation, Inc.
+;; Copyright (C) 1995, 1996, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
 ;; Author: Tomoji Kagatani <kagatani@rbc.ncl.omron.co.jp>
 ;; Maintainer: Simon Josefsson <simon@josefsson.org>
@@ -778,10 +778,12 @@
 	(response-continue t)
 	(return-value '(nil ()))
 	match-end)
-
+    (catch 'done
     (while response-continue
       (goto-char smtpmail-read-point)
       (while (not (search-forward "\r\n" nil t))
+	  (unless (memq (process-status process) '(open run))
+	    (throw 'done nil))
 	(accept-process-output process)
 	(goto-char smtpmail-read-point))
 
@@ -817,10 +819,8 @@
 	    (setq smtpmail-read-point match-end)
 	    (setq response-continue nil)
 	    (setq return-value
-		  (cons nil (nreverse response-strings)))
-	    )
-	  )))
-    (setq smtpmail-read-point match-end)
+		    (cons nil (nreverse response-strings)))))))
+      (setq smtpmail-read-point match-end))
     return-value))

  reply	other threads:[~2004-03-10 22:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-04 21:29 smtpmail.el and 1msg jglauner
2004-03-08 16:51 ` Simon Josefsson
2004-03-09 22:36   ` Simon Josefsson
2004-03-10 18:15     ` jglauner
2004-03-10 22:51       ` Simon Josefsson [this message]
2004-03-10 23:05         ` Jonathan Glauner
2004-03-10 23:11           ` Simon Josefsson
2004-03-10 23:24             ` Jonathan Glauner
2004-03-10 23:38             ` Jonathan Glauner
2004-03-11 10:54               ` Simon Josefsson
2004-03-12 13:42           ` Stefan Monnier
2004-03-11 14:37   ` Stefan Monnier
2004-03-11 18:52     ` Simon Josefsson
2004-03-11 19:11       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluhdwwiacz.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.