Error Domain=mailcore Code=25 "List command error" UserInfo=0xeee1810 {NSLocalizedDescription=List command error}; #73

Closed
lichuanjun opened this Issue Feb 21, 2013 · 4 comments

3 participants

@lichuanjun

When I move or copy a mail to another folder,I do this :
BOOL success=[thisFolder moveMessageWithUID:uid toPath:@"已删除"];
if(!success)
{
NSLog(@"error :",thisFolder.lastError);
}
or [copyMessageWithUID:uid toPath:@"已删除"]
It logged:the error as the title.
Note:the parameter for toPath is a chinese string.
Could anyone help me~

@wongk
@lichuanjun

hi,wongk.thank you for your answer.However,when I use other methods such as :folder=[account folderWithPath:path],the 'path' also is a chinese string.It works well.More,the source code of
-(BOOL)moveMessageWithUID:(NSUInteger)uid toPath:(NSStrinf *)path
{
/...
const char *mbPath=[path cStringUsingEncoding:NSUTF8StringEncoding];
/...
}
What does this mean?And How can I solve this problem?

@wongk
@lichuanjun

Hi,wongk,thank you very much.According to your suggestion,I have solve my problem.just add: [self getUTF7String:mbPath fromString:path] into the methods of moveMessageWithUID:toPath: and copyMessageWithUID:toPath:,in purpose of convert the string into UTF7String.thanks again.

@mronge mronge closed this in b74d05f Mar 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment