Hello list,
on [stable/{v14.8,stable,latest}] IMAP has learned to deal with
internationalised names. This means one can, e.g.,
?0[tmail ]? imapc enc Trübe/Wölkchen
in: Trübe/Wölkchen (16 bytes)
out: Tr&APw-be/W&APY-lkchen (22 bytes)
?0[tmail ]? imapcodec decode Tr&APw-be/W&APY-lkchen
in: Tr&APw-be/W&APY-lkchen (22 bytes)
out: Trübe/Wölkchen (16 bytes)
?0[tmail ]? Fi+
"+INBOX": 1 message [Read only]
>A 1 Rob Pike 14:27 09-12 / 6850 Re: [9fans] Why does Plan 9
use “snarf” instead of “copy”?
?0[tmail +INBOX]? copy 1 +Trübe/Wölkchen
"imap://user1@localhost/Trübe/Wölkchen" [New file] 6850 bytes
If you are used to use such names in IMAP4 notation, the now
performed encoding will re-encode what is already encoded,
resulting in errors.
?0[tmail +INBOX]? folders
INBOX
Trübe/
?1[tmail +INBOX]? folders +Trübe/
Trübe/Wölkchen
I admit `folders' returns a false status, everywhere, i'm looking into that.
?1[tmail +INBOX]? Fi+Trübe/Wölkchen
"+Trübe/Wölkchen": 1 message 1 new [Read only]
>A 1 Rob Pike 14:27 09-12 / 6850 Re: [9fans] Why does Plan 9
use “snarf” instead of “copy”?
?0[tmail +Trübe/Wölkchen]? disco*
?0[tmail +Trübe/Wölkchen]? fi
"+Trübe/Wölkchen": 1 message 1 new [Disconnected]
?0[tmail +Trübe/Wölkchen]? ll ~/tmp/x/cache/imap%3A%2F%2Fuser1%40localhost
total 0K
drwx------ 3 steffen steffen 80 Oct 12 22:26 ../
drwx------ 2 steffen steffen 80 Oct 13 15:20 INBOX/
drwx------ 5 steffen steffen 100 Oct 13 15:22 ./
drwx------ 2 steffen steffen 80 Oct 13 15:22 Tr%26APw-be%2FW%26APY-lkchen/
!
The names of the *imap-cache* folders however should remain the
same, since the encoding remains the same.
(Of course S-nail *imap-cache* encodes colon : so that our cache
is incompatible with Heirloom mailx.)
?0[tmail +Trübe/Wölkchen]? conn
?0[tmail +Trübe/Wölkchen]? x
It would be very nice if readers of this verify their IMAP still
works, and please report if that is not the case. If i don't get
any comments i think i'll release v14.8.13 by the middle of the
next week?!
We also normalise IMAP paths and should support Cyrus IMAP and its
dot . hierarchy delimiter, the variable *imap-delim* (and
[-USER]@HOST variants) will be used to normalize if set, otherwise
the first seen possible delimiter is used, e.g.:
?0[tmail ]? Fi+Trübe.............Wölkchen
IMAP error: Mailbox doesn't exist: Trübe.Wölkchen (0.000 + 0.000 secs).
#ERR#?1[tmail +Trübe.Wölkchen]? set imap-delim-user1@localhost=/.
(Oh. Mailbox changed. Not before v15, sorry.)
?0[tmail +Trübe.Wölkchen]? Fi+Trübe.............Wölkchen
"+Trübe/Wölkchen": 1 message [Read only]
>A 1 Rob Pike 14:27 09-12 153/ 6697 Re: [9fans] Why does Plan 9
use “snarf” instead of “copy”?
?0[tmail +Trübe/Wölkchen]?
Ciao!
--steffen
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
__________________________________
[email protected]