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! Eric (cl-defmethod gnus-search-imap-handle-string ((engine gnus-search-imap) (str string)) (if (string-match-p "[^[:ascii:]]" str) (if (string-prefix-p "\"" str) str (format "\"%s\"" str)) str))
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Hey can someone(s) with an IMAP account on a Microsoft Exchange server,
> who is running Emacs from master, help me test search capability?
How can I tell exactly if my organization is using Exchange? I'm
currently using regular IMAP access, but maybe the email server can be
configured in several other ways.
--
Alberto
Alberto Luaces <aluaces@udc.es> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Hey can someone(s) with an IMAP account on a Microsoft Exchange server,
>> who is running Emacs from master, help me test search capability?
>
> How can I tell exactly if my organization is using Exchange? I'm
> currently using regular IMAP access, but maybe the email server can be
> configured in several other ways.
The server address should have something Exchange-specific about it, tbh
I'm not sure! But I got some help off-list with this, and actually I
think I'm okay. The sad result was that Exchange simply doesn't support
searching in charsets other than ASCII :(
On Jun 03 2022, Alberto Luaces wrote:
> How can I tell exactly if my organization is using Exchange?
You can run "telnet HOST imap" or "gnutls-cli -p imaps HOST" and look at
the greeting.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Andreas Schwab writes: > On Jun 03 2022, Alberto Luaces wrote: > >> How can I tell exactly if my organization is using Exchange? > > You can run "telnet HOST imap" or "gnutls-cli -p imaps HOST" and look at > the greeting. That indeed works, thanks! > * OK The Microsoft Exchange IMAP4 service is ready -- Alberto