[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing the default for `send-mail-function'
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: Changing the default for `send-mail-function' |
Date: |
Mon, 27 Jun 2011 01:36:21 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
Christoph Scholtes <address@hidden> writes:
> ! :end-of-command "^[0-9]+ .*\r\n"
[...]
> It seems to be a problem with line-endings on Windows.
Huh. Hm. Could it be an encoding problem? That is, would binding
(let* ((coding-system-for-read 'binary)
(coding-system-for-write 'binary)
before opening the connection, and/or
(set-buffer-multibyte nil)
in the buffer be the right thing? smtpmail.el didn't use to do that, so
I didn't do that either, but I think that would make sense.
Could you try the following patch?
=== modified file 'lisp/mail/smtpmail.el'
*** lisp/mail/smtpmail.el 2011-06-26 21:05:06 +0000
--- lisp/mail/smtpmail.el 2011-06-26 23:32:53 +0000
***************
*** 615,620 ****
--- 615,622 ----
(and mail-specify-envelope-from
(mail-envelope-from))
user-mail-address))
+ (coding-system-for-read 'binary)
+ (coding-system-for-write 'binary)
response-code
process-buffer
result
***************
*** 626,631 ****
--- 628,634 ----
(setq process-buffer
(get-buffer-create
(format "*trace of SMTP session to %s*" host)))
+ (set-buffer-multibyte nil)
;; clear the trace buffer of old output
(with-current-buffer process-buffer
> It still does not send the mail though. Trace buffer:
>
> 220 mx.google.com ESMTP d6sm4780041icx.13
[...]
> 250-AUTH LOGIN PLAIN XOAUTH
It's announcing AUTH as it should...
> 250 ENHANCEDSTATUSCODES
>
> Process smtpmail deleted
> MAIL FROM:<address@hidden>
>
> 530-5.5.1 Authentication Required. Learn more at
We're getting the right error message, so at this point, smtpmail should
be asking you for a password, which it didn't.
When I try the same, it does, so perhaps it's more line-ending encoding
issues? Seems awfully strange though, but there's a slight possibility
that the patch above fixes this too.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
- Re: Changing the default for `send-mail-function', (continued)
- Re: Changing the default for `send-mail-function', Lars Magne Ingebrigtsen, 2011/06/26
- Re: Changing the default for `send-mail-function', Christoph Scholtes, 2011/06/26
- Re: Changing the default for `send-mail-function', Lars Magne Ingebrigtsen, 2011/06/26
- Re: Changing the default for `send-mail-function', Christoph Scholtes, 2011/06/26
- Re: Changing the default for `send-mail-function', Lars Magne Ingebrigtsen, 2011/06/26
- Re: Changing the default for `send-mail-function', Christoph Scholtes, 2011/06/26
- Re: Changing the default for `send-mail-function',
Lars Magne Ingebrigtsen <=
- Re: Changing the default for `send-mail-function', Lars Magne Ingebrigtsen, 2011/06/26
- Re: Changing the default for `send-mail-function', Christoph Scholtes, 2011/06/26
- Re: Changing the default for `send-mail-function', Lars Magne Ingebrigtsen, 2011/06/27
- Re: Changing the default for `send-mail-function', Eli Zaretskii, 2011/06/26
- Re: Changing the default for `send-mail-function', Christoph Scholtes, 2011/06/26
- Re: Changing the default for `send-mail-function', Eli Zaretskii, 2011/06/27
- Re: Changing the default for `send-mail-function', Lars Magne Ingebrigtsen, 2011/06/27
- Re: Changing the default for `send-mail-function', Eli Zaretskii, 2011/06/27
- Re: Changing the default for `send-mail-function', Lars Magne Ingebrigtsen, 2011/06/27
- Re: Changing the default for `send-mail-function', Christoph Scholtes, 2011/06/27