@bobfrankston/mailx 1.0.421 → 1.0.422
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/temp.ps1 +8 -24
package/package.json
CHANGED
package/temp.ps1
CHANGED
|
@@ -1,26 +1,10 @@
|
|
|
1
|
-
$
|
|
2
|
-
$
|
|
1
|
+
$logDir = "$env:USERPROFILE\.mailx\logs"
|
|
2
|
+
$today = Get-Date -Format 'yyyy-MM-dd'
|
|
3
|
+
$log = Join-Path $logDir "mailx-$today.log"
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Write-Host "
|
|
9
|
-
Write-Host "Size : $($f.Length)"
|
|
10
|
-
Write-Host "Mtime : $($f.LastWriteTime)"
|
|
11
|
-
$bytes = [System.IO.File]::ReadAllBytes($path)
|
|
12
|
-
$ascii = [System.Text.Encoding]::ASCII.GetString($bytes)
|
|
13
|
-
foreach ($s in @(
|
|
14
|
-
'CoTaskMemAlloc returned NULL',
|
|
15
|
-
'InitPropVariantFromString',
|
|
16
|
-
'IPropertyStore::SetValue',
|
|
17
|
-
'set_relaunch_command'
|
|
18
|
-
)) {
|
|
19
|
-
if ($ascii.Contains($s)) { Write-Host " FOUND : $s" -ForegroundColor Green }
|
|
20
|
-
else { Write-Host " MISSING : $s" -ForegroundColor Red }
|
|
21
|
-
}
|
|
22
|
-
Write-Host ""
|
|
5
|
+
Write-Host "=== unsub-related lines in $log ===" -ForegroundColor Cyan
|
|
6
|
+
if (Test-Path $log) {
|
|
7
|
+
Select-String -Path $log -Pattern '\[unsub\]|unsubscribe|Unsubscribe' | Select-Object -Last 20
|
|
8
|
+
} else {
|
|
9
|
+
Write-Host "no log file for today"
|
|
23
10
|
}
|
|
24
|
-
|
|
25
|
-
Probe 'shared msgernative.exe' $msger
|
|
26
|
-
Probe 'per-app mailx.exe' $mailx
|