Giter VIP home page Giter VIP logo

Comments (23)

ecederstrand avatar ecederstrand commented on June 23, 2024 5

Here's a possible fix for the ErrorAccessDenied issue: 7afd889

from exchangelib.

devseckoderz avatar devseckoderz commented on June 23, 2024 3

When will this update be available from pypi?

from exchangelib.

ecederstrand avatar ecederstrand commented on June 23, 2024 3

The commit that closed this issue should fix the "ErrorAccessDenied: Not allowed to access Non IPM folder" issue for everyone. Please install from that commit until I can get a new version on PyPI. Only report here if that commit did not solve this specific issue for you.

from exchangelib.

Daniell-Green avatar Daniell-Green commented on June 23, 2024 1

In our case, we have detected this error appears when moving a message to a different folder:

dst_folder = account.inbox / "foldername"
message.move(dst_folder)

This comment in issue 1288 suggests changing changing the single forward slash / to a double forward slash // for building folder paths.

We have tried this and it worked, so the code that caused the error now looks like this and it works:

dst_folder = account.inbox // "foldername" # Note the double slash in this line
message.move(dst_folder)

This solution worked for me. Thank you!

from exchangelib.

albertaparicio-kriter avatar albertaparicio-kriter commented on June 23, 2024

We are facing this same issue on Exchange 5.2.0 with Python 3.11

It looks like a Microsoft 365 issue, rather than an issue with ExchangeLib

from exchangelib.

Daniell-Green avatar Daniell-Green commented on June 23, 2024

Same issue here.

Python 3.10
Exchanglib 4.8.0

from exchangelib.

albertaparicio-kriter avatar albertaparicio-kriter commented on June 23, 2024

In our case, we have detected this error appears when moving a message to a different folder:

dst_folder = account.inbox / "foldername"
message.move(dst_folder)

This comment in issue 1288 suggests changing changing the single forward slash / to a double forward slash // for building folder paths.

We have tried this and it worked, so the code that caused the error now looks like this and it works:

dst_folder = account.inbox // "foldername" # Note the double slash in this line
message.move(dst_folder)

from exchangelib.

jcalero avatar jcalero commented on June 23, 2024

Thanks a lot Erik, that has worked for us!

from exchangelib.

vjean-atr avatar vjean-atr commented on June 23, 2024

Works for us too, we use the getFolderByName() function. Thanks!

from exchangelib.

SreeSonduri avatar SreeSonduri commented on June 23, 2024

Hi need help for ErrorAccessDenied: Not allowed to access Non IPM folder tried double slash and also folder Collection. still getting this error "Unable to connect to exchange account. System will try to connect in the next run.
Not allowed to access Non IPM folder."

from exchangelib.

xkobal avatar xkobal commented on June 23, 2024

We are facing the same issue. It would be great to release a new version if possible.

from exchangelib.

pradeep-clex avatar pradeep-clex commented on June 23, 2024

try like op.account.root // 'Top of Information Store' // 'Inbox' // to_move_folder)

Use double slash everywhere.

from exchangelib.

SreeSonduri avatar SreeSonduri commented on June 23, 2024

from exchangelib.

pradeep-clex avatar pradeep-clex commented on June 23, 2024

Yes try it, it worked for me. I had a similar issue this morning.

from exchangelib.

SreeSonduri avatar SreeSonduri commented on June 23, 2024

from exchangelib.

devseckoderz avatar devseckoderz commented on June 23, 2024

Tried the fix mentioned above in get_folder.py, but get this error now:

"name 'create_shape_element' is not defined"

I am doing this for subfolders:

folder = account.inbox
all_folders = folder.glob('**/*')
for subfolders in all_folders:

from exchangelib.

devseckoderz avatar devseckoderz commented on June 23, 2024

In our case, we have detected this error appears when moving a message to a different folder:

dst_folder = account.inbox / "foldername"
message.move(dst_folder)

This comment in issue 1288 suggests changing changing the single forward slash / to a double forward slash // for building folder paths.
We have tried this and it worked, so the code that caused the error now looks like this and it works:

dst_folder = account.inbox // "foldername" # Note the double slash in this line
message.move(dst_folder)

This solution worked for me. Thank you!

What if you are trying to traverse all subfolders and nested folders within Inbox/[SubFolders]?

from exchangelib.

SreeSonduri avatar SreeSonduri commented on June 23, 2024

Below is my code
inbox_folders = FolderCollection(account=account, folders=[account.inbox])

    for folder in inbox_folders.folders: 

        print(f'folder name::: {folder.name}')
    processed_folder = account.inbox // 'cost_auto_processed'

I get error as "No subfolder with name 'cost_auto_processed'"

Please let me know what could be the fix to get to to sub folders

from exchangelib.

SreeSonduri avatar SreeSonduri commented on June 23, 2024

from exchangelib.

timschelle avatar timschelle commented on June 23, 2024

Is it possible that there are now also problems when creating?
If I run the following code example, I also get the error message: "Not allowed to access Non IPM folder"

f = Folder(parent=a.inbox, name="My New Folder")
f.save()

from exchangelib.

ecederstrand avatar ecederstrand commented on June 23, 2024

v5.2.1 is out now

from exchangelib.

xkobal avatar xkobal commented on June 23, 2024

@ecederstrand Since the 5.2.1, this error has been replaced by:

exchangelib.errors.ErrorInvalidSchemaVersionForMailboxVersion: Tried versions ('Exchange2016', 'Exchange2015_SP1', 'Exchange2015', 'Exchange2013_SP1', 'Exchange2013', 'Exchange2010_SP2', 'Exchange2010_SP1', 'Exchange2010', 'Exchange2007_SP1', 'Exchange2007') but all were invalid

I don't understand why.

from exchangelib.

ecederstrand avatar ecederstrand commented on June 23, 2024

That's very likely a different error. Please open a new issue.

from exchangelib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.