Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoding #9

Closed
alexpogorelov opened this issue Aug 15, 2013 · 4 comments
Closed

encoding #9

alexpogorelov opened this issue Aug 15, 2013 · 4 comments
Assignees
Labels
Utf7_Utf8 Encoding issues

Comments

@alexpogorelov
Copy link

When I sync the mailboxes in the names of folders that have Cyrillic characters
I'm getting invalid names in the console (utf8)
need to re-encode the output of utf7 in utf8

INBOX.&BD4EPwQ4BEEEOA- &BD8EOARBBDUEPA-
--->>>
INBOX.описи писем

piece of code
(sorry I do not know much Perl)

my $str45;
$str45=$h1_folders_all[2];
substr($str45,6,1)="+";
substr($str45,23,1)="+";

Encode::from_to($str45,'utf7','utf8');

@gilleslamiral
Copy link
Member

Hello Alex

Invalid names or just unrecognizable?
utf-7 (modified) is the way all folders names are encoded in IMAP
so you have to use that encoding to select folders with imapsync.
So utf-8 conversion is just sugar for the console.

On 15/08/2013 10:43, alexpogorelov wrote:

When I sync the mailboxes in the names of folders that have Cyrillic characters
I'm getting invalid names in the console (utf8)
need to re-encode the output of utf7 in utf8

INBOX.&BD4EPwQ4BEEEOA- &BD8EOARBBDUEPA-
--->>>

INBOX.описи писем

piece of code
(sorry I do not know much Pearl)

my $str45;
$str45=$h1_folders_all[2];
substr($str45,6,1)="+";
substr($str45,23,1)="+";

Encode::from_to($str45,'utf7','utf8');

Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06

@alexpogorelov
Copy link
Author

" just unrecognizable"
synchronization is working correctly
just uncomfortable to watch the output to the console
:)

however there is another error
but it involves large amounts of letters
I think it is better to create a separate topic

@gilleslamiral
Copy link
Member

On 15/08/2013 12:22, alexpogorelov wrote:

" just unrecognizable"
synchronization is working correctly
just uncomfortable to watch the output to the console
:)

Ok I write this in the TODO.

Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06

@gilleslamiral
Copy link
Member

" just unrecognizable"
synchronization is working correctly
just uncomfortable to watch the output to the console

Ok I write this in the TODO.

Until then, in imapsync/W/learn/ directory you have a tool to convert the output listing of imapsync

./imap_utf7 data_utf7
[&ZTZO9nux-] [收件箱]
...

Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06

@nbebout nbebout closed this as completed Oct 18, 2013
@gilleslamiral gilleslamiral self-assigned this Aug 30, 2019
@gilleslamiral gilleslamiral added the Utf7_Utf8 Encoding issues label Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Utf7_Utf8 Encoding issues
Projects
None yet
Development

No branches or pull requests

3 participants