emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the default for `send-mail-function'


From: Christoph Scholtes
Subject: Re: Changing the default for `send-mail-function'
Date: Sun, 26 Jun 2011 16:49:00 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11

On 6/26/2011 4:05 PM, Lars Magne Ingebrigtsen wrote:

> Does the following hack make smtpmail.el work for you?
>
> === modified file 'lisp/net/network-stream.el'
> *** lisp/net/network-stream.el     2011-06-26 21:05:06 +0000
> --- lisp/net/network-stream.el     2011-06-26 22:04:17 +0000
> ***************
> *** 305,310 ****
> --- 305,311 ----
>            (while (and (memq (process-status stream) '(open run))
>                        (not (re-search-forward end-of-command nil t)))
>              (accept-process-output stream 0 50)
> +    (set-buffer (process-buffer stream))
>              (goto-char start))
>            ;; Return the data we got back, or nil if the process died.
>            (unless (= start (point))
>

No, but I get past this specific error with this patch:

=== modified file 'lisp/mail/smtpmail.el'
*** lisp/mail/smtpmail.el       2011-06-22 19:24:51 +0000
--- lisp/mail/smtpmail.el       2011-06-26 22:33:50 +0000
***************
*** 639,645 ****
                 :type smtpmail-stream-type
                 :return-list t
                 :capability-command (format "EHLO %s\r\n" (smtpmail-fqdn))
!                :end-of-command "^[0-9]+ .*\r\n"
                 :success "^2.*\n"
                 :always-query-capabilities t
                 :starttls-function
--- 639,645 ----
                 :type smtpmail-stream-type
                 :return-list t
                 :capability-command (format "EHLO %s\r\n" (smtpmail-fqdn))
!                :end-of-command "^[0-9]+ .*\n"
                 :success "^2.*\n"
                 :always-query-capabilities t
                 :starttls-function


It seems to be a problem with line-endings on Windows.

It still does not send the mail though. Trace buffer:

220 mx.google.com ESMTP d6sm4780041icx.13
250-mx.google.com at your service, [71.208.187.152]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
250-mx.google.com at your service, [71.208.187.152]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
220 2.0.0 Ready to start TLS
250-mx.google.com at your service, [71.208.187.152]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES

Process smtpmail deleted
MAIL FROM:<address@hidden>

530-5.5.1 Authentication Required. Learn more at

530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 d6sm4780041icx.13

QUIT

221 2.0.0 closing connection d6sm4780041icx.13

From the *Messages* buffer:

Sending...
Sending via mail...
gnutls.c: [1] (Emacs) GnuTLS library loaded: libgnutls-26.dll
530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 d6sm4780041icx.13
221 2.0.0 closing connection d6sm4780041icx.13
smtpmail-send-it: Sending failed: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 d6sm4780041icx.13

It seems it loads the gnutls dll correctly. If I don't specify the authentication parameters, shouldn't it ask me to supply them?

Christoph



reply via email to

[Prev in Thread] Current Thread [Next in Thread]