如何使用Lotus Domino服务器的php / linux获取XML格式的邮件正文和附件? [英] How to fetch message body and attachments in XML format using php/linux from Lotus Domino server?

查看:394
本文介绍了如何使用Lotus Domino服务器的php / linux获取XML格式的邮件正文和附件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有一些关于访问Lotus Domino服务器的信息,以通过php linux服务器的http请求来获取整个邮件内容?



文章由Andrei Kouvchinnikov描述了如何在笔记邮件文件夹中获取邮件列表;在登录后获得会话ID后,可以通过调用以下方式选择前100个消息:

  https://your.server.domain /mail_db/mailbox.nsf/($Inbox)?ReadViewEntries&Start=1&Count=100 

这样做完美。当我尝试获取消息内容时,出现问题(0A1DA5EEB7B65277C12576F50055D811是一个示例消息唯一ID):

  https://您的.server.domain / mail_db / mailbox.nsf /($ Inbox)/ 0A1DA5EEB7B65277C12576F50055D811 /?OpenDocument 

在IE中的请求显示数据难以解析的帧集,在较不常见的浏览器,如Opera,它通知不受支持的浏览器。理想情况下,如果可以通过在URL中请求来获取笔记消息内容和所有附件,有什么信息会有什么请求吗?

以下是Domino URL命令的列表: http://www.ibm.com/developerworks/lotus/library/ls-Domino_URL_cheat_sheet/



您可以使用ReadViewEntries命令将收件箱数据作为URL返回。不幸的是,没有内置的将文档作为XML读取。一个提示是在Notes邮件数据库(或所有邮件数据库使用的模板)中创建邮件表单的副本,并将其设置为为所有邮件输出XML邮件字段。然后,您需要将表单设置为仅Web,并重命名或隐藏具有设置为显示在Web上的相同名称的其他用户。然后Notes将使用您的表单来构建对Web客户端的响应。请注意,您还必须对模板进行一些更改,以禁用框架集用于Web客户端。不幸的是,如果您使用该系统通过Web访问电子邮件,这些更改可能会破坏Domino Web Access的使用。


Has anybody some information about accessing Lotus Domino server to fetch entire mail contents by http(s) requests from php linux server?

The article by Andrei Kouvchinnikov describes well how to fetch message list in notes mail folders; after obtaining session id during login one can for example select top 100 messages by calling:

https://your.server.domain/mail_db/mailbox.nsf/($Inbox)?ReadViewEntries&Start=1&Count=100

And this works perfectly. The problem arises when I am trying to get message contents (0A1DA5EEB7B65277C12576F50055D811 is an example message unique Id):

https://your.server.domain/mail_db/mailbox.nsf/($Inbox)/0A1DA5EEB7B65277C12576F50055D811/?OpenDocument

Such request in IE shows frameset with data hard to parse, in less common browsers like Opera it informs about unsupported browser. Ideally if it is possible to fetch notes message contents and all attachments by requesting it in the url, has anybody some information what request would it be? Link to Lotus web calls reference would be even more beneficial.

解决方案

Here is the list of Domino URL Commands: http://www.ibm.com/developerworks/lotus/library/ls-Domino_URL_cheat_sheet/

You can get the inbox data back as a URL using the ReadViewEntries command. Unfortunately there isn't a built in one for reading documents as XML.

One tip is to create a copy of the Mail form in the Notes mail database (or template used by all mail databases), and set it up to output XML for all the mail fields. You would then need to set the form as Web-only, and rename or hide any others with the same name that are set to appear on the Web. Then Notes would use your form to build responses to Web clients. Note, you'll also have to make some changes to the template to disable the framesets from being used for Web clients. Unfortunately, these changes could break the use of Domino Web Access, if you use that system for accessing email via the Web.

这篇关于如何使用Lotus Domino服务器的php / linux获取XML格式的邮件正文和附件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