Hello Alessandro,

>> Which encoding functions should I use instead?
>Try Unicode::IMAPUtf7

Thanks a lot! :-)))
That's it.


>> Another problem: When I try to create folders containing "." or "/" the
>> client (thunderbird) barfs about invalid characters.
>'.', '/', '~', and ':' are in maildirinfo.c's "verbotten" list

Hmm. Then either maildirinfo.c or the man page is not correct. "man
maildir" says:

> FOLDER NAME ENCODING
>       Folder  names can contain any Unicode character, except
>       for control characters.  US-ASCII characters,  U+0x0020
>       -  U+0x007F,  except for the period, forward-slash, and
>       ampersand characters (U+0x002E, U+0x002F, and U+0x0026)
>       represent  themselves.   The  ampersand is represent by
>       the two character sequence ''&-''.  The period, forward
>       slash,  and  non US-ASCII Unicode characters are repre-
>       sented using the UTF-7 character set, and encoded  with
>       a modified form of base64-encoding.

If I'm not mistaken this tells me that '.' and '/' may be used, but
must be encoded and '~' and ':' aren't considered anything special.

Btw: What about the backslash '\'? If anybody is crazy enough to use
Windows for a mail server, this character definitly poses a problem
(together with ':').


I just checked - Unicode::IMAPUtf7 also encodes '~', '\' and '+', but
'+' becomes (incorrectly) '&-' which is the encoded form of '&'. It
doen't bother with '.', '/' or ':'.

Then I found Encode::IMAPUTF7, which leaves all theses cheacters
('./+\:~') unencoded.

Both modules don't quite do what the "maildir" page demands. :/


Regards,
Norbert






-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to