From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.bugs Subject: Re: bug#1173: Acknowledgement (gnus/imap.el should quote quotes in password) Date: Thu, 16 Oct 2008 11:16:00 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <864p3cecsf.fsf@lifelogs.com> References: <48F6325F.5010107@broad.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224175229 25380 80.91.229.12 (16 Oct 2008 16:40:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2008 16:40:29 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 16 18:41:29 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KqVuY-0002gM-2I for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2008 18:41:18 +0200 Original-Received: from localhost ([127.0.0.1]:60349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqVtT-00008N-99 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2008 12:40:11 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!xs4all!news2.euro.net!newsfeed.freenet.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 39 Original-X-Trace: news.albasani.net 2eGdxpbZqRIXK0GMtfd9AtqeyTAKOYsYXIjxEr+wbHcsXxARMDHbQ1xFtMBKWbwM+vr6l3wfldOAk4ISE9jjOqujhcwTdcLcDpm9JDzLrqbjGH1nhrCPp6df1+KWDSbV Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Thu, 16 Oct 2008 16:16:02 +0000 (UTC) X-User-ID: 4vmQeI4Mjy3eFcDQZZXrCTiKU6f7hehAYwLu7xRhA6M= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:7NscWjg5DsEUBXZL693htG7qmgk= sha1:CRLKOb44zBmlUOWXPOd+vkImL8s= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-NNTP-Posting-Host: p5Z7oAsqlabrgh50eqEMqf/iEvBrK6wLdweW0I1gkCQ= Original-Xref: news.stanford.edu gnu.emacs.bug:48863 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21544 Archived-At: On Wed, 15 Oct 2008 15:00:22 -0400 "Aaron D. Ball" 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