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

Exception calling "Search" with "1" argument(s): "xm003 BAD Could not parse command #14

Open
koladei opened this issue Mar 19, 2016 · 0 comments

Comments

@koladei
Copy link

koladei commented Mar 19, 2016

"Exception calling "Search" with "1" argument(s): "xm003 BAD Could not parse command"
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Gmail.ps\Gmail.ps.psm1:344 char:5

+ $result = $Session.Search('(' + $criteria + ')');
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~**
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : Exception
"
I have found that this happens if you use the following switches with any other parameters (
-Read** and -Unread).

This is because of an additional space after the criteria string on lines 254 & 256 of Gmail.ps\Gmail.ps.psm1

Kindly help correct these as soon as possible.
Great job.

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