Hmm....

I wonder if we should maybe better store the mailbox name as the "real" name and do the UTF7 stuff on the fligh in the imap processing layer..

WDYT ?

Bye,
Norman

Am 10.02.2011 09:28, schrieb Eric Charles:
Hi,
I tried to create some mailboxes with special caracters with james (linux utf-8), reading them from thunderbird (windows-7) with chinese and french special caracters.

thunderbird side, everything's fine: I create and folders are show fine:
INBOX.teeeèèèt{}ùµ
INBOX.中国

When I select in database, it gives indeed some weird info:
INBOX.&Ti1W,Q-
INBOX.&Ti1W,Q-.test

As Norman mentioned it, it probably due to 7-bit encoding.
But everything's fine client side, so we should consider this as a "by-design" ?

Tks,
- Eric


On 10/02/2011 09:21, Norman wrote:
Hi Barry,

maybe its related to the special 7-Bit encoding which is used for IMAP-Mailbox names ?

See:
http://www.faqs.org/rfcs/rfc3501.html  Section 5.1 and 5.1.3


To quote:

5.1.    Mailbox Naming

   Mailbox names are 7-bit.  Client implementations MUST NOT attempt to
   create 8-bit mailbox names, and SHOULD interpret any 8-bit mailbox
   names returned by LIST or LSUB as UTF-8.  Server implementations
   SHOULD prohibit the creation of 8-bit mailbox names, and SHOULD NOT
   return 8-bit mailbox names in LIST or LSUB.  See section 5.1.3 for
   more information on how to represent non-ASCII mailbox names.


Bye,
Norman

Am 10.02.2011 09:13, schrieb Barry Bai:
I am using MySQL 5.5 and its encoding is UTF-8, I use the Chinese character to name the mail box, the name will be stored incorrectly. I read some related code and I can't find some special operations. Let me give you an example and maybe it is a little helpful for you:
&Ti1W,Q-.testchild.123
Plain text: 中国.testchild.123

This is very strange and this is very important and urgent for me.

Thanks
2011-02-10



Barry Bai



发件人: Eric Charles
发送时间: 2011-02-10  15:56:35
收件人: Barry Bai
抄送:
主题: Re: How to do limitation space of mailbox

Hi Barry,

Sorry to be not so responsive on ml, but your mail on space mailbox was still flagged as "to be answered".
I just answered it right now on ml.

For the second point, it's very strange. With derby and mysql, the mailbox_name is simply plain text. We simply do nothing special on database.
What is the default encoding of your database?
It will be fine to continue the discussion on ml.

Tks,

Eric


On 10/02/2011 04:56, Barry Bai wrote:
Hi Eric, in James V3, I want to know how to limit space of mailbox for one user. Could you please help me?

Another question, I just tested creating a new mail box in Outlook named as ASCII characaters (e.g. "testfolder") and I found the new box name were stored in the field MAILBOX_NAME in the table james_mailbox, but non-ASCII characters were as below like:&U9dUCVcwVAlOIk4JhD1W25b2VS5VRo+xmoJ4Up8Ta0xThVlHgrFfAoNJVAlY61knWSs-
Could you please tell me how decode the mailbox name?

Thanks a lot. Sorry for borthering you, I can't get help from ML.

2011-02-10



Barry Bai


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org

Reply via email to