curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

RE: cURL and IMAP - accessing a shared mailbox in an IMAP Exchange Server

From: Bill Mercer via curl-users <curl-users_at_cool.haxx.se>
Date: Mon, 27 Jul 2020 02:30:57 +0000

Might want to try escaping the backslash via URL encoding or something similar.

> -----Original Message-----
> From: curl-users <curl-users-bounces_at_cool.haxx.se> On Behalf Of Allan
> Quadros via curl-users
> Sent: Sunday, July 26, 2020 12:33 AM
> To: Norton, Mike <mikenorton_at_pwsd76.ab.ca>
> Cc: Allan Quadros <allanvcq_at_gmail.com>; the curl tool <curl-
> users_at_cool.haxx.se>
> Subject: Re: cURL and IMAP - accessing a shared mailbox in an IMAP
> Exchange Server
>
> Thanks Mike. I've tried these approaches and other variations but none of
> them seems to work.
> "quant" is the shared mailbox in this case:
>
> curl --url "imaps://outlook.office365.com/" --user
> "company.com\allan\quant"
> curl --url "imaps://outlook.office365.com/" --user
> "company.com/allan/quant"
> curl --url "imaps://outlook.office365.com/" --user
> "company.com\allan_at_company.com\quant:pass"
> curl --url "imaps://outlook.office365.com/" --user
> "company.com\allan_at_company.com\quant:pass"
> curl --url "imaps://outlook.office365.com/" --user
> "company.com/allan_at_company.com/quant:pass"
> curl --url "imaps://outlook.office365.com/" --user
> "allan_at_company\quant_at_company:pass"
> curl --url "imaps://outlook.office365.com/" --user
> "allan_at_quant@company:pass"
>
> and many many many other combinations...
>
> I am inclined to think that curl is not interpreting the user argument in the
> way the server is expecting, like you said.
>
> Allan
>
> On Fri, Jul 24, 2020 at 2:51 PM Norton, Mike <mikenorton_at_pwsd76.ab.ca>
> wrote:
> >
> > > --user "allan_at_company.com\sharedmailbox:mypass"
> >
> > My version of Curl's manpage says this about --user:
> >
> > "To specify the domain name use either Down-Level Logon Name or UPN
> (User Principal Name) formats. For example, EXAMPLE\user and
> user_at_example.com respectively."
> >
> > So I wonder if Curl is noticing the backslash and interpreting your input as
> domain="allan_at_company.com" and username="sharedmailbox". Or maybe
> Curl is NOT interpreting it that way but that's how Exchange is expecting it.
> >
> > Maybe Curl is interpreting your input as username="allan" and
> domain="company.com\sharedmailbox".
> >
> > Have you tried any variations of the down-level logon name format? E.g.
> "COMPANY\allan\sharedmailbox"? Or maybe the reverse? E.g.
> "sharedmailbox_at_allan@company.com"? Just some guesses to maybe trick
> whatever wrong interpretation is happening into behaving.
> >
> > -mn
> >
>
> -----------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-07-27