[PR #28] [MERGED] subject must be unicode #57

Closed
opened 2026-02-27 10:25:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/modoboa/modoboa-postfix-autoreply/pull/28
Author: @gawel
Created: 3/7/2016
Status: Merged
Merged: 3/8/2016
Merged by: @tonioo

Base: masterHead: unicode_support


📝 Commits (4)

  • 119a0df subject must be unicode
  • d109ee6 import module to avoid hidden errors
  • 5e3c4b9 import module to avoid hidden errors
  • 7aaca14 update travis config.

📊 Changes

2 files changed (+6 additions, -3 deletions)

View changed files

📝 .travis.yml (+4 -2)
📝 modoboa_postfix_autoreply/management/commands/autoreply.py (+2 -1)

📄 Description

I'm getting this trace when the ARMessage contains non ascii characters:

{{{
"/var/www/modoboa/vtenv/local/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py",
line 63, in send_autoreply msg, "{} Re:
{}".format(armessage.subject,
original_msg["Subject"]), UnicodeEncodeError: 'ascii' codec can't encode
character u'\xe0' in position 18: ordinal not in range(128)
}}}

This PR fix the problem.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/modoboa/modoboa-postfix-autoreply/pull/28 **Author:** [@gawel](https://github.com/gawel) **Created:** 3/7/2016 **Status:** ✅ Merged **Merged:** 3/8/2016 **Merged by:** [@tonioo](https://github.com/tonioo) **Base:** `master` ← **Head:** `unicode_support` --- ### 📝 Commits (4) - [`119a0df`](https://github.com/modoboa/modoboa-postfix-autoreply/commit/119a0df0683dd812e2dcf38f7ae0b876f099fd2f) subject must be unicode - [`d109ee6`](https://github.com/modoboa/modoboa-postfix-autoreply/commit/d109ee69a0040f2788957fefa40fa90bc6508a4d) import module to avoid hidden errors - [`5e3c4b9`](https://github.com/modoboa/modoboa-postfix-autoreply/commit/5e3c4b9c97fc4f22f4fa707647a5f145f67c552d) import module to avoid hidden errors - [`7aaca14`](https://github.com/modoboa/modoboa-postfix-autoreply/commit/7aaca14e4edf3ccf04a4734ed06afbcebf1f53cf) update travis config. ### 📊 Changes **2 files changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.travis.yml` (+4 -2) 📝 `modoboa_postfix_autoreply/management/commands/autoreply.py` (+2 -1) </details> ### 📄 Description I'm getting this trace when the ARMessage contains non ascii characters: {{{ "/var/www/modoboa/vtenv/local/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py", line 63, in send_autoreply msg, "{} Re: {}".format(armessage.subject, original_msg["Subject"]), UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 18: ordinal not in range(128) }}} This PR fix the problem. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 10:25:37 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-postfix-autoreply-modoboa#57
No description provided.