GNU bug report logs - #9312
24.0.50; smtpmail

Previous Next

Package: emacs;

Reported by: emacs user <user.emacs <at> gmail.com>

Date: Wed, 17 Aug 2011 13:06:02 UTC

Severity: normal

Tags: fixed

Merged with 9292

Found in version 24.0.50

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9312 in the body.
You can then email your comments to 9312 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Wed, 17 Aug 2011 13:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to emacs user <user.emacs <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 17 Aug 2011 13:06:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: emacs user <user.emacs <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; smtpmail
Date: Wed, 17 Aug 2011 09:02:46 -0400
hello, when sending mail using vm during the past two weeks or so, I am
getting the error bellow.  Please let me know if there are any other
details I can provide.  Thanks...

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  byte-code("
  smtpmail-via-smtp((#("xx <at> yy" 0 4 (fontified nil) 4 14 (fontified
nil) 14 28 (fontified nil))) #<buffer  smtpmail temp>)
  smtpmail-send-it()
  mail-send()
  vm-mail-send()
  vm-mail-send-and-exit(nil)


In GNU Emacs 24.0.50.2 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
 of 2011-08-17 on xx
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--with-ns''




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Wed, 24 Aug 2011 04:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: emacs user <user.emacs <at> gmail.com>
Cc: 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Wed, 24 Aug 2011 00:11:28 -0400
emacs user wrote:

> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>   byte-code("
>   smtpmail-via-smtp((#("xx <at> yy" 0 4 (fontified nil) 4 14 (fontified
> nil) 14 28 (fontified nil))) #<buffer  smtpmail temp>)
>   smtpmail-send-it()

This doesn't tell us anything except that something went wrong inside
the smtpmail-via-smtp function. As a first step to get more info, please
try

M-x load-file /path/to/emacs/lisp/mail/smtpmail.el

to load the uncompiled library, set debug-on-error non-nil, repeat the
error and post the resulting, hopefully more detailed, backtrace.

> In GNU Emacs 24.0.50.2 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
>  of 2011-08-17 on xx




Merged 9292 9312. Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Wed, 24 Aug 2011 18:13:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Thu, 25 Aug 2011 00:50:02 GMT) Full text and rfc822 format available.

Message #13 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: emacs user <user.emacs <at> gmail.com>
Cc: 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Wed, 24 Aug 2011 20:46:53 -0400
emacs user wrote (on Wed, 24 Aug 2011 at 18:10 -0400):

> thanks for the response, please see attached.  apologies for replying
> only to you rather than the group, I couldn't be sure there is no
> private information/ passwords embedded in this output that I am
> attaching.

Fair enough. I am including the list again since I only quote a piece
of what you sent:

> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>   =(nil 530)
>   (and auth-mechanisms (not ask-for-password) (= (car result) 530))

It looks like your smtp server returned something unexpected after
being presented with a "MAIL FROM" command. I made a change to handle
this a little better, but it still probably won't actually work.

The next step is probably to set smtpmail-debug-info non-nil, repeat
the error, and post the contents of the "*trace of SMTP ..." buffer;
perhaps just whatever the server responds after the "MAIL FROM"
command.






Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Thu, 25 Aug 2011 02:02:02 GMT) Full text and rfc822 format available.

Message #16 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: emacs user <user.emacs <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Wed, 24 Aug 2011 21:58:52 -0400
thanks again, here it is.  note that when I use emacs 23.3 this does work well.

220 HUB00.xx.edu Microsoft ESMTP MAIL Service ready at Wed, 24 Aug
2011 21:53:29 -0400
250-HUB00.xx.edu Hello [10.xx]
250-SIZE 20971520
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250 CHUNKING
220 2.0.0 SMTP server ready
250-HUB00.xx.edu Hello [10.xx]
250-SIZE 20971520
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH GSSAPI NTLM LOGIN
250-8BITMIME
250-BINARYMIME
250 CHUNKING

Process smtpmail connection broken by remote peer
MAIL FROM:<yy <at> xx.edu> SIZE=365
530 5.7.1 Client was not authenticated
QUIT


