mirror of
https://github.com/modoboa/modoboa-postfix-autoreply.git
synced 2026-04-25 08:35:53 +03:00
[PR #28] [MERGED] subject must be unicode #57
Labels
No labels
bug
bug
enhancement
enhancement
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-postfix-autoreply-modoboa#57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:unicode_support📝 Commits (4)
119a0dfsubject must be unicoded109ee6import module to avoid hidden errors5e3c4b9import module to avoid hidden errors7aaca14update 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.