Exchange 2007 Web服务FindFolder不返回包含ParentFolderIds = DistinguishedFolderIdNameType.root的Inbox文件夹 [英] Exchange 2007 Web Service FindFolder doesn't return Inbox folder with ParentFolderIds=DistinguishedFolderIdNameType.root

查看:99
本文介绍了Exchange 2007 Web服务FindFolder不返回包含ParentFolderIds = DistinguishedFolderIdNameType.root的Inbox文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Exchange 2007 Web Service中使用FindFolder的API时遇到问题,它不会返回收件箱文件夹和草稿文件夹。

I have a problem while using the API of FindFolder in Exchange 2007 Web Service, it doesn't return Inbox folder and Draft folder.

我试图找到所有邮箱内的文件夹通过使用与组ParentFolderIds此FindFolder API与  DistinguishedFolderIdNameType.root和横越设置为NBSP; FolderQueryTraversalType.Deep,也予指定几个属性,以
除了被返回到默认ID唯一文件夹的形状: " ;文件夹:ParentFolderId","文件夹:DisplayName的","文件夹:ChildFolderCount" ;.我无法通过此API调用获取Inbox和Draft文件夹。所以我做了一些进一步的测试。

I was trying to find all folders inside a mailbox by using this FindFolder API with set ParentFolderIds with DistinguishedFolderIdNameType.root and Traversal set to FolderQueryTraversalType.Deep, also I specified few properties to be returned in addition to default ID only folder shape: "folder:ParentFolderId","folder:DisplayName","folder:ChildFolderCount". I was not be able to get Inbox and Draft folders from this API call. So I did some further test.

我选了一个空邮箱,把一些文件夹放在那个邮箱的收件箱内,还有一些电子邮件,我故意命名其中一个文件夹"收件箱"。所以它看起来像:

I picked an empty mailbox, put some folder inside Inbox of that mailbox and with some emails, also I purposely named one of the folder "Inbox" so it looks like:

收件箱

   -Sub1

  -Sub1

       -Sub2

      -Sub2

           -Inbox

          -Inbox

           -Sub3

          -Sub3

但这一次,它返回所有文件夹没有问题。接下来我将PST文件导入收件箱,然后看起来像:

But this time, it returned all folders without a problem. Next I imported a PST file into the Inbox, then it looks like:

收件箱

   -User1

  -User1

       -Draft

      -Draft

       -Inbox

      -Inbox

           -Folder1

           -Folder1

       -Deleted Items

      -Deleted Items

       -Sent Items

      -Sent Items

这次API不会返回顶级收件箱和草稿文件夹。

This time the API doesn't return the top level Inbox and Draft folder.

是否有人遇到同样的问题?或知道如何解决?

Does anybody has the same issue? or know how to resolve it?

 

 

谢谢

JJ

推荐答案

您是否尝试过.msgfolderroot而不是.root?
Have you tried .msgfolderroot instead of .root ?


这篇关于Exchange 2007 Web服务FindFolder不返回包含ParentFolderIds = DistinguishedFolderIdNameType.root的Inbox文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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