* bug#15669: 24.2; smtpmail asks for password for anonymous logins
@ 2013-10-21 7:35 Uday S Reddy
2013-10-22 13:22 ` Ted Zlatanov
2015-12-27 22:56 ` Lars Ingebrigtsen
0 siblings, 2 replies; 6+ messages in thread
From: Uday S Reddy @ 2013-10-21 7:35 UTC (permalink / raw)
To: 15669; +Cc: U.S.Reddy
I use an SMTP server that uses anonymous login with no password. With Emacs
24.2, with auth-sources loaded, I find that sending a message through
mail-mode asks for a password. No password should be required for anonymous
login. This problem did not occur with Emacs 23.
Looking through the code, I trace the problem to the function
`smtpmail-try-auth-methods' which has the comment
;; The user has stored the user name, but not the password, so
;; ask for the password, even if we're not forcing that through
;; `ask-for-password'.
This code is getting fired even when `user' has the value "anonymous".
Cheers,
Uday
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
d:/gnu/emacs-24.2/etc/DEBUG.
In GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600)
of 2012-08-29 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
`configure --with-gcc (4.6) --cflags
-ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
-ID:/devel/emacs/libs/giflib-4.1.4-1/include
-ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include
-ID:/devel/emacs/libs/gnutls-3.0.9/include'
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: ENU
value of $XMODIFIERS: nil
locale-coding-system: cp1252
default enable-multibyte-characters: t
Major mode: VM Summary
Minor modes in effect:
shell-dirtrack-mode: t
savehist-mode: t
show-paren-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-r p a s s w o r d C-s C-r C-r C-a C-x c <return>
M-x a u t h - s o u r c e SPC f o r SPC SPC SPC <return>
C-x m C-x o C-x m u d r C-n C-e t e t <backspace> s
t SPC f r m <backspace> <backspace> r o m SPC E m a
c s SPC 2 4 <return> <backspace> C-c C-c <return> C-x
b * s c SPC <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<return> <f1> C-x . M-x s u b m i t SPC SPC <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
r e p o r t - e m SPC SPC b SPC <return> s m t p m
a i l SPC a k s SPC f o r <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> s k s SPC f o r
SPC p a s s w o r d SPC f o r SPC a n o n y m o u s
SPC l o g i n <return> C-x b <return> M-x C-g C-x <escape>
<escape> <up> <up> <up> <up> <up> C-g C-x m C-x k <return>
M-x r e p o r t - e m a c s - b u SPC <return>
Recent messages:
Sending email
Sending email done
250 OK id=1VY9p6-0004Bw-Lr
221 mx1.cs.bham.ac.uk closing connection
Sending...done
Mark set
Making completion list...
and: Wrong type argument: arrayp, nil
Quit [2 times]
`mail to _ on ""' is gone forever!
Load-path shadows:
d:/Home/udr/share/emacs/sml-mode hides d:/gnu/emacs-24.2/../site-lisp/sml-mode
d:/Home/udr/share/emacs/session hides d:/gnu/emacs-24.2/../site-lisp/session
d:/Home/udr/share/emacs/savehist-20+ hides d:/gnu/emacs-24.2/../site-lisp/savehist-20+
d:/Home/udr/share/emacs/outline-magic hides d:/gnu/emacs-24.2/../site-lisp/outline-magic
d:/Home/udr/share/emacs/longlines hides d:/gnu/emacs-24.2/../site-lisp/longlines
d:/Home/udr/share/emacs/esmtpmail hides d:/gnu/emacs-24.2/../site-lisp/esmtpmail
d:/Home/udr/share/emacs/buf-sel hides d:/gnu/emacs-24.2/../site-lisp/buf-sel
d:/Home/udr/share/emacs/longlines hides d:/gnu/emacs-24.2/lisp/longlines
d:/gnu/packages/bbdb-2013-01/lisp/loaddefs hides d:/gnu/emacs-24.2/lisp/loaddefs
d:/gnu/emacs-24.2/../site-lisp/electric hides d:/gnu/emacs-24.2/lisp/electric
d:/gnu/emacs-24.2/../site-lisp/debug hides d:/gnu/emacs-24.2/lisp/emacs-lisp/debug
Features:
(shadow emacsbug vm-pine pp info cus-edit cus-start cus-load find-dired
shell haskell-doc imenu haskell-indentation haskell-font-lock haskell-mode
reposition skeleton sgml-mode thingatpt vm-mark mule-util rfc2368 debug
wdired bibcmds ediff-merg ediff-diff ediff-wind ediff-help ediff-util
ediff-mult ediff-init ediff tabify texmathp dired-aux flyspell ispell
mail-extr newcomment vm-digest message mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 gmm-utils mailheader smtpmail mailalias org-wl
org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs
org-html org-exp ob-exp org-exp-blocks find-func org-agenda org-info
org-gnus org-docview org-bibtex bibtex org-bbdb org ob-emacs-lisp ob-tangle
ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval
org-pcomplete pcomplete comint ansi-color org-list org-faces org-compat
org-entities org-macs format-spec cal-menu calendar cal-loaddefs misearch
multi-isearch preview prv-emacs tex-buf font-latex latex tex-style tex
latexenc help-mode view vm-delete rfc822 w3m-form w3m browse-url doc-view
jka-compr image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems wid-edit w3m-ccl
ccl w3m-favicon w3m-image w3m-proc w3m-util vm-w3m utf-7 gnutls
network-stream starttls tls vm-save tapestry vm-sort u-vm-color my-vm vc-bzr
etags ring vm-ps-print vm-rfaddons vm-undo vm-page bbdb-vm vm-message
vm-macro vm-autoload bbdb-mua bbdb-com mailabbrev vm dired-x mydired dired
outline-magic noutline outline yasnippet-autoloads package tabulated-list
server w3m-load bbdb-loaddefs bbdb easymenu vm-reply vm-virtual
vm-summary-faces vm-pop utf7 vm-imap vm-thread vm-mime vm-motion vm-mouse
vm-toolbar vm-menu vm-window vm-crypto vm-summary vm-folder vm-minibuf
vm-misc timezone vm-pcrisis vm-autoloads vm-version vm-vars myautopair
autopair warnings savehist session movement natural-space NatSpeak sendmail
rfc2047 rfc2045 ietf-drums mail-utils auth-source eieio byte-opt bytecomp
byte-compile cconv macroexp assoc gnus-util mm-util mail-prsvr
password-cache epa-file epa epg epg-config regexp-opt paren echistory
chistory ehelp electric easy-mmode cl derived advice help-fns advice-preload
edmacro kmacro preview-latex tex-site auto-loads time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp
w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar 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 minibuffer loaddefs button faces cus-face files
text-properties overlay sha1 md5 base64 format env code-pages mule custom
widget hashtable-print-readable backquote make-network-process multi-tty
emacs)
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#15669: 24.2; smtpmail asks for password for anonymous logins
2013-10-21 7:35 bug#15669: 24.2; smtpmail asks for password for anonymous logins Uday S Reddy
@ 2013-10-22 13:22 ` Ted Zlatanov
2013-10-22 18:11 ` Uday S Reddy
2015-12-27 22:56 ` Lars Ingebrigtsen
1 sibling, 1 reply; 6+ messages in thread
From: Ted Zlatanov @ 2013-10-22 13:22 UTC (permalink / raw)
To: Uday S Reddy; +Cc: 15669
On Mon, 21 Oct 2013 08:35:42 +0100 Uday S Reddy <u.s.reddy@cs.bham.ac.uk> wrote:
USR> I use an SMTP server that uses anonymous login with no password. With Emacs
USR> 24.2, with auth-sources loaded, I find that sending a message through
USR> mail-mode asks for a password. No password should be required for anonymous
USR> login. This problem did not occur with Emacs 23.
USR> Looking through the code, I trace the problem to the function
USR> `smtpmail-try-auth-methods' which has the comment
USR> ;; The user has stored the user name, but not the password, so
USR> ;; ask for the password, even if we're not forcing that through
USR> ;; `ask-for-password'.
USR> This code is getting fired even when `user' has the value "anonymous".
I don't think `anonymous' is a special user name for SMTP, right? We
should really be looking at the SMTP response?
Can you use any password or does it have be empty?
Ted
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#15669: 24.2; smtpmail asks for password for anonymous logins
2013-10-22 13:22 ` Ted Zlatanov
@ 2013-10-22 18:11 ` Uday S Reddy
2013-10-22 20:07 ` Ted Zlatanov
0 siblings, 1 reply; 6+ messages in thread
From: Uday S Reddy @ 2013-10-22 18:11 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: 15669, Uday S Reddy
Ted Zlatanov writes:
> I don't think `anonymous' is a special user name for SMTP, right? We
> should really be looking at the SMTP response?
It probably is a special user name. I don't know.
I think you just need to preserve the old behavior of smtpmail. Whatever it
was doing earlier (in 23.X) was fine.
Is the comment in the code your writing? I think it is making a wrong
assumption. If `user' is "anonymous", that doesn't mean that the user has
stored his user name. The string "anonymous" is getting generated somewhere
within smtpmail, along with a nil password.
> Can you use any password or does it have be empty?
It seemed as if the password that I typed didn't matter.
Cheers,
Uday
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#15669: 24.2; smtpmail asks for password for anonymous logins
2013-10-22 18:11 ` Uday S Reddy
@ 2013-10-22 20:07 ` Ted Zlatanov
0 siblings, 0 replies; 6+ messages in thread
From: Ted Zlatanov @ 2013-10-22 20:07 UTC (permalink / raw)
To: Uday S Reddy; +Cc: 15669
On Tue, 22 Oct 2013 19:11:51 +0100 Uday S Reddy <u.s.reddy@cs.bham.ac.uk> wrote:
USR> Ted Zlatanov writes:
>> I don't think `anonymous' is a special user name for SMTP, right? We
>> should really be looking at the SMTP response?
USR> It probably is a special user name. I don't know.
USR> I think you just need to preserve the old behavior of smtpmail. Whatever it
USR> was doing earlier (in 23.X) was fine.
USR> Is the comment in the code your writing? I think it is making a wrong
USR> assumption. If `user' is "anonymous", that doesn't mean that the user has
USR> stored his user name. The string "anonymous" is getting generated somewhere
USR> within smtpmail, along with a nil password.
I didn't write that code but can try to help fix the problem.
>> Can you use any password or does it have be empty?
USR> It seemed as if the password that I typed didn't matter.
Thanks, that helps.
Ted
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#15669: 24.2; smtpmail asks for password for anonymous logins
2013-10-21 7:35 bug#15669: 24.2; smtpmail asks for password for anonymous logins Uday S Reddy
2013-10-22 13:22 ` Ted Zlatanov
@ 2015-12-27 22:56 ` Lars Ingebrigtsen
2016-03-01 2:05 ` Lars Ingebrigtsen
1 sibling, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2015-12-27 22:56 UTC (permalink / raw)
To: Uday S Reddy; +Cc: 15669
Uday S Reddy <u.s.reddy@cs.bham.ac.uk> writes:
> I use an SMTP server that uses anonymous login with no password. With Emacs
> 24.2, with auth-sources loaded, I find that sending a message through
> mail-mode asks for a password. No password should be required for anonymous
> login. This problem did not occur with Emacs 23.
>
> Looking through the code, I trace the problem to the function
> `smtpmail-try-auth-methods' which has the comment
>
> ;; The user has stored the user name, but not the password, so
> ;; ask for the password, even if we're not forcing that through
> ;; `ask-for-password'.
>
> This code is getting fired even when `user' has the value "anonymous".
I'm unable to reproduce this error. Are you still seeing it in Emacs 25?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#15669: 24.2; smtpmail asks for password for anonymous logins
2015-12-27 22:56 ` Lars Ingebrigtsen
@ 2016-03-01 2:05 ` Lars Ingebrigtsen
0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2016-03-01 2:05 UTC (permalink / raw)
To: Uday S Reddy; +Cc: 15669
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Uday S Reddy <u.s.reddy@cs.bham.ac.uk> writes:
>
>> I use an SMTP server that uses anonymous login with no password. With Emacs
>> 24.2, with auth-sources loaded, I find that sending a message through
>> mail-mode asks for a password. No password should be required for anonymous
>> login. This problem did not occur with Emacs 23.
>>
>> Looking through the code, I trace the problem to the function
>> `smtpmail-try-auth-methods' which has the comment
>>
>> ;; The user has stored the user name, but not the password, so
>> ;; ask for the password, even if we're not forcing that through
>> ;; `ask-for-password'.
>>
>> This code is getting fired even when `user' has the value "anonymous".
>
> I'm unable to reproduce this error. Are you still seeing it in Emacs 25?
More information was requested, but no response was given within a few
months, so I'm closing this bug report. If the problem still exists,
please reopen this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-03-01 2:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-21 7:35 bug#15669: 24.2; smtpmail asks for password for anonymous logins Uday S Reddy
2013-10-22 13:22 ` Ted Zlatanov
2013-10-22 18:11 ` Uday S Reddy
2013-10-22 20:07 ` Ted Zlatanov
2015-12-27 22:56 ` Lars Ingebrigtsen
2016-03-01 2:05 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).