question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with cyrillic email "from"

See original GitHub issue

📣 Notification Service(s) Impacted

Email

🪲 Describe the bug

If set from_name using russian language (“Например так”), we get fail with incorrect “email from”. Field from is “From: =?utf-8?b?0YTRi9CyIDxzb21lQGVtYWlsLnJ1Pg==?=”, but it should be From: =?utf-8?b?0YTRi9Cy?= <some@email.ru>

💡 Screenshots and Logs

image

💻 Your System Details:

  • OS: windows 10
  • Python Version: [e.g. Python v3.8]

🔮 Additional context For temporary solving I use Charset('utf-8').header_encode(some_text).

For resolve thats problem need formataddr from email.utils. base['From'] = formataddr((from_name, self.from_addr))

And what do you think about naming “to” (To: Some name <reciever@email.com>)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
maranqzcommented, Aug 8, 2020
  1. I use python code. OS: windows 10 without docker.
  2. Output.
G:\>python -c "import sys; print(sys.getdefaultencoding())"
utf-8
0reactions
caronccommented, Aug 13, 2020

I’m going to close this ticket off now that everything is working. I created another ticket describing your enhancement request with email. 🙂

Feel free to comment here or open another ticket if you have any more issues!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with encoding Cyrillic Text in Email
I have a Bulgarian email account which receives some emails with Cyrillic text content which is displayed as gibberish. Can I change the...
Read more >
Problem with Cyrillic | WordPress.org
Please help me solve the problem with character encoding in system emails and pdf accounts. Cyrillic characters are displayed here as unreadable text...
Read more >
Error: 'Please fix email address' when Using Cyrillic Symbols ...
Kerio Connect does not support Cyrillic Symbols for email addresses. As a workaround, you can convert these symbols to Punycode using either of ......
Read more >
Encoding - can't read mails in Russian (c… - Apple Community
i have the following problem: i cannot read mails i get in russian (cyrillic) - i have already tried adding russian in preferences ......
Read more >
Problem with Cyrillic email on Linux System — oracle-tech
Hi, i have one problem with received emails with cyrillic letters (charset cp1251 or KOI-8) after i get emails from server, i want...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found