cyrusimap / bugzilla-migrate-test

0 stars 1 forks source link

lmtpd does not translate UTF-8 into mUTF7 for sieve_fileinto() #565

Closed brong closed 14 years ago

brong commented 21 years ago

From: Larry Greenfield Bugzilla-Id: 1710 Version: 2.1.x Owner: Ken Murchison

brong commented 21 years ago

From: Larry Greenfield

Sieve scripts, and the sieve library (sieve_interface.h) deal with UTF-8 and UTF-8 only. lmtpd needs to translate from UTF-8 to mUTF7 when performing a fileinto so that users don't need to see the yuckiness that is mUTF7.

brong commented 21 years ago

From: Larry Greenfield

adding Mark Keasling, who showed interest in fixing.

the method we discussed was to add a function call to mboxname.c to convert UTF-8 to mUTF7. it might also validate the mailbox name at that time.

brong commented 21 years ago

From: Larry Greenfield

fixing summary

brong commented 21 years ago

Attachment-Id: 111 From: Mark Keasling Type: text/plain File: lldiffs

Patch to convert sieve_fileinto() names from utf8 to utf7

brong commented 21 years ago

Attachment-Id: 112 From: Mark Keasling Type: text/plain File: lldiffs

Patch to convert sieve_fileinto() names from utf8 to utf7

brong commented 21 years ago

From: Larry Greenfield

(From update of attachment 112) two things: i don't understand when a caller would want to pass NULL as the first parameter to mboxname_utf8toutf7(); it looks like it'll inevitably return NULL in that case and no useful work will be performed.

brong commented 16 years ago

From: Ken Murchison

Add code to do UTF-8 to mUTF-7 conversion at script compile time, rather than at execution time. Probably needs some further testing.