Gnus development mailing list
 help / color / mirror / Atom feed
* Help testing Exchange IMAP server search?
@ 2022-05-06 17:32 Eric Abrahamsen
  2022-06-03 11:53 ` Alberto Luaces
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Abrahamsen @ 2022-05-06 17:32 UTC (permalink / raw)
  To: ding

Hey can someone(s) with an IMAP account on a Microsoft Exchange server,
who is running Emacs from master, help me test search capability?

I just pushed a change to gnus-search that will help improve search
handling for Exchange servers, but there's more work to do.

In a nutshell: Exchange advertises the LITERAL+ capability. But it only
accepts searches using the US-ASCII charset. Right now, if the code sees
a non-ascii search string, and the server has LITERAL+, it will encode
the string using the literal+ format and send CHARSET UTF-8, which
results in an error from Exchange.

The other option is to ignore Exchange's LITERAL+ capability, and put
double quotes around the non-ascii string. I don't know if that will
work or not, that's what I need help testing.

I'm hoping someone will:

1. Pull and build today's Emacs code.
2. Search an ascii-only string like "FROM eric" (it doesn't matter if
   you use the parsed queries or not) and verify it works.
3. Search a non-ascii string like "FROM Jérôme" (something that *should*
   return results!) and tell me what happens.
4. Eval the method definition below, and repeat both of the above tests.

Thanks in advance!


(cl-defmethod gnus-search-imap-handle-string ((engine gnus-search-imap)
					      (str string))
  (if (string-match-p "[^[:ascii:]]" str)
      (if (string-prefix-p "\"" str)
	(format "\"%s\"" str))

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-06 14:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06 17:32 Help testing Exchange IMAP server search? Eric Abrahamsen
2022-06-03 11:53 ` Alberto Luaces
2022-06-03 15:58   ` Eric Abrahamsen
2022-06-03 17:26   ` Andreas Schwab
2022-06-06 14:46     ` Alberto Luaces

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).