+1 vote

If I have a folder called "\Something" at the root of my IMAP folder hierarchy, and I do $imap.Select("\Something"), I get an exception (detailed listed below)

System.Management.Automation.MethodInvocationException: Exception calling "Select" with "1" argument(s): "Could not parse command" ---> Limilabs.Client.IMAP.ImapResponseException: Could not parse command
at Limilabs.Client.IMAP.Imap.☻(ImapCommand ☻, Boolean ♥)
at Limilabs.Client.IMAP.Imap.Select(FolderInfo folder)
at Select(Object , Object[] )
at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[]arguments, MethodInformation methodInformation, Object[] originalArguments)
--- End of inner exception stack trace ---
at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[] arguments, MethodInformation methodInformation, Object[] originalArguments)
at System.Management.Automation.ParserOps.CallMethod(Token token, Object target, String methodName, Object[] paramArray, Boolean callStatic, Object valueToSet)
at System.Management.Automation.MethodCallNode.InvokeMethod(Object target, Object[] arguments, Object value)
at System.Management.Automation.MethodCallNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
at System.Management.Automation.AssignmentStatementNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement,Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)

I ran into this by querying Google folders and noticing that my script died on "\muted". It seems to be an issue with the backslash.

by (250 points)

1 Answer

0 votes

This issue was already reported. I'll send you a link to the latest beta version.

The fix will be of course included in the next version.

by (297k points)
...