hi
i set up an hebrew label in gmail (imap) and wanted to list them using
synapse. the english labels are ok while the hebrew ones i get encoded in a
format im not sure i understood. for example i got the following for one of
my hebrew labels: '&BdEF0wXZBecF1A-1'. according to the rfc it means the
following:

By convention, international mailbox names in IMAP4rev1 are specified using
a modified version of the UTF-7 encoding described in [UTF-7]. Modified
UTF-7 may also be usable in servers that implement an earlier version of
this protocol. 
In modified UTF-7, printable US-ASCII characters, except for "&", represent
themselves; that is, characters with octet values 0x20-0x25 and 0x27-0x7e.
The character "&" (0x26) is represented by the two-octet sequence "&-". 
All other characters (octet values 0x00-0x1f and 0x7f-0xff) are represented
in modified BASE64, with a further modification from [UTF-7] that "," is
used instead of "/".  Modified BASE64 MUST NOT be used to represent any
printing US-ASCII character which can 
represent itself. 
"&" is used to shift to modified BASE64 and "-" to shift back to US-ASCII. 
There is no implicit shift from BASE64 to US-ASCII, and null shifts ("-&"
while in BASE64; note that "&-" while in US-ASCII means "&") are not
permitted.  However, all names start in US- 
ASCII, and MUST end in US-ASCII; that is, a name that ends with a non-ASCII
ISO-10646 character MUST end with a "-"). 

so this part: "&BdEF0wXZBecF1A" is in base64 format?
and this part: "-1" means it's the digit 1 in ascii (regular) which is
correct comparing to the label i set up.

i tried using the decode64base function but without luck. what am i
missing? does synapse has a way to convert those values into a readable
name?

thanks

--------------------------------------------------------------------
mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to