mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #1518] Can't send mail with an attachment containing non-ascii characters in the file name #1197
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1197
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?
Originally created by @lefta on GitHub (Jul 6, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1518
Impacted versions
Steps to reproduce
Send a mail with an attachment containing non-ascii characters in the filename from the webmail. There is no problem with filenames containing only ascii characters and other mail clients (tested with GMail Android).
Current behavior
Mail sending fails with error code 500 and contents :
Expected behavior
Mail sent successfully 😄
Additional details
I really need it to be working, but this is not a problem to fix it myself. How can I install a local (not pip) version, if possible not having to build a full mail stack so I can start to hack the code ? Would
git clonebe enough ? How would I install plugins in this case ? (I'm especially thinking about the webmail plugin, as it seems to be the cause of the breakage)@tonioo commented on GitHub (Jul 8, 2018):
@lefta Please provide a full stack trace.
@lefta commented on GitHub (Jul 9, 2018):
I would like to, but I could not get one. I tried to activate debug mode and check the answer body, but still no backtrace. How may I get one ? I'm using uwsgi if this is relevant. (sorry, I'm new to Modoboa and python servers)
@tonioo commented on GitHub (Jul 9, 2018):
Have you reloaded uwsgi?
@lefta commented on GitHub (Jul 9, 2018):
Yes I did.
EDIT: I have time to make tests right now, so I checked with multiple file formats. Here are the results :
All these formats are binary files, so I wonder what is the difference ?
EDIT 2 : Found the difference. The error happens when sending a file with non-ascii ( I guess ? ) characters. At least
Modele.docxis sent correctly, butModèle.docxtriggers the error. I'm updating the title.EDIT 3 : Tested with GMail on Android, the mail was sent successfully. I think this is fair to guess that the problem comes from the webmail ? Should I open a new bug report in the webmail project ?
@tonioo commented on GitHub (Jul 10, 2018):
@lefta yes please.
@lefta commented on GitHub (Jul 10, 2018):
Done: modoboa/modoboa-webmail#165