Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: IMAP Folder characters Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
boranin
Newbie
Newbie


Joined: 29 September 2007
Location: New Zealand
Online Status: Offline
Posts: 32
Posted: 13 October 2008 at 2:46am | IP Logged Quote boranin

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 View boranin's Profile Search for other posts by boranin
 
boranin
Newbie
Newbie


Joined: 29 September 2007
Location: New Zealand
Online Status: Offline
Posts: 32
Posted: 13 October 2008 at 6:27am | IP Logged Quote boranin

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 View boranin's Profile Search for other posts by boranin
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 13 October 2008 at 6:49am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide