python 操作outlook
来源:互联网 发布:淘宝达人大v认证范文 编辑:程序博客网 时间:2024/06/06 01:15
# -*- coding: utf-8 -*-
from win32com.client import constants
from win32com.client.gencache import EnsureDispatch as Dispatch
outlook = Dispatch("Outlook.Application")
mapi = outlook.GetNamespace("MAPI")
print mapi.GetDefaultFolder(6)
class Oli():
def __init__(self, outlook_object):
self._obj = outlook_object
def items(self):
array_size = self._obj.Count
for item_index in xrange(1,array_size+1):
yield (item_index, self._obj[item_index])
def prop(self):
return sorted( self._obj._prop_map_get_.keys() )
for inx, folder in Oli(mapi.Folders).items():
# iterate all Outlook folders (top level)
print folder.Name
print "|----------|"
for inx,subfolder in Oli(folder.Folders).items():
print "(%i)" % inx, subfolder.Name,"=> ", type(subfolder)
Outlook api 参考:
https://msdn.microsoft.com/en-us/library/office/aa155717(v=office.10).aspx
from win32com.client import constants
from win32com.client.gencache import EnsureDispatch as Dispatch
outlook = Dispatch("Outlook.Application")
mapi = outlook.GetNamespace("MAPI")
print mapi.GetDefaultFolder(6)
class Oli():
def __init__(self, outlook_object):
self._obj = outlook_object
def items(self):
array_size = self._obj.Count
for item_index in xrange(1,array_size+1):
yield (item_index, self._obj[item_index])
def prop(self):
return sorted( self._obj._prop_map_get_.keys() )
for inx, folder in Oli(mapi.Folders).items():
# iterate all Outlook folders (top level)
print folder.Name
print "|----------|"
for inx,subfolder in Oli(folder.Folders).items():
print "(%i)" % inx, subfolder.Name,"=> ", type(subfolder)
Outlook api 参考:
https://msdn.microsoft.com/en-us/library/office/aa155717(v=office.10).aspx
http://www.snb-vba.eu/VBA_Outlook_external_en.html 主要的接口定义 在这里面,找了好多地方都无法查到的东西
0 0
- python 操作outlook
- C# outlook 操作代码
- C#操作outlook相关
- C#操作Outlook
- VC 操作 outlook的方法
- Java 操作Word Excel Outlook.
- outlook
- outlook
- outlook
- Outlook
- outlook
- outlook~
- Java操作Word,Excel,Access,Outlook
- delphi VC 操作 outlook的方法
- (转载)VC 操作 OutLook的方法
- Java com bridge 操作Word Excel Outlook.
- OutLook的VBA基本对象及操作
- python flask发送邮件嵌入图片 Outlook
- oracle创建表空间
- 如何在桌面上显示自定义View
- Unable to start the daemon process--Could not reserve enough space for object heap
- 快来使用HTTPS吧
- hdu1069 Monkey and Banana(二维LIS)
- python 操作outlook
- 在未提供官方驱动的Windows平板上安装Win10且完美驱动的解决方案
- BZOJ 1588 [HNOI2002] 营业额统计
- linux系统安装mysql数据库过程解析
- struts2配置
- java 身份证验证题
- PPT生成PNG---解决中文乱码和字体大小、位置偏移等问题
- 单选,全选,反选简单Demo
- 今天来说说html5的拖拽