Comments (23)
Here's a possible fix for the ErrorAccessDenied
issue: 7afd889
from exchangelib.
When will this update be available from pypi?
from exchangelib.
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.
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.
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.
Same issue here.
Python 3.10
Exchanglib 4.8.0
from exchangelib.
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.
Thanks a lot Erik, that has worked for us!
from exchangelib.
Works for us too, we use the getFolderByName() function. Thanks!
from exchangelib.
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.
We are facing the same issue. It would be great to release a new version if possible.
from exchangelib.
try like op.account.root // 'Top of Information Store' // 'Inbox' // to_move_folder)
Use double slash everywhere.
from exchangelib.
from exchangelib.
Yes try it, it worked for me. I had a similar issue this morning.
from exchangelib.
from exchangelib.
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.
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.
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.
from exchangelib.
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.
v5.2.1 is out now
from exchangelib.
@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.
That's very likely a different error. Please open a new issue.
from exchangelib.
Related Issues (20)
- Can't browse public_folders_root anymore HOT 32
- Can junk mail rules be created by exchangelib? HOT 1
- Validation rule error when manage inbox rules HOT 3
- `folder.parts` no longer returns root of hierarchy in list of parts (5.2.1) HOT 9
- `ErrorNonExistentMailbox` in version 5.2.1 but not in 5.2.0 HOT 6
- exchangelib.errors.UnauthorizedError: Invalid credentials for https://[domain].de/EWS/Exchange.asmx HOT 6
- Create calendar appointment in another account as access data, the appointment is created in the access account. HOT 3
- Get all Public Folders HOT 23
- ErrorInvalidSchemaVersionForMailboxVersion with exchangelib v5.2.1 and Exchange server version 15.2.1544.4 HOT 45
- EOF occurred in violation of protocol HOT 4
- ValueError trying to delete a rule HOT 2
- Error getting folders for v5.2.1+ (server 2010sp3 upd.29) HOT 3
- Cannot fetch calendar folder HOT 4
- Problem getting auth type from Exchange server HOT 15
- The request failed schema validation HOT 9
- Get more than 100 records with a.protocol.resolve_names HOT 1
- EWS does not support returning more than 100 results. See https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/resolvenames-operation
- How to disable check_hostname HOT 5
- some new distinguished folders cause 500 error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exchangelib.