百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

MHA

> 编程语言
开源

适用于 Outlook 的消息首部分析器插件

382 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

适用于 Outlook 的消息首部分析器插件

MHA

Message Header Analyzer mail app.

This is the source for the Message Header Analyzer. Install the app from the store here:

Obtain, Provide Feedback, and Contribute

  • Obtain: Install Message Header Analyzer from AppSource:
  • Provide feedback (bugs/enhancements): Open a GitHub issue:
  • Contribute code/docs: Submit a pull request to this repository and follow the contribution process in CONTRIBUTING.md:

External Interface Reference

This section documents the external interface of the software, including where it is accessed and the expected inputs and outputs.

End-user interface

  • AppSource install endpoint:
  • Standalone web interface URL:
  • Outlook add-in interface: opened from an Outlook message in supported Outlook clients.

Functional input/output

  • Primary input: the currently selected email message in Outlook.
  • Data input read by the app: transport message headers retrieved through the Outlook/EWS mailbox APIs.
  • Primary output: parsed and human-readable header analysis shown in the MHA UI.

Local development/test interface

  • Local standalone page:
  • Local unit test runner page:
  • Local coverage report page:

Interface behavior notes

  • Required Outlook permission level for header retrieval: ReadWriteMailbox.
  • The app consumes Outlook mailbox APIs and does not expose a separate public REST API.
  • The standalone About dialog and Outlook add-in diagnostics identify the build and source commit.
  • Build metadata is available as JSON at /Pages/build-info.json.
  • Local builds display Local and identify the Git commit on which the working tree is based.

Installation Procedure

Because MHA requires the ReadWriteMailbox permission it can only be installed by the Administrator through the Exchange admin center or by a user as a custom addon. Here are some steps I put together:

  1. In Office365, go to the Exchange Admin Center.
  2. Click on the Organization tab
  3. From there, select the add-ins tab
  4. Click the Plus icon/Add from the Office Store
  5. Click the Plus icon/Add from the Office Store
  6. A new page will load for the store
  7. Search for "Message Header Analyzer"
  8. Choose MHA in the results
  9. Click Add
  10. Confirm by clicking Yes
  11. Back in the Exchange Admin Center, refresh the list of add-ins
  12. You can now edit who the add-in is available for

A Note on Permissions

In order to get the transport message headers I have to use the EWS makeEwsRequestAsync method, which requires the ReadWriteMailbox permission level. See the article Understanding Outlook add-in permissions for more on this. If I could request fewer permissions I would, since I only ever read the one property, but I have no choice in the matter.

When REST is more widely available, and a few REST specific bugs are fixed, I'll be able to switch to REST and request a lower permission level.

Standalone

Here is a standalone Message Header Analyzer running the same backend code as the MHA app:

Unit Tests

  • Testing policy, local test workflow, coverage requirements, and CI details are documented in TESTING.md.

Mobile

For both IOS and Android click open an email, then press the three dots under the date. There you should see the MHA icon. See outlook-mobile-addins page for more details.

Development & Custom Deployment

Install and prereqs

  1. Ensure node.js (LTS) is installed
  2. Clone the repo to your local drive
  3. Run the following to install packages: npm install

Manual build

  • The commands below for unit/site/add-in testing will also build before starting the server, but you can also build on demand.
  • Manual build: npm run build
  • For continuous build on changes, you can use watch: npm run watch

Live site testing

  • Start the dev server: npm run dev-server
  • Run website locally:
  • Changes made to source should live compile and reload page. Ctrl+R/refresh as needed.

Add-in testing (Command line)

  • Close Outlook
  • Start the dev server: npm start
  • Outlook should start with add-in added as "View Headers Debug Local"
  • Changes made to source should live compile and reload in Outlook. Ctrl+R/refresh as needed.

Add-in testing (VSCode)

  • Follow the steps for using the Visual Studio Code debugger.

Add-in testing (Outlook Web App)

  • Start the dev server: npm run dev-server
  • Sideload your add-in here:
  • For detailed sideloading instructions, see:
  • Upload the ManifestDebugLocal.xml file when prompted
  • The add-in will appear as "View Headers Debug Local" in OWA

Bundle Analysis

  • Start the dev server: npm run dev-server
  • Generate bundle analysis report: npm run build:analyze
  • This creates a production build with a detailed bundle composition report
  • View the report here:
  • The report shows:
    • Bundle size visualization with interactive treemap
    • Chunk breakdown and module dependencies
    • Optimization opportunities for large modules
    • Code splitting effectiveness analysis
  • Use this for performance auditing and identifying optimization opportunities

Clean

  • Clean build artifacts: npm clean

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptaddinoffice-addinoutlook

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言