小编Cal*_*lon的帖子

使用Python通过MAPI从Outlook中读取电子邮件

我正在尝试编写一个简短的程序,它将读取我的Exchange/Outlook配置文件中的文件夹中的电子邮件内容,以便我可以操作数据.但是我在查找有关python和Exchange/Outlook集成的大量信息时遇到了问题.很多东西要么很老/没有文档/没有解释.我尝试了几个片段,但似乎得到了同样的错误.我试过Tim Golden的代码:

import win32com.client

session = win32com.client.gencache.EnsureDispatch ("MAPI.Session")

#
# Leave blank to be prompted for a session, or use
# your own profile name if not "Outlook". It is also
# possible to pull the default profile from the registry.
#
session.Logon ("Outlook")
messages = session.Inbox.Messages

#
# Although the inbox_messages collection can be accessed
# via getitem-style calls (inbox_messages[1] etc.) this
# is the recommended approach from Microsoft since the
# Inbox can mutate while you're iterating.
# …
Run Code Online (Sandbox Code Playgroud)

python mapi outlook exchange-server cdo.message

40
推荐指数
3
解决办法
10万
查看次数

这种格式叫做什么?"/ o =第一个组织/ ou =第一个管理组/ cn =收件人/ cn =用户"

以下字符串的格式是针对Microsoft Exchange调用的?

/o=First Organization/ou=First Administrative Group/cn=Recipients/cn=user
Run Code Online (Sandbox Code Playgroud)

我已经看到这个使用LDAP,但现在看到它CDO 1.2.1并最终尝试将其转换为电子邮件地址,如user@domain.com.谢谢.

email exchange-server ldap cdo.message

6
推荐指数
1
解决办法
7396
查看次数

删除NetCDF文件中的维度

我有一个包含8个变量和4个维度的netCDF文件:纬度(昏暗:26),经度(昏暗:17),时间(昏暗:很多)和水平(昏暗:1,压力水平).为了在spcecific程序中使用它,我需要只有3个维度:纬度,经度和时间.

有没有简单的方法来删除每个变量中的级别维度?

我发现ncwa -a old_dim ifile.nc ofile.nc但有时它会将类型从短转换为浮动.当它保持短类型时,删除属性"比例因子"和"add.offset".问题是我想用scla因子保持短类型并添加偏移量.

edit dimension netcdf nco

6
推荐指数
1
解决办法
4221
查看次数

是否有一些技巧使VBScript CDO与Amazon SES SMTP协同工作?

是否有一些技巧使VBScript CDO与Amazon SES SMTP协同工作?我没有收到任何错误,但它也没有发送给我我的测试电子邮件.将SSL更改为False确实给我530错误,所以我知道我至少到达了服务器.我究竟做错了什么?

EmailSubject = "Sending Email by CDO"
EmailBody = "This is the body of a message sent via" & vbCRLF & _
        "a CDO.Message object using SMTP authentication."

Const EmailFrom = "yyy@xxx.com"
Const EmailFromName = "Me Test"
Const EmailTo = "eee@aaa.com"
Const SMTPServer = "email-smtp.us-east-1.amazonaws.com"
Const SMTPLogon = "xxxxxx"
Const SMTPPassword = "xxxxxxx"
Const SMTPSSL = True
Const SMTPPort = 25

Const cdoSendUsingPickup = 1    'Send message using local SMTP service pickup directory.
Const cdoSendUsingPort = 2 …
Run Code Online (Sandbox Code Playgroud)

vb.net vbscript smtp cdo.message amazon-ses

5
推荐指数
1
解决办法
6327
查看次数

在经典ASP中使用HTMLBody(可以使用TextBody)的CDOSYS错误

我在IIS 7.5上使用HTMLBody的CDOSYS有问题
简单地说,这不起作用:

Set Mail = CreateObject("CDO.Message")
With Mail
    .Subject = "My mail test"
    .From = "me@localhost"
    .To = "myrealmail@mydomain.com"
    .HTMLBody = "My body message"
    .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
    .Configuration.Fields.Update
    .Send
End With
Set Mail = Nothing
Run Code Online (Sandbox Code Playgroud)

并抛出一个misterious "CDO.Message.1错误'80040605’未知错误"在行

.HTMLBody = "My body message"
Run Code Online (Sandbox Code Playgroud)

如果我改变它没问题

.TextBody = "My body message"
Run Code Online (Sandbox Code Playgroud)

拜托,你有解决方案吗?
提前致谢

cdo.message asp-classic

1
推荐指数
1
解决办法
4324
查看次数

偶尔的JVM在本机代码深处从FileDialog.open()崩溃

我目前面临的是我们在Windows 2008服务器R2上的Citrix环境中运行的一些Eclipse应用程序中的异常访问冲突.

调用开始org.eclipse.swt.widgets.FileDialog.open(),调用方法org.eclipse.swt.internal.win32.OS.GetSaveFileNameW然后转到本机库.它失败,并# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x68931bab, pid=9208, tid=7616siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x00000008 0x68931bab

分析创建的minidump,我结束了 thumbcache.dll

thumbcache.dll!CThumbnailCache::CThumbnailCache(int)    Unknown
thumbcache.dll!ThumbnailCacheCreateInstance(int,struct _GUID const &,void * *)  Unknown
thumbcache.dll!CThumbCacheClassFactory::CreateInstance(struct IUnknown *,struct _GUID const &,void * *) Unknown
ole32.dll!CServerContextActivator::CreateInstance(IUnknown * pUnkOuter, IActivationPropertiesIn * pInActProperties, IActivationPropertiesOut * * ppOutActProperties) Line 1000  C++
ole32.dll!ActivationPropertiesIn::DelegateCreateInstance(IUnknown * pUnkOuter, IActivationPropertiesOut * * ppActPropsOut) Line 1917    C++
ole32.dll!CApartmentActivator::CreateInstance(IUnknown * pUnkOuter, IActivationPropertiesIn * pInActProperties, IActivationPropertiesOut * * ppOutActProperties)    C++
ole32.dll!CProcessActivator::CCICallback(unsigned long dwContext, IUnknown * pUnkOuter, ActivationPropertiesIn …
Run Code Online (Sandbox Code Playgroud)

java eclipse windows swt eclipse-rcp

1
推荐指数
1
解决办法
895
查看次数