如何获得Chilkat IMAP ListMailBoxes报告可用的邮箱名称?

问题描述

我试图将Chilkat IMAP组件附加到用户可以在Outlook中看到的公用文件夹。

以该用户身份连接到IMAP服务器后,我发出:

{#{&}

我可以按预期看到收件箱中的内容

我在Outlook中看到的公用文件夹称为“ Elekta订单”,并且被Outlook报告为位置为IMAP.SelectMailBox('InBox')

https://cknotes.com/imap-select-public-folders/建议我可能需要将\\public Folders - [email protected]\All Public参数设置为类似SelectMailBox"public folders/elekta orders"的参数。当我这样做时,"public folders - [email protected]/elekta orders"方法将返回以下内容

ChilkatLog:
  SelectMailBox:
    DllDate: Jun 25 2020
    ChilkatVersion: 9.5.0.83
    UnlockPrefix: CHEMIGRAPHIMAPMAILQ
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    mailBox: public folders - [email protected]/elekta orders
    selectMailBoxInner:
      mailBoxPath: public folders - [email protected]/elekta orders
      separatorChar: .
      Escaping quotes and backslashes in mailBox name...
      utf7EncodedMailBoxPath: public folders - [email protected]/elekta orders
      isOK:
        serverResponse: aaad NO "public folders - [email protected]/elekta orders" doesn't exist.
      --isOK
    --selectMailBoxInner
    Retry using / for the separator char...
    selectMailBoxInner:
      mailBoxPath: public folders - [email protected]/elekta orders
      separatorChar: /
      Escaping quotes and backslashes in mailBox name...
      utf7EncodedMailBoxPath: public folders - [email protected]/elekta orders
      isOK:
        serverResponse: aaae NO "public folders - [email protected]/elekta orders" doesn't exist.
      --isOK
    --selectMailBoxInner
    Retry using . instead of / in the mailBox path...
    selectMailBoxInner:
      mailBoxPath: public folders - [email protected] orders
      separatorChar: .
      Escaping quotes and backslashes in mailBox name...
      utf7EncodedMailBoxPath: public folders - [email protected] orders
      isOK:
        serverResponse: aaaf NO "public folders - [email protected] orders" doesn't exist.
      --isOK
    --selectMailBoxInner
    Failed to select/examine mailBox
    mailBox: public folders - [email protected]/elekta orders
    imapSelectResponse: aaaf NO "public folders - [email protected] orders" doesn't exist.
    Failed.
  --SelectMailBox
--ChilkatLog

所以我想我应该看看SelectMailBox方法来查看在IMAP服务器上实际可见的邮箱。

当我发出ListMailBoxes时,mBoxes := imap.listMailBoxes显示以下内容

ChilkatLog:
  ListMailBoxes:
    DllDate: Jun 25 2020
    ChilkatVersion: 9.5.0.83
    UnlockPrefix: CHEMIGRAPHIMAPMAILQ
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    listMailBoxes:
      bSubscribedOnly: 0
      reference: 
      mailBox: *
      Escaping quotes and backslashes in mailBox name...
      utf7EncodedMailBoxPath: *
      isOK:
        serverResponse: aaah OK LIST completed.
      --isOK
      Success.
    --listMailBoxes
    Success.
  --ListMailBoxes
--ChilkatLog

向我建议该命令已正确完成,但是,当我查看LastErrorText的值时,报告的数字有点像18398748,因此我无法使用mBoxes.count()返回任何文件名称

我在做什么错了?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)