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!

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))



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

* Re: Help testing Exchange IMAP server search?
  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
  0 siblings, 2 replies; 5+ messages in thread
From: Alberto Luaces @ 2022-06-03 11:53 UTC (permalink / raw)
  To: ding

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



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

* Re: Help testing Exchange IMAP server search?
  2022-06-03 11:53 ` Alberto Luaces
@ 2022-06-03 15:58   ` Eric Abrahamsen
  2022-06-03 17:26   ` Andreas Schwab
  1 sibling, 0 replies; 5+ messages in thread
From: Eric Abrahamsen @ 2022-06-03 15:58 UTC (permalink / raw)
  To: ding

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 :(



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

* Re: Help testing Exchange IMAP server search?
  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
  1 sibling, 1 reply; 5+ messages in thread
From: Andreas Schwab @ 2022-06-03 17:26 UTC (permalink / raw)
  To: Alberto Luaces; +Cc: ding

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."


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

* Re: Help testing Exchange IMAP server search?
  2022-06-03 17:26   ` Andreas Schwab
@ 2022-06-06 14:46     ` Alberto Luaces
  0 siblings, 0 replies; 5+ messages in thread
From: Alberto Luaces @ 2022-06-06 14:46 UTC (permalink / raw)
  To: ding

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



^ 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).