]> git.eshelyaron.com Git - emacs.git/commit
IMAP search should only use charset utf-8 with multibyte strings
authorEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 25 Oct 2021 16:39:52 +0000 (09:39 -0700)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 25 Oct 2021 16:55:12 +0000 (09:55 -0700)
commite73b8ae86f09b34a65086641d693aea78e42fb25
tree4a09a147371052d1600b51513de7928ac3588293
parent33785495722f9f75cf50f7beabda8859399403d9
IMAP search should only use charset utf-8 with multibyte strings

Background: Exchange servers cannot accept "charset utf-8" search
strings. The code originally set that charset for any server with
literal+ capability, borking all searches on an Exchange server. This
code only sets utf-8 for multibyte search strings in particular, which
would be borken for Exchange anyway.

* lisp/gnus/gnus-search.el (gnus-search-imap-search-command): Ensure
we're only doing the literal+ dance for multibyte strings (multibyte
strings will have had newlines inserted in an earlier step).
lisp/gnus/gnus-search.el