module/tools/test.ps1
Param( [Parameter()][Switch]$Run ) if ($Run) { & $PSScriptRoot/../../tools/build.ps1 Import-Module $PSScriptRoot/../../cbsch-pslib.psd1 "Running as [{0}]" -f $pid | Out-Host # Invoke-DnsQuery -Hostname "cbsch.no" -QueryType MX cd "/var/mail/vmail/cbsch.no/christopher" Invoke-SieveFilter -MaildirPath . -SieveFile "./sieve/roundcube.sieve" } else { pwsh -nop -f $MyInvocation.InvocationName -Run } |