Gmail.ps icon indicating copy to clipboard operation
Gmail.ps copied to clipboard

Move-Message Exception calling "MoveMessage" with "2" argument(s)

Open cesugden opened this issue 7 years ago • 1 comments

I'm getting an error calling Move-Message:

Exception calling "MoveMessage" with "2" argument(s): "NO [TRYCREATE] No folder All Mail (Failure)"

Full Code: $gmail = New-GmailSession -Credential $Creds $inbox = $gmail | Get-Mailbox $msgs = $inbox | Get-Message -Read -Prefetch $msgs[0] | Move-Message "All Mail" -Session $gmail

The All Mail folder definitely exists. I've tried the below command and it fines the folder fine: $allMail = $gmail | Get-Mailbox "All Mail"

cesugden avatar Jun 16 '17 14:06 cesugden

have you cleared this issue?

attiq-khan avatar Jan 04 '18 04:01 attiq-khan