On Wed, Aug 24, 2011 at 8:46 PM, Glenn Morris <rgm <at> gnu.org> wrote:
>
> emacs user wrote (on Wed, 24 Aug 2011 at 18:10 -0400):
>
>> thanks for the response, please see attached.  apologies for replying
>> only to you rather than the group, I couldn't be sure there is no
>> private information/ passwords embedded in this output that I am
>> attaching.
>
> Fair enough. I am including the list again since I only quote a piece
> of what you sent:
>
>> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>>   =(nil 530)
>>   (and auth-mechanisms (not ask-for-password) (= (car result) 530))
>
> It looks like your smtp server returned something unexpected after
> being presented with a "MAIL FROM" command. I made a change to handle
> this a little better, but it still probably won't actually work.
>
> The next step is probably to set smtpmail-debug-info non-nil, repeat
> the error, and post the contents of the "*trace of SMTP ..." buffer;
> perhaps just whatever the server responds after the "MAIL FROM"
> command.
>
>
>




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Thu, 25 Aug 2011 05:57:01 GMT) Full text and rfc822 format available.

Message #19 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: emacs user <user.emacs <at> gmail.com>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Thu, 25 Aug 2011 01:53:56 -0400
emacs user wrote:

> 250 CHUNKING
>
> Process smtpmail connection broken by remote peer
> MAIL FROM:<yy <at> xx.edu> SIZE=365
> 530 5.7.1 Client was not authenticated
> QUIT

Sorry, I think you need the help of someone who speaks smtp (Lars?).
It looks to me like this is a case (530) that should be handled.
It should try again, but this time asking you for a password
to authenticate to your smtp server. I can't see why it errors out.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Sat, 03 Sep 2011 22:09:01 GMT) Full text and rfc822 format available.

Message #22 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: emacs user <user.emacs <at> gmail.com>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Sun, 04 Sep 2011 00:01:50 +0200
Glenn Morris <rgm <at> gnu.org> writes:

> Sorry, I think you need the help of someone who speaks smtp (Lars?).
> It looks to me like this is a case (530) that should be handled.
> It should try again, but this time asking you for a password
> to authenticate to your smtp server. I can't see why it errors out.

Did you fix this in revno 105558, but forgot to chose the report?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Sat, 03 Sep 2011 22:31:02 GMT) Full text and rfc822 format available.

Message #25 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: emacs user <user.emacs <at> gmail.com>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Sat, 03 Sep 2011 18:26:36 -0400
Lars Magne Ingebrigtsen wrote:

> Glenn Morris <rgm <at> gnu.org> writes:
>
>> Sorry, I think you need the help of someone who speaks smtp (Lars?).
>> It looks to me like this is a case (530) that should be handled.
>> It should try again, but this time asking you for a password
>> to authenticate to your smtp server. I can't see why it errors out.
>
> Did you fix this in revno 105558, but forgot to chose the report?

I don't think I fixed it, because I don't see how the debug from

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9312#16

could lead to the error from the initial report; and the changes in
r105558 just mean Emacs won't throw a wrong-type-argument error, but the
mail still won't get sent, will it?

If the server returns 530, Emacs should try again but prompt for a
password, no?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Sat, 03 Sep 2011 23:11:02 GMT) Full text and rfc822 format available.

Message #28 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: emacs user <user.emacs <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Sat, 3 Sep 2011 16:06:39 -0700
On Sat, Sep 3, 2011 at 3:26 PM, Glenn Morris <rgm <at> gnu.org> wrote:
> Lars Magne Ingebrigtsen wrote:
>
>> Glenn Morris <rgm <at> gnu.org> writes:
>>
>>> Sorry, I think you need the help of someone who speaks smtp (Lars?).
>>> It looks to me like this is a case (530) that should be handled.
>>> It should try again, but this time asking you for a password
>>> to authenticate to your smtp server. I can't see why it errors out.
>>
>> Did you fix this in revno 105558, but forgot to chose the report?
>
> I don't think I fixed it, because I don't see how the debug from
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9312#16
>
> could lead to the error from the initial report; and the changes in
> r105558 just mean Emacs won't throw a wrong-type-argument error, but the
> mail still won't get sent, will it?
>
> If the server returns 530, Emacs should try again but prompt for a
> password, no?
>

I wanted to add that this doesn't happen for all smtp servers.
smtpmail works well for me with google.com, but produces this bug with
what I think is a Microsoft Exchange server.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Sat, 10 Sep 2011 18:53:01 GMT) Full text and rfc822 format available.

Message #31 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: emacs user <user.emacs <at> gmail.com>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Sat, 10 Sep 2011 20:43:32 +0200
Glenn Morris <rgm <at> gnu.org> writes:

>> 250 CHUNKING
>>
>> Process smtpmail connection broken by remote peer
>> MAIL FROM:<yy <at> xx.edu> SIZE=365
>> 530 5.7.1 Client was not authenticated
>> QUIT
>
> Sorry, I think you need the help of someone who speaks smtp (Lars?).
> It looks to me like this is a case (530) that should be handled.
> It should try again, but this time asking you for a password
> to authenticate to your smtp server. I can't see why it errors out.

smtpmail.el does the following on MAIL FROM:

	       ((and auth-mechanisms
		     (not ask-for-password)
		     (eq (car result) 530))
		;; We got a "530 auth required", so we close and try
		;; again, this time asking the user for a password.
		(smtpmail-send-command process "QUIT")
		(smtpmail-read-response process)

So it should ask for a password if the server has announced a
willingness to accept auth.

Which it has:

250-AUTH GSSAPI NTLM LOGIN

So I don't understand what's going on here.

Emacs User, could you try to edebug through `smtpmail-via-smtp' and see
what happens when you send an email?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Mon, 12 Sep 2011 05:46:02 GMT) Full text and rfc822 format available.

Message #34 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: emacs user <user.emacs <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Mon, 12 Sep 2011 08:40:37 +0300
On Sat, Sep 10, 2011 at 9:43 PM, Lars Magne Ingebrigtsen <larsi <at> gnus.org> wrote:
>
> smtpmail.el does the following on MAIL FROM:
>
>               ((and auth-mechanisms
>                     (not ask-for-password)
>                     (eq (car result) 530))
>                ;; We got a "530 auth required", so we close and try
>                ;; again, this time asking the user for a password.
>                (smtpmail-send-command process "QUIT")
>                (smtpmail-read-response process)
>
> So it should ask for a password if the server has announced a
> willingness to accept auth.
>
> Which it has:
>
> 250-AUTH GSSAPI NTLM LOGIN
>
> So I don't understand what's going on here.
>
> Emacs User, could you try to edebug through `smtpmail-via-smtp' and see
> what happens when you send an email?

I think the error message comes from this part of the code;
 (smtpmail-send-command
	       process (format "MAIL FROM:<%s>%s%s"
			       envelope-from size-part body-part))

here is some of the edebug output, let me know if there is something
more specific I can provide

Result: (8bitmime (auth gssapi ntlm login) enhancedstatuscodes dsn
(size \20...0))

Result: #<process smtpmail>
 [2 times]
Result: "xx <at> yy.edu"

Result: " SIZE=373"

Result: ""

Result: "MAIL FROM:<xx <at> yy.edu> SIZE=373"

error: "Process smtpmail not running"




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Mon, 12 Sep 2011 05:47:02 GMT) Full text and rfc822 format available.

Message #37 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: emacs user <user.emacs <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Mon, 12 Sep 2011 07:39:26 +0200
emacs user <user.emacs <at> gmail.com> writes:

> error: "Process smtpmail not running"

This just means that the SMTP server closed the connection, probably
because you took too long.  Try SPC-ing faster.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Tue, 13 Sep 2011 20:20:02 GMT) Full text and rfc822 format available.

Message #40 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: emacs user <user.emacs <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Tue, 13 Sep 2011 23:15:22 +0300
On Mon, Sep 12, 2011 at 8:39 AM, Lars Magne Ingebrigtsen <larsi <at> gnus.org> wrote:
> emacs user <user.emacs <at> gmail.com> writes:
>
>> error: "Process smtpmail not running"
>
> This just means that the SMTP server closed the connection, probably
> because you took too long.  Try SPC-ing faster.  :-)

