Comments (4)
Message.replty_all()
is just a helper for the common case. If you have more complex requirements for your reply message, I would suggest to either call Message.create_reply()
and adjust the returned item as needed:
my_reply = some_item.create_reply(...)
my_reply.body = HTMLBody(...)
my_reply.send()
or create the reply item from scratch exactly as you want it:
from exchangelib import ReplyToItem
my_reply = ReplyToItem(
account=account,
reference_item_id=ReferenceItemId(id=some_item.id, changekey=some_item.changekey),
subject="Some subjectsubject",
body=HTMLBody(...)
....
)
my_reply.send()
from exchangelib.
I understand. I didn't know that the ReplyToItem
(and ReplyAllToItem
) was already correctly supported and just not fully accessible from the functions.
Personally, I'd probably would prefer extending the available functions so that they can be more versatile. However, that might also introduce backwards compatibility issues, and you might also have other good reasons for that.
Your first suggested method would also work based on the create_reply_all
method, right?
Then, that looks like a good way; thank you very much for the support and suggestions!
I'll probably just play around to see how the new_body
and body
attributes of that class interact with each other, then.
from exchangelib.
Yes, the solution would be the same for create_reply_all()
.
While it would be possible to add all relevant options to the helper methods, it would be more confusing than helpful, I think, in case of new_body
and body
where it makes sense to provide one or the other, but not both.
from exchangelib.
Alright.
For the helper methods, that could be treated within the method, but especially as the argument body
was previously mapped to new_body
of the item object, changing that (or extending, or ...) would create more confusion.
I am closing this, then!
from exchangelib.
Related Issues (20)
- 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
- Support Custom Authentication Domains for Global and Governmental Environments (gcc-high, dod, etc) HOT 1
- Implement passing an Account object to GetUserAvailability in order to fix the "Returning naive datetime"-warning for timezone-unaware server responses. HOT 3
- Not enough scope error HOT 4
- OOF, The scheduled duration for sending automatic replies isn't valid HOT 4
- 403 Error | App Delegate Access for Personal Outlook Account HOT 5
- Accessing shared calendars does no longer work on 5.4.2 but it does work on 5.2.0 HOT 12
- Calendar items sent to users have reminder as 15 minutes regardless of reminder_is_set set to False HOT 1
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.