login about faq

Hello,

I have an error when I call SelectMailBox or CloseMailBox methods. I try to select or close root folder. (Updated: it happens, after I set true in AbortCheckEventArgs.Abort property. When AbortCheckEvent fired, the method "Email email = _imap.FetchSingle(uid, true)" had already been called. Does AbortCheckEvent handler close Imap connection?)

In this cases I have logs like these:

ChilkatLog:

SelectMailbox:
DllDate: Aug 15 2013
ChilkatVersion: 9.4.1.42
UnlockPrefix: ****
Username: KULIGIN:Kuligin
Architecture: Little Endian; 32-bit
Language: .NET 4.0
VerboseLogging: 0
mailbox: LinkedIn
selectMailboxInner:
mailboxPath: LinkedIn
separatorChar: .
Escaping quotes and backslashes in mailbox name...
utf7EncodedMailboxPath: LinkedIn
Failed to find OK line in response.
Failed to select/examine mailbox
mailbox: LinkedIn
imapSelectResponse: aacm BAD invalid command
Failed.

ChilkatLog: CloseMailbox: DllDate: Aug 15 2013 ChilkatVersion: 9.4.1.42 UnlockPrefix: ***** Username: KULIGIN:Kuligin Architecture: Little Endian; 32-bit Language: .NET 4.0 VerboseLogging: 0 closeMailbox: mailbox: INBOX Failed to find OK line in response. imapCloseResponse: aacn BAD invalid command Failed. --closeMailbox --CloseMailbox --ChilkatLog

Only Imap instance recreating helps in these cases.

How can I recognize these situations?

asked Feb 27 '14 at 06:57

kuligintim's gravatar image

kuligintim
316911

edited Feb 27 '14 at 07:39


Please test using this latest build:

32-bit: http://www.chilkatsoft.com/preRelease/ChilkatDotNet4-9.5.0-win32.zip

64-bit: http://www.chilkatsoft.com/preRelease/ChilkatDotNet4-9.5.0-x64.zip

(This version will be officially released in the coming week.)

link

answered Feb 27 '14 at 10:05

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

I tried to use ChilkatDotNet4-9.5.0-win32 release, but got similar error - AbortCheckEvent handler doesn't close Imap connection, but after aborting I can't select mailbox. Only recreating Imap object helps. In my code I can't recognize this situation.

(Mar 19 '14 at 07:06) kuligintim

If you abort communications with any request/response type of protocol (SMTP, POP3, HTTP, IMAP, FTP, etc.) then the connection is left in an unknown state (because you aborted). Therefore, your abort handler should explicitly close the connection. You don't necessarily need to create a new object instance, but you need to close and re-establish the connection, re-login, etc.

(Mar 19 '14 at 09:00) chilkat ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×174
×14

Asked: Feb 27 '14 at 06:57

Seen: 1,034 times

Last updated: Mar 19 '14 at 09:00

powered by OSQA