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

Russian? #14

Closed
sergeymild opened this issue Jun 23, 2019 · 4 comments
Closed

Russian? #14

sergeymild opened this issue Jun 23, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@sergeymild
Copy link

If a have russian mail, and when i fetch it, i received something like this: С �важением

Ð�авÑ�ажнова Ð

@sergeymild sergeymild added the bug Something isn't working label Jun 23, 2019
@michaelspiss
Copy link
Owner

It would be great if you could post the log data here, so it's easier for me to reproduce. You can print it by calling printImapClientDebugLog() before initializing the new ImapClient().

@sergeymild
Copy link
Author

flutter: [INFO] imap_client: Connecting to imap.yandex.ru at port 993 with secure mode on
flutter: [INFO] imap_client: Connecting to imap.yandex.ru at port 993 with secure mode on
flutter: [INFO] imap_client: Connecting to imap.yandex.ru at port 993 with secure mode on
Reloaded 0 of 445 libraries in 29ms.
flutter: [INFO] imap_client: S: * OK Yandex IMAP4rev1 at sas1-5042db83dd38.qloud-c.yandex.net:993 ready to talk with ::ffff:69.6.31.194:51309, 2019-Jun-23 14:26:24, NQNjeH4bKW21
flutter: [INFO] imap_client: S: * OK Yandex IMAP4rev1 at sas1-5042db83dd38.qloud-c.yandex.net:993 ready to talk with ::ffff:69.6.31.194:51309, 2019-Jun-23 14:26:24, NQNjeH4bKW21
flutter: [INFO] imap_client: S: * OK Yandex IMAP4rev1 at sas1-5042db83dd38.qloud-c.yandex.net:993 ready to talk with ::ffff:69.6.31.194:51309, 2019-Jun-23 14:26:24, NQNjeH4bKW21
flutter: [INFO] imap_client: C: A1 CAPABILITY
flutter: [INFO] imap_client: C: A1 CAPABILITY
flutter: [INFO] imap_client: C: A1 CAPABILITY
flutter: [INFO] imap_client: S: * CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY UIDPLUS ENABLE ID AUTH=PLAIN AUTH=XOAUTH2 IDLE MOVE
flutter: [INFO] imap_client: S: * CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY UIDPLUS ENABLE ID AUTH=PLAIN AUTH=XOAUTH2 IDLE MOVE
flutter: [INFO] imap_client: S: * CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY UIDPLUS ENABLE ID AUTH=PLAIN AUTH=XOAUTH2 IDLE MOVE
flutter: [INFO] imap_client: S: A1 OK CAPABILITY Completed.
flutter: [INFO] imap_client: S: A1 OK CAPABILITY Completed.
flutter: [INFO] imap_client: S: A1 OK CAPABILITY Completed.
flutter: [INFO] imap_client: C: A2 LOGIN "sergeymild@yandex.ru" "egytzzebqxlydszh"
flutter: [INFO] imap_client: C: A2 LOGIN "sergeymild@yandex.ru" "egytzzebqxlydszh"
flutter: [INFO] imap_client: C: A2 LOGIN "sergeymild@yandex.ru" "egytzzebqxlydszh"
flutter: [INFO] imap_client: S: * CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY UIDPLUS ENABLE ID IDLE MOVE

A2 OK LOGIN Completed.
flutter: [INFO] imap_client: S: * CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY UIDPLUS ENABLE ID IDLE MOVE

A2 OK LOGIN Completed.
flutter: [INFO] imap_client: S: * CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY UIDPLUS ENABLE ID IDLE MOVE

A2 OK LOGIN Completed.
flutter: ok
flutter: [INFO] imap_client: C: A4 SELECT "INBOX"
flutter: [INFO] imap_client: C: A4 SELECT "INBOX"
flutter: [INFO] imap_client: C: A4 SELECT "INBOX"
flutter: [INFO] imap_client: S: * FLAGS (\Answered \Seen \Draft \Deleted $Forwarded)

* 9 EXISTS

* 0 RECENT

* OK [PERMANENTFLAGS (\Answered \Seen \Draft \Flagged \Deleted $Forwarded \*)] Limited

* OK [UIDNEXT 21619] Ok

* OK [UIDVALIDITY 1274467044] Ok
flutter: [INFO] imap_client: S: * FLAGS (\Answered \Seen \Draft \Deleted $Forwarded)

* 9 EXISTS

* 0 RECENT

* OK [PERMANENTFLAGS (\Answered \Seen \Draft \Flagged \Deleted $Forwarded \*)] Limited

* OK [UIDNEXT 21619] Ok

* OK [UIDVALIDITY 1274467044] Ok
flutter: [INFO] imap_client: S: * FLAGS (\Answered \Seen \Draft \Deleted $Forwarded)

* 9 EXISTS

* 0 RECENT

* OK [PERMANENTFLAGS (\Answered \Seen \Draft \Flagged \Deleted $Forwarded \*)] Limited

* OK [UIDNEXT 21619] Ok

* OK [UIDVALIDITY 1274467044] Ok
flutter: [INFO] imap_client: S: A4 OK [READ-WRITE] SELECT Completed.
flutter: [INFO] imap_client: S: A4 OK [READ-WRITE] SELECT Completed.
flutter: [INFO] imap_client: S: A4 OK [READ-WRITE] SELECT Completed.
flutter: [INFO] imap_client: C: A5 UID FETCH 21612 (BODY[1])
flutter: [INFO] imap_client: C: A5 UID FETCH 21612 (BODY[1])
flutter: [INFO] imap_client: C: A5 UID FETCH 21612 (BODY[1])
flutter: [INFO] imap_client: S: * 9 FETCH (UID 21612 BODY[1] {202}

<div><br /></div><div><br /></div><div>-- <br />С �важением</div><div>�ав�ажнова �а�ал�� �лек�анд�овна</div><div>�ел. 8 (903) 603 33 33</div><div><br /></div>)
flutter: [INFO] imap_client: S: * 9 FETCH (UID 21612 BODY[1] {202}

<div><br /></div><div><br /></div><div>-- <br />С �важением</div><div>�ав�ажнова �а�ал�� �лек�анд�овна</div><div>�ел. 8 (903) 603 33 33</div><div><br /></div>)
flutter: [INFO] imap_client: S: * 9 FETCH (UID 21612 BODY[1] {202}

<div><br /></div><div><br /></div><div>-- <br />С �важением</div><div>�ав�ажнова �а�ал�� �лек�анд�овна</div><div>�ел. 8 (903) 603 33 33</div><div><br /></div>)
flutter: [INFO] imap_client: S: A5 OK UID FETCH Completed.
flutter: [INFO] imap_client: S: A5 OK UID FETCH Completed.
flutter: [INFO] imap_client: S: A5 OK UID FETCH Completed.
flutter: {9: {UID: 21612, BODY[1]: <div><br /></div><div><br /></div><div>-- <br />С �важением</div><div>�ав�ажнова �а�ал�� �лек�анд�овна</div><div>�ел. 8 (903) 603 33 33</div><div><br /></div>}}

@sergeymild
Copy link
Author

sergeymild commented Jun 23, 2019

I tried in class imap_buffer.dart in method readLiteral at the end instead of call String.fromCharCodes(charCodes), call this utf8.decode(charCodes) and it works perfect

@michaelspiss
Copy link
Owner

I will need to check the other read methods, but I will release a bugfix as soon as possible. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants