2013-01-11 09:34:18 |
Maciej Sitarz |
bug |
|
|
added bug |
2013-01-11 09:43:53 |
Maciej Sitarz |
branch linked |
|
lp:~macieksitarz/calibre/smtp-attachment-encode |
|
2013-01-11 09:46:32 |
Maciej Sitarz |
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:
--===============6393381867086729764==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
original no headers
--===============6393381867086729764==
Content-Type: application/x-mobipocket-ebook
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: =?utf-8?q?attachment=3B_filename=3D=22Superjazda=2E_Je?=
=?utf-8?b?xbpkemnEhyB6IHByenlqZW1ub8WbY2nEhV8gQ3p5IGphemRhIHNhbW9jaG9kZW0g?=
=?utf-8?q?jest_niebezpieczna=5F=2Emobi=22?= |
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:
--===============6393381867086729764==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
original no headers
--===============6393381867086729764==
Content-Type: application/x-mobipocket-ebook
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: =?utf-8?q?attachment=3B_filename=3D=22Superjazda=2E_Je?=
=?utf-8?b?xbpkemnEhyB6IHByenlqZW1ub8WbY2nEhV8gQ3p5IGphemRhIHNhbW9jaG9kZW0g?=
=?utf-8?q?jest_niebezpieczna=5F=2Emobi=22?= |
|
2013-01-11 09:48:30 |
Kovid Goyal |
calibre: status |
New |
Won't Fix |
|
2013-01-11 09:51:18 |
Maciej Sitarz |
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:
--===============6393381867086729764==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
original no headers
--===============6393381867086729764==
Content-Type: application/x-mobipocket-ebook
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: =?utf-8?q?attachment=3B_filename=3D=22Superjazda=2E_Je?=
=?utf-8?b?xbpkemnEhyB6IHByenlqZW1ub8WbY2nEhV8gQ3p5IGphemRhIHNhbW9jaG9kZW0g?=
=?utf-8?q?jest_niebezpieczna=5F=2Emobi=22?= |
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:
--===============6393381867086729764==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
original no headers
--===============6393381867086729764==
Content-Type: application/x-mobipocket-ebook
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: =?utf-8?q?attachment=3B_filename=3D=22Superjazda=2E_Je?=
=?utf-8?b?xbpkemnEhyB6IHByenlqZW1ub8WbY2nEhV8gQ3p5IGphemRhIHNhbW9jaG9kZW0g?=
=?utf-8?q?jest_niebezpieczna=5F=2Emobi=22?=
Attachment name was: "Superjazda. Jeździć z przyjemnością_ Czy jazda samochodem jest niebezpieczna_.mobi" |
|
2013-01-11 10:07:49 |
Launchpad Janitor |
branch linked |
|
lp:calibre |
|
2013-01-11 10:09:24 |
Kovid Goyal |
calibre: status |
Won't Fix |
Fix Released |
|