all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#1173: gnus/imap.el should quote quotes in password
@ 2008-10-15 18:11 Aaron D. Ball
       [not found] ` <handler.1173.B.122409431211114.ack@emacsbugs.donarmstrong.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Aaron D. Ball @ 2008-10-15 18:11 UTC (permalink / raw)
  To: bug-gnu-emacs

When sending a LOGIN command, the imap-login-auth function in imap.el 
does not quote double quotes in the password string, so passwords 
containing double quotes result in an error.

I'm using stock Emacs 22.3, compiled by our sysadmin team here:

GNU Emacs 22.3.2 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll 
bars) of 2008-09-26 on node106

Below is the patch I am using, which fixed the problem for me:

--- lisp/gnus/imap.el~      2008-01-06 20:22:42.000000000 -0500
+++ lisp/gnus/imap.el       2008-10-15 13:58:06.124586000 -0400
@@ -922,7 +922,7 @@
                           (lambda (user passwd)
                             (imap-ok-p (imap-send-command-wait
                                         (concat "LOGIN \"" user "\" \""
-                                               passwd "\""))))))
+ 
(replace-regexp-in-string "\"" "\\\"" passwd) "\""))))))

  (defun imap-anonymous-p (buffer)
    t)

-- 
Aaron D. Ball <adb@broad.mit.edu>
Senior Systems Analyst
Broad Institute of MIT and Harvard







^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-16 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-15 18:11 bug#1173: gnus/imap.el should quote quotes in password Aaron D. Ball
     [not found] ` <handler.1173.B.122409431211114.ack@emacsbugs.donarmstrong.com>
2008-10-15 18:43   ` bug#1173: Acknowledgement (gnus/imap.el should quote quotes in password) Aaron D. Ball
2008-10-15 19:00   ` Aaron D. Ball
     [not found]   ` <mailman.1169.1224132508.25473.bug-gnu-emacs@gnu.org>
2008-10-16 16:16     ` Ted Zlatanov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.