Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

Exception calling "SetFlags" with "2" argument(s): "BAD Invalid Arguments: Unable to parse flag \None" #6

Open
Kristian-Aadal-Jensen opened this issue Jul 24, 2014 · 0 comments

Comments

@Kristian-Aadal-Jensen
Copy link

Same setup as the previous:

Invoke-GmailSession -Credential $mycreds -ScriptBlock {
param($gmail)
$inbox = $gmail | Get-Mailbox
$messages = $inbox | Get-Message | Select-Object -Last 10
foreach ($msg in $messages) {
Update-Message -Session $gmail -Message $msg -Unread
}
}

I had a look in the Gmail.ps.psm1 and tried the -star -unstar flags - these worked fine - however the -Unread did not..

Complete exception:
Exception calling "SetFlags" with "2" argument(s): "BAD Invalid Arguments: Unable to parse flag \None"
At C:\Users[user]\Documents\WindowsPowerShell\Modules\Gmail.ps\Gmail.ps.psm1:563 char:64

  •             $Session.SetFlags([AE.Net.Mail.Flags]$flags, @($Message))
    
  •                                                            ~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : Exception
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant