GNU bug report logs - #1173
gnus/imap.el should quote quotes in password

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: "Aaron D. Ball" <adb <at> broad.mit.edu>
To: 1173 <at> debbugs.gnu.org
Subject: bug#1173: Acknowledgement (gnus/imap.el should quote quotes in  password)
Date: Wed, 15 Oct 2008 15:00:22 -0400
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 <at> broad.mit.edu>
Senior Systems Analyst
Broad Institute of MIT and Harvard




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.