OK, tried again, *much* faster...  same response.  I actually get this
error message also when not using edebug.  here is the traceback.
admittedly, I switched by smtp server away from this one, so am not
affected by this bug personally.  will still be glad to explore this
some more if you feel this may be useful.  cheers, E

Debugger entered--Lisp error: (error "Process smtpmail not running")
  process-send-string(#<process smtpmail> "QUIT")
  smtpmail-send-command(#<process smtpmail> "QUIT")
  byte-code("
  smtpmail-via-smtp((#("xx <at> yy" 0 4 (fontified nil) 4 14 (fontified
nil) 14 28 (fontified nil))) #<buffer  smtpmail temp>)
  smtpmail-send-it()
  mail-send()
  vm-mail-send()
  vm-mail-send-and-exit(nil)
  call-interactively(vm-mail-send-and-exit nil nil)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Tue, 13 Sep 2011 20:42:05 GMT) Full text and rfc822 format available.

Message #43 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: emacs user <user.emacs <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Tue, 13 Sep 2011 22:33:27 +0200
emacs user <user.emacs <at> gmail.com> writes:

> OK, tried again, *much* faster...  same response.  I actually get this
> error message also when not using edebug.  here is the traceback.
> admittedly, I switched by smtp server away from this one, so am not
> affected by this bug personally.  will still be glad to explore this
> some more if you feel this may be useful.  cheers, E
>
> Debugger entered--Lisp error: (error "Process smtpmail not running")
>   process-send-string(#<process smtpmail> "QUIT")

But now it fails on QUIT and not MAIL FROM, which is progress.  :-)

After sending MAIL FROM, what's the value of the `result' variable?

That is, after calling `smtpmail-read-response' here:

	      (smtpmail-send-command
	       process (format "MAIL FROM:<%s>%s%s"
			       envelope-from size-part body-part))
	      (cond
	       ((smtpmail-ok-p (setq result (smtpmail-read-response process)))
		;; Success.
		)


-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Tue, 13 Sep 2011 20:53:02 GMT) Full text and rfc822 format available.

Message #46 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: emacs user <user.emacs <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Tue, 13 Sep 2011 23:47:38 +0300
On Tue, Sep 13, 2011 at 11:33 PM, Lars Magne Ingebrigtsen
<larsi <at> gnus.org> wrote:
> emacs user <user.emacs <at> gmail.com> writes:
>
>> OK, tried again, *much* faster...  same response.  I actually get this
>> error message also when not using edebug.  here is the traceback.
>> admittedly, I switched by smtp server away from this one, so am not
>> affected by this bug personally.  will still be glad to explore this
>> some more if you feel this may be useful.  cheers, E
>>
>> Debugger entered--Lisp error: (error "Process smtpmail not running")
>>   process-send-string(#<process smtpmail> "QUIT")
>
> But now it fails on QUIT and not MAIL FROM, which is progress.  :-)
>
> After sending MAIL FROM, what's the value of the `result' variable?
>
> That is, after calling `smtpmail-read-response' here:
>
>              (smtpmail-send-command
>               process (format "MAIL FROM:<%s>%s%s"
>                               envelope-from size-part body-part))
>              (cond
>               ((smtpmail-ok-p (setq result (smtpmail-read-response process)))
>                ;; Success.
>                )

is this what we are looking for:

Result: " SIZE=374"
Result: ""
Result: "MAIL FROM:<my <at> address.edu> SIZE=374"
Result: nil
 [5 times]
Result: #<process smtpmail>
Result: (nil "te peer\nMAIL FROM:<my <at> address.edu> SIZE=374")
Result: (nil "te peer\nMAIL FROM:<my <at> adress.edu> SIZE=374")




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Tue, 13 Sep 2011 20:54:02 GMT) Full text and rfc822 format available.

Message #49 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: emacs user <user.emacs <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Tue, 13 Sep 2011 22:45:45 +0200
emacs user <user.emacs <at> gmail.com> writes:

>>               ((smtpmail-ok-p (setq result (smtpmail-read-response process)))
>>                ;; Success.
>>                )
>
> is this what we are looking for:
>
> Result: " SIZE=374"
> Result: ""
> Result: "MAIL FROM:<my <at> address.edu> SIZE=374"
> Result: nil
>  [5 times]
> Result: #<process smtpmail>
> Result: (nil "te peer\nMAIL FROM:<my <at> address.edu> SIZE=374")
> Result: (nil "te peer\nMAIL FROM:<my <at> adress.edu> SIZE=374")

Is that the value of the `result' variable?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Tue, 13 Sep 2011 21:03:01 GMT) Full text and rfc822 format available.

Message #52 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: emacs user <user.emacs <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Tue, 13 Sep 2011 23:58:00 +0300
On Tue, Sep 13, 2011 at 11:45 PM, Lars Magne Ingebrigtsen
<larsi <at> gnus.org> wrote:
> emacs user <user.emacs <at> gmail.com> writes:
>
>>>               ((smtpmail-ok-p (setq result (smtpmail-read-response process)))
>>>                ;; Success.
>>>                )
>>
>> is this what we are looking for:
>>
>> Result: " SIZE=374"
>> Result: ""
>> Result: "MAIL FROM:<my <at> address.edu> SIZE=374"
>> Result: nil
>>  [5 times]
>> Result: #<process smtpmail>
>> Result: (nil "te peer\nMAIL FROM:<my <at> address.edu> SIZE=374")
>> Result: (nil "te peer\nMAIL FROM:<my <at> adress.edu> SIZE=374")
>
> Is that the value of the `result' variable?

I believe it is.  am not too much of an expert...




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Wed, 14 Sep 2011 18:15:02 GMT) Full text and rfc822 format available.

Message #55 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: emacs user <user.emacs <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Wed, 14 Sep 2011 21:09:32 +0300
On Tue, Sep 13, 2011 at 11:58 PM, emacs user <user.emacs <at> gmail.com> wrote:
> On Tue, Sep 13, 2011 at 11:45 PM, Lars Magne Ingebrigtsen
> <larsi <at> gnus.org> wrote:
>> emacs user <user.emacs <at> gmail.com> writes:
>>
>>>>               ((smtpmail-ok-p (setq result (smtpmail-read-response process)))
>>>>                ;; Success.
>>>>                )
>>>
>>> is this what we are looking for:
>>>
>>> Result: " SIZE=374"
>>> Result: ""
>>> Result: "MAIL FROM:<my <at> address.edu> SIZE=374"
>>> Result: nil
>>>  [5 times]
>>> Result: #<process smtpmail>
>>> Result: (nil "te peer\nMAIL FROM:<my <at> address.edu> SIZE=374")
>>> Result: (nil "te peer\nMAIL FROM:<my <at> adress.edu> SIZE=374")
>>
>> Is that the value of the `result' variable?
>
> I believe it is.  am not too much of an expert...
>

interestingly, when using gmail for smtp (which works fine for me),
result gets the very different value

 (250 "250 2.1.0 OK somerandomlettershere.19")

is this helpful?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Wed, 14 Sep 2011 22:00:03 GMT) Full text and rfc822 format available.

Message #58 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: emacs user <user.emacs <at> gmail.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Wed, 14 Sep 2011 23:51:13 +0200
emacs user <user.emacs <at> gmail.com> writes:

>>>> Result: (nil "te peer\nMAIL FROM:<my <at> address.edu> SIZE=374")
>>>> Result: (nil "te peer\nMAIL FROM:<my <at> adress.edu> SIZE=374")
>>>
>>> Is that the value of the `result' variable?
>>
>> I believe it is.  am not too much of an expert...
>>
>
> interestingly, when using gmail for smtp (which works fine for me),
> result gets the very different value
>
>  (250 "250 2.1.0 OK somerandomlettershere.19")

Interesting.  I wonder whether there's a race condition in
`smtpmail-read-response', because the thing you're getting back from
that function is just wrong.

Could you do the following?  After you've gotten the (nil "te peer")
thing back, could you switch to the "*trace of SMTP session ..."
buffer and post the entire contents of that buffer?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Wed, 14 Sep 2011 23:16:01 GMT) Full text and rfc822 format available.

Message #61 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: emacs user <user.emacs <at> gmail.com>
Cc: 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Thu, 15 Sep 2011 01:07:09 +0200
I've now fixed a bug in smtpmail that may or may not be the cause of the
problems you're seeing.  Could you give it a try?  And if it still
doesn't work, post the "*trace ..." buffer.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Sat, 17 Sep 2011 15:29:02 GMT) Full text and rfc822 format available.

Message #64 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: emacs user <user.emacs <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Sat, 17 Sep 2011 18:23:31 +0300
On Thu, Sep 15, 2011 at 2:07 AM, Lars Magne Ingebrigtsen <larsi <at> gnus.org> wrote:
> I've now fixed a bug in smtpmail that may or may not be the cause of the
> problems you're seeing.  Could you give it a try?  And if it still
> doesn't work, post the "*trace ..." buffer.

220 HUB00.xx.edu Microsoft ESMTP MAIL Service ready at Sat, 17 Sep
2011 11:07:52 -0400
250-HUB00.xx.edu Hello [xx.yy.39.xx]
250-SIZE 20971520
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250 CHUNKING
220 2.0.0 SMTP server ready
250-HUB00.xx.edu Hello [xx.yy.39.xx]
250-SIZE 20971520
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH GSSAPI NTLM LOGIN
250-8BITMIME
250-BINARYMIME
250 CHUNKING
MAIL FROM:<xx <at> yy.zz.edu> SIZE=375
530 5.7.1 Client was not authenticated

Process smtpmail connection broken by remote peer
QUIT
QUIT




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Sun, 18 Sep 2011 07:46:04 GMT) Full text and rfc822 format available.

Message #67 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: emacs user <user.emacs <at> gmail.com>
Cc: 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Sun, 18 Sep 2011 09:37:07 +0200
emacs user <user.emacs <at> gmail.com> writes:

> MAIL FROM:<xx <at> yy.zz.edu> SIZE=375
> 530 5.7.1 Client was not authenticated
>
> Process smtpmail connection broken by remote peer
> QUIT
> QUIT

Aha!  I now think I know what the problem is, and I may have fixed it in
the current bzr Emacs.  Could you try?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Sun, 18 Sep 2011 16:04:01 GMT) Full text and rfc822 format available.

Message #70 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: emacs user <user.emacs <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Sun, 18 Sep 2011 18:58:14 +0300
On Sun, Sep 18, 2011 at 10:37 AM, Lars Magne Ingebrigtsen wrote:
> emacs user <user.emacs <at> gmail.com> writes:
>
>> MAIL FROM:<xx <at> yy.zz.edu> SIZE=375
>> 530 5.7.1 Client was not authenticated
>>
>> Process smtpmail connection broken by remote peer
>> QUIT
>> QUIT
>
> Aha!  I now think I know what the problem is, and I may have fixed it in
> the current bzr Emacs.  Could you try?
>

indeed works!  brilliant of you, thanks for persisting!  cheers, E




Added tag(s) fixed. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 18 Sep 2011 18:40:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.1, send any further explanations to 9312 <at> debbugs.gnu.org and emacs user <user.emacs <at> gmail.com> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 18 Sep 2011 18:40:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9312; Package emacs. (Sun, 18 Sep 2011 18:43:07 GMT) Full text and rfc822 format available.

Message #77 received at 9312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: emacs user <user.emacs <at> gmail.com>
Cc: 9312 <at> debbugs.gnu.org
Subject: Re: bug#9312: 24.0.50; smtpmail
Date: Sun, 18 Sep 2011 20:32:04 +0200
emacs user <user.emacs <at> gmail.com> writes:

>> Aha!  I now think I know what the problem is, and I may have fixed it in
>> the current bzr Emacs.  Could you try?
>
> indeed works!

Great!

Thanks for debugging this.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 17 Oct 2011 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.