Author |
|
boranin Newbie
Joined: 29 September 2007 Location: New Zealand
Online Status: Offline Posts: 32
|
Posted: 13 October 2008 at 2:46am | IP Logged
|
|
|
I understand modified UTF-7 is used to encode IMAP Flder names. Also understand Name, RawName, ShortName and RawShortName properties of Folder object. Do not know (or understand):
-What are the characters allowed to be used in folder names (!@@$%^&*...)?
-How to escape delimiter (".") in folder names? If client decides to rename "INBOX.MyFolder" in "INBOX.My.Folder", the folder structure will be changed. How can developer avoid that?
-How to escape other non \W (non-alphanumeric) characters? Any REGEX implementations you can suggest?
Suggestion: imap.WrapFolderName(strFolderName") function would be very helpfull, alng with SMTP.IsEmailAddressWellFormated(strEmailAddress)
Regards,
Alex
|
Back to Top |
|
|
boranin Newbie
Joined: 29 September 2007 Location: New Zealand
Online Status: Offline Posts: 32
|
Posted: 13 October 2008 at 6:27am | IP Logged
|
|
|
Just realised that MailBee IMAP will throw error if folder name contains " while Outlook is happy to set " as part of the name. Any comments?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 13 October 2008 at 6:49am | IP Logged
|
|
|
Exact details of UTF-7M are available in "5.1.3. Mailbox International Naming Convention" chapter of RFC3501 (INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1
).
Quote:
How to escape delimiter (".") in folder names |
|
|
It's not possible because UTF-7M can escape only non-ASCII characters.
Quote:
How to escape delimiter (".") in folder names |
|
|
That's done automatically if Imap.Utf7EncodeFolderNames is enabled.
Also, you can use ImapUtils class for manual conversion.
Quote:
Just realised that MailBee IMAP will throw error if folder name contains " while Outlook is happy to set " as part of the name |
|
|
Please provide more information about the problem. What error, what code, etc.
Regards,
Alex
|
Back to Top |
|
|