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

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

Open koladei opened this issue 8 years ago • 0 comments

"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.

koladei avatar Mar 19 '16 17:03 koladei