Gmail.ps
Gmail.ps copied to clipboard
Exception calling "Search" with "1" argument(s): "xm003 BAD Could not parse command
"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.