GNU bug report logs -
#1173
gnus/imap.el should quote quotes in password
Previous Next
Reported by: "Aaron D. Ball" <adb <at> broad.mit.edu>
Date: Wed, 15 Oct 2008 18:20:03 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
Message #18 received at 1173 <at> emacsbugs.donarmstrong.com (full text, mbox):
The following message is a courtesy copy of an article
that has been posted to gnu.emacs.bug as well.
On Wed, 15 Oct 2008 15:00:22 -0400 "Aaron D. Ball" <adb <at> broad.mit.edu> wrote:
ADB> Looks like all I needed was to specify that the replacement is
ADB> literal. This patch let me read my mail for real.
ADB> --- lisp/gnus/imap.el~ 2008-01-06 20:22:42.000000000 -0500
ADB> +++ lisp/gnus/imap.el 2008-10-15 14:58:40.890800000 -0400
ADB> @@ -922,7 +922,7 @@
ADB> (lambda (user passwd)
ADB> (imap-ok-p (imap-send-command-wait
ADB> (concat "LOGIN \"" user "\" \""
ADB> - passwd "\""))))))
ADB> + (replace-regexp-in-string "\"" "\\\"" passwd t t) "\""))))))
ADB> (defun imap-anonymous-p (buffer)
ADB> t)
Aaron,
the latest CVS Gnus and Emacs have:
(defun imap-quote-specials (string)
(with-temp-buffer
(insert string)
(goto-char (point-min))
(while (re-search-forward "[\\\"]" nil t)
(forward-char -1)
(insert "\\")
(forward-char 1))
(buffer-string)))
(it gets called for user name, password, etc. and escapes backslash as
well)
I think that will solve your problem, if you can use a more recent Emacs
or Gnus.
Thanks
Ted
This bug report was last modified 16 years and 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.