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

Re: Typing in password multiple times AND ampersands in mailbox names



Tim Wilson <tdw@symbionics.co.uk> writes:

> My second question is: I am unable to make nnimap read any mailbox (aka
> folder) that has an ampersand ('&') character in its name.
> Renaming the mailbox (via Outlook/Exchange) to remove the ampersand
> solves the problem.  Any suggestions?
> 
> I use emacs 20.3.1 with the following setup in my .gnus:

I think "&" is used to escape utf7 encoding.  Since it sounds like
you're not using utf7 encoding in the mailbox names, probably you're
better off turning utf7 decode/encoding off with:

        (setq imap-utf7-p nil)

[Simon, how about making this the default?  I guess not many people
have UTF7 support in their emacsen yet, right?]

Unfortunately there is a bug in "imap.el" (0.130) which the above
setting will trigger.  The patch below which I sent to the list last
week fixes this.

Hope this helps, Jens

ps If someone know of working UTF7 support for XEmacs 21 please let me 
know.


1999-10-12  Jens-Ulrik Petersen <jens-ulrik.petersen@nokia.com>

	* imap.el (imap-utf7-decode): Move end of `and' call, so that if
	`imap-utf7-p' is nil STRING is returned.


--- nnimap-0.130/imap.el~	Tue Oct 12 18:13:02 1999
+++ nnimap-0.130/imap.el	Tue Oct 12 18:13:02 1999
@@ -360,8 +360,8 @@
 	     (error (message
 		     "imap: Could not UTF7 decode `%s', using it undecoded..."
 		     string)
-		    string))
-	   string)))
+		    string)))
+    string))
 
 (defsubst imap-ok-p (status)
   (if (eq status 'OK)