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

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

Open
cesugden opened this issue Jun 16, 2017 · 1 comment
Open

Comments

@cesugden
Copy link

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"

@attiq-khan
Copy link

have you cleared this issue?

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

2 participants