bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#1173: Acknowledgement (gnus/imap.el should quote quotes in password)


From: Aaron D. Ball
Subject: bug#1173: Acknowledgement (gnus/imap.el should quote quotes in password)
Date: Wed, 15 Oct 2008 15:00:22 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b2pre) Gecko/20081010 Shredder/3.0b1pre

Looks like all I needed was to specify that the replacement is literal. This patch let me read my mail for real.

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

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


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






reply via email to

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