Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not access Office 365 Shared folder #95

Open
maxcomgr opened this issue Jan 20, 2021 · 0 comments
Open

Can not access Office 365 Shared folder #95

maxcomgr opened this issue Jan 20, 2021 · 0 comments

Comments

@maxcomgr
Copy link

I am trying to access a shared folder (mailbox) bu i can not connect to it.
Someone can access the shared folder by using Username: [email protected]/sharedfolder and his password.
e.g. [email protected]/hollad and the password of [email protected].

I found in a personal project that if you use two extra properties in javax imap , the problem is solved.

`private Properties set_Email_Properties() {
Properties emailProperties = null;
try {
emailProperties = new Properties();
emailProperties.setProperty("mail.store.protocol", "imaps");
emailProperties.setProperty("mail.imaps.host", "outlook.office365.com");
emailProperties.setProperty("mail.imaps.port", "993");
emailProperties.setProperty("mail.imaps.connectiontimeout", "5000");
emailProperties.setProperty("mail.imaps.timeout", "5000");
emailProperties.setProperty("mail.imap.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
emailProperties.setProperty("mail.imap.socketFactory.fallback", "false");

		// The following two lines needed to access the shared folder
        emailProperties.setProperty("mail.imaps.auth.plain.disable", "true");
        emailProperties.setProperty("mail.imaps.auth.ntlm.disable", "true");

    } catch (Exception ex) {
        Logging.error("set_Email_Properties", ex);
    }

    return emailProperties;
}`

I tried to add the extra lines to addon (from github) but i do not know how to build the addon again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant