用法
一些exchangelib如何使用的例子:
####设置和连接
1 | from datetime import timedelta |
文件夹
1 | # 最常见的可用文件夹如:account.calendar, account.trash, account.drafts, account.inbox,account.outbox, account.sent, account.junk, account.tasks, and account.contacts. |
日期,时间和时区
EWS对日期和时区有一些特殊要求。当你用到日期时间时,你需要使用特定的EWSDate,EWSDatetime和EWSTimeZone类。
1 | # EWSTimeZone的使用就像pytz.timezone()一样 |
创建、更新、删除、发送和移动
1 | # 有一个在用户的标准日历创建日历条目的例子,如果你想访问非标准日历,从account.folders[Calendar]选择不同的日历。 |