calibre-smtp fails to attach file with UTF-8 characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Version: 0.9.13 (from bzr)
Operating System: GNU/Linux (Archlinux)
When sending books containing UTF8 characters the attachment name is not properly passed to server.
This causes:
- Amazon does not recognize the book format and rejects it
- Thunderbird shows some temporary name of the attachment, instead of the original one
I compared the email got from calibre-smtp with an email created in Thunderbird. Thunderbird encoded the file name differently.
So looks like the problem is caused by attachment name not being properly encoded in the headers.
Original header:
--=====
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-
original no headers
--=====
Content-Type: application/
MIME-Version: 1.0
Content-
Content-
=?utf-
=?utf-
Attachment name was: "Superjazda. Jeździć z przyjemnością_ Czy jazda samochodem jest niebezpieczna_
description: | updated |
This is not worth the effort for me personally. If some one else wants to implement it, I will be happy to supply any needed guidance. If so, re-open the ticket and we can discuss it.
status wontfix