【问题标题】:Outlook Redemption unwrappedRdoMail adds 'B' character to empty HTML paragraphOutlook Redemption unwrappedRdoMail 将“B”字符添加到空 HTML 段落
【发布时间】:2020-08-14 07:22:25
【问题描述】:

当从解包的 RDOStore 解包 RDOMail 时,我们看到邮件项的 HTML 正文发生了变化。

我们已尝试使用最新的兑换码 (5.23)

我们使用的代码如下:

RDOStores rdoStores;
RDOStore rdoStore, unwrappedRdoStore;
RDOFolder rdoFolder;
RDOMail unwrappedRdoMail;

using (_comObjectHelper.GetMonitor(rdoFolder = mail.Parent))
using (_comObjectHelper.GetMonitor(rdoStore = rdoFolder.Store))
using (_comObjectHelper.GetMonitor(rdoStores = rdoSession.Stores))
using (_comObjectHelper.GetMonitor(unwrappedRdoStore = rdoStores.UnwrapStore(rdoStore)))
using (_comObjectHelper.GetMonitor(unwrappedRdoMail = unwrappedRdoStore.GetMessageFromID(mail.EntryID)))
{
    rdoMailAction?.Invoke(unwrappedRdoMail);
    unwrappedRdoMail.Save();
}

来自rdoSession.GetRDOObjectFromOutlookObject(_MailItem) 的 IRDOMail 项 HTMLBody(正确):

<html>
  <head>
    <meta name=\"Generator\" content=\"Microsoft Word 15 (filtered medium)\" />
    <style>
      <!--\r\n/* Font Definitions */\r\n@font-face\r\n\t{font-family:\"Cambria Math\";\r\n\tpanose-1:2 4 5 3 5 4 6 3 2 4;}\r\n@font-face\r\n\t{font-family:Calibri;\r\n\tpanose-1:2 15 5 2 2 2 4 3 2 4;}\r\n/* Style Definitions */\r\np.MsoNormal, li.MsoNormal, div.MsoNormal\r\n\t{margin:0in;\r\n\tmargin-bottom:.0001pt;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif;}\r\nspan.EmailStyle17\r\n\t{mso-style-type:personal-compose;\r\n\tfont-family:\"Calibri\",sans-serif;\r\n\tcolor:windowtext;}\r\n.MsoChpDefault\r\n\t{mso-style-type:export-only;\r\n\tfont-family:\"Calibri\",sans-serif;}\r\n@page WordSection1\r\n\t{size:8.5in 11.0in;\r\n\tmargin:1.0in 1.0in 1.0in 1.0in;}\r\ndiv.WordSection1\r\n\t{page:WordSection1;}\r\n-->
    </style>
  </head>
  <body lang=\"EN-US\" link=\"#0563C1\" vlink=\"#954F72\">
    <div class=\"WordSection1\">
      <p class=\"MsoNormal\">test </p>
      <p class=\"MsoNormal\"> </p>
      <p class=\"MsoNormal\">test </p>
      <p class=\"MsoNormal\"> </p>
      <p class=\"MsoNormal\">test</p>
      <p class=\"MsoNormal\"> </p>
      <p class=\"MsoNormal\">test test</p>
    </div>
    <span/>
  </body>
</html>\r\n

RDOMail unwrappedRdoMail 项目 HTMLBody(不正确 - 空白段落中有额外的 'B' 字符):

<html>
    <head>
        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=us-ascii\">
            <meta name=\"Generator\" content=\"Microsoft Word 15 (filtered medium)\">
                <style>
                    <!--\r\n/* Font Definitions */\r\n@font-face\r\n\t{font-family:\"Cambria Math\";\r\n\tpanose-1:2 4 5 3 5 4 6 3 2 4;}\r\n@font-face\r\n\t{font-family:Calibri;\r\n\tpanose-1:2 15 5 2 2 2 4 3 2 4;}\r\n/* Style Definitions */\r\np.MsoNormal, li.MsoNormal, div.MsoNormal\r\n\t{margin:0in;\r\n\tmargin-bottom:.0001pt;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif;}\r\nspan.EmailStyle17\r\n\t{mso-style-type:personal-compose;\r\n\tfont-family:\"Calibri\",sans-serif;\r\n\tcolor:windowtext;}\r\n.MsoChpDefault\r\n\t{mso-style-type:export-only;\r\n\tfont-family:\"Calibri\",sans-serif;}\r\n@page WordSection1\r\n\t{size:8.5in 11.0in;\r\n\tmargin:1.0in 1.0in 1.0in 1.0in;}\r\ndiv.WordSection1\r\n\t{page:WordSection1;}\r\n-->
                </style>
            </head>
            <body lang=\"EN-US\" link=\"#0563C1\" vlink=\"#954F72\">
                <div class=\"WordSection1\">
                    <p class=\"MsoNormal\">test </p>
                    <p class=\"MsoNormal\">B </p>
                    <p class=\"MsoNormal\">test </p>
                    <p class=\"MsoNormal\">B </p>
                    <p class=\"MsoNormal\">test</p>
                    <p class=\"MsoNormal\"> </p>
                    <p class=\"MsoNormal\">test test</p>
                </div>
                <span/>
            </body>
        </html>\r\n

有人见过这种行为吗?关于如何解决这个问题的任何想法?

【问题讨论】:

  • 这种情况是否仅发生在特定邮件中?你能把它保存为一个味精文件,压缩它(重要!),然后发送到 redemption (at) dimastr (dot) com。

标签: outlook outlook-addin outlook-redemption


【解决方案1】:

原来收到的邮件中有一些有趣的字符Âa0,这表明两个不同的邮件服务器(GSuite和IMAP)之间不兼容。

在这种情况下什么都做不了。

【讨论】:

    猜你喜欢
    • 2022-08-16
    • 2015-04-12
    • 2016-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多