-
Notifications
You must be signed in to change notification settings - Fork 170
Fix XML message export and gate legacy EML option behind a setting #974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
stephenegriffin
merged 5 commits into
microsoft:main
from
bwittgen:export-cleanup-and-legacy-toggle
Jun 15, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3652fdd
Fix XML message export and gate legacy EML option behind a setting
f17ba48
update mapistub
stephenegriffin 0954ad3
fix formatting
stephenegriffin 5367f33
update mapistub
stephenegriffin 40d3850
Making edit to make myself last committer
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "C_Cpp.clang_format_style": "file", | ||
| "C_Cpp.clang_format_fallbackStyle": "Microsoft", | ||
| "C_Cpp.clang_format_path": "${workspaceFolder}/node_modules/clang-format/bin/win32/clang-format.exe", | ||
| "[cpp]": { | ||
| "editor.defaultFormatter": "ms-vscode.cpptools", | ||
| "editor.formatOnSave": true | ||
| }, | ||
| "[c]": { | ||
| "editor.defaultFormatter": "ms-vscode.cpptools", | ||
| "editor.formatOnSave": true | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule mapistub
updated
15 files
| +2 −2 | .github/workflows/clang.yml | |
| +4 −4 | .github/workflows/codeql.yml | |
| +2 −2 | .github/workflows/dependency-review.yml | |
| +3 −3 | .github/workflows/devskim.yml | |
| +3 −3 | .github/workflows/github-ci.yml | |
| +3 −3 | .github/workflows/scorecards.yml | |
| +14 −14 | include/MAPI.h | |
| +2 −2 | include/MAPISPI.h | |
| +17 −17 | include/MAPIUtil.h | |
| +1 −1 | include/MAPIVal.h | |
| +2 −2 | include/MAPIX.h | |
| +25 −25 | library/mapiStubLibrary.cpp | |
| +1 −1 | library/stubutils.cpp | |
| +25 −25 | package-lock.json | |
| +1 −1 | package.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| param( | ||
| [switch]$Check, | ||
| [string[]]$Files | ||
| ) | ||
|
|
||
| $projectRoot = Resolve-Path (Join-Path $PSScriptRoot "..") | ||
| $clang = Join-Path $projectRoot "node_modules\clang-format\bin\win32\clang-format.exe" | ||
|
|
||
| if (-not (Test-Path $clang)) { | ||
| Write-Error "clang-format not found at $clang. Run 'npm install' first." | ||
| exit 1 | ||
| } | ||
|
|
||
| Write-Host "clang-format found at $clang" | ||
| & $clang --version | ||
|
|
||
| Push-Location $projectRoot | ||
|
|
||
| if ($Files) { | ||
| # Resolve provided paths to absolute | ||
| $files = $Files | ForEach-Object { Resolve-Path $_ | Select-Object -ExpandProperty Path } | ||
| } else { | ||
| $files = Get-ChildItem -Recurse -Include *.cpp, *.h, *.c | | ||
| Where-Object { $_.FullName -notlike "*\mapistub\*" -and $_.FullName -notlike "*\.git\*" } | | ||
| Select-Object -ExpandProperty FullName | ||
| } | ||
|
|
||
| if (-not $files) { | ||
| Write-Host "No C/C++ files found." | ||
| Pop-Location | ||
| exit 0 | ||
| } | ||
|
|
||
| Write-Host "Found $($files.Count) files." | ||
|
|
||
| # Batch into chunks of 30 to avoid command-line length limits | ||
| $chunkSize = 30 | ||
| $exitCode = 0 | ||
|
|
||
| $baseArgs = @('--style=file', '--fallback-style=Microsoft', '--verbose') | ||
| if ($Check) { | ||
| Write-Host "Checking formatting..." | ||
| $baseArgs += @('--dry-run', '-Werror') | ||
| } else { | ||
| Write-Host "Formatting files..." | ||
| $baseArgs += '-i' | ||
| } | ||
|
|
||
| for ($i = 0; $i -lt $files.Count; $i += $chunkSize) { | ||
| $chunk = $files[$i..([Math]::Min($i + $chunkSize - 1, $files.Count - 1))] | ||
| & $clang @baseArgs @chunk | ||
| if ($LASTEXITCODE -ne 0) { $exitCode = $LASTEXITCODE } | ||
| } | ||
|
|
||
| Pop-Location | ||
| exit $exitCode |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.