[opensuse] Thunderbird - Hylafax/Avantfax attachment name encoding problem??
Guys (mozilla/email gurus), For some reason, the .gif thumbnail and .pdf attachments names are not being handle properly in thunderbird. When a fax is received by hylafax/avantfax, a thumbnail of the fax is created in .gif format as 'thumb.gif' and a .pdf of the fax is created as 'fax.pdf'. Both of these are included as attachments to the mail notification sent by hylafax/avantfax. The php code that defines this is: define('THUMBNAIL', 'thumb.gif'); <snip> define('PDFNAME', 'fax.pdf'); In the past, the fax notifications have come through with the proper attachments 'thumbs.gif' and 'fax.pdf'. Now, in thunderbird, instead of getting 'thumbs.gif' and 'fax.pdf', you get attachments of 'Part 1.1.2' (instead of thumb.gif) and 'Part 1.2' (instead of fax.pdf). I can save 'Part 1.1.2' as whatever.gif and save 'Part 1.2' as something.pdf and view them fine, but the problem is that something isn't working correctly in the attachment recognition in thunderbird. But what?? I have posted to the hylafax-user list and they have suggested it is an encoding issue in tbird. For grins, I have opened the emails in windows and they do come through as (ATT00007.gif and ATT00010.pdf) for example. That's fine, because the filetypes are correctly recognized. Looking at the mail source in thunderbird (binary encoding snipped), I find: Return-Path: <root@localhost.myhost.com> X-Original-To: david@myhost.com Delivered-To: david@myhost.com Received: by nirvana.myhost.com (Postfix, from userid 0) id 39AB75FDA7; Fri, 1 Apr 2011 15:07:16 -0500 (CDT) To: david@myhost.com Subject: fax: 936 715 9339 01.04.2011 15:07 X-PHP-Originating-Script: 33:htmlMimeMail5.php MIME-Version: 1.0 X-Mailer: AvantFAX 3 From: root@localhost.myhost.com Content-Type: multipart/mixed; boundary="=_9d71f6ee924bb63526d75ca9fd0a9b8c" Message-ID: <lizp84.y7bdhw@localhost> Date: Fri, 1 Apr 2011 15:07:16 -0500 (CDT) --=_9d71f6ee924bb63526d75ca9fd0a9b8c Content-Type: multipart/related; boundary="=_755182ba1ccf42f0a560b3fc2a49945a" --=_755182ba1ccf42f0a560b3fc2a49945a Content-Type: multipart/alternative; boundary="=_159082721b0660a7b446964764754149" --=_159082721b0660a7b446964764754149 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 RnJvbTogOTM2IDcxNSA5MzM5CmZheCBpZDogMTY4ClBhZ2VzOiAyCgoKCgp3d3cuMzExMXNreWxp bmUuY29t --=_159082721b0660a7b446964764754149 Content-Transfer-Encoding: base64 Content-Type: text/html; charset=UTF-8 PGh0bWw+PGJvZHk+RnJvbTogOTM2IDcxNSA5MzM5PGJyIC8+ZmF4IGlkOiAxNjg8YnIgLz5QYWdl czogMjxiciAvPjxiciAvPjxiciAvPjxhIGhyZWY9Imh0dHA6Ly93d3cuMzExMXNreWxpbmUuY29t L2F2YW50ZmF4LyI+QXZhbnRGQVggLSZndDsgMzExMXNreWxpbmU8L2E+PC9ib2R5PjwvaHRtbD4= --=_159082721b0660a7b446964764754149-- --=_755182ba1ccf42f0a560b3fc2a49945a Content-Transfer-Encoding: base64 Content-ID: <f0de29f18872bc1e5d0911e379bdcf5e> Content-Type: image/gif Content-Disposition: inline R0lGODlhUAA0APeAABsbGx4eHiAgICMjIyQkJCgoKCoqKisrKzAwMDU1NTk5OURERExMTF9fX2Fh <snip> CB1JvNqFdddGAVgUxgm670DiydbWW2Q5PJxkrlUMm72qjeYvvBx37DFtAQEAOw== --=_755182ba1ccf42f0a560b3fc2a49945a-- --=_9d71f6ee924bb63526d75ca9fd0a9b8c Content-Transfer-Encoding: base64 Content-Type: application/pdf Content-Disposition: attachment JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29k <snip> RjhDNUY4RkJCMzIwOEZGNz5dCj4+CnN0YXJ0eHJlZgo1MTU1MAolJUVPRgo= --=_9d71f6ee924bb63526d75ca9fd0a9b8c-- Looking at the source above, I see that the content type looks correct as: Content-Type: image/gif Content-Type: application/pdf The mystery is why is thunderbird not listing these attachments as .gif and .pdf? I have made the X-PHP-Originating-Script htmlMimeMail5.php available here just in case it is involved in this issue: http://www.rlfpllc.com/dl/apps/avantfax/htmlMimeMail5.php.txt There are some things I'm good at and others I'm not. Sorting out email attachment encoding issues definitely fall on the 'not' side :) Wolfgang/All - does anybody have an idea what may be causing these .gif and .pdf attachments to be listed as 'Part 1.1.2' and 'Part 1.2' in thunderbird? More importantly - any idea how to make thunderbird list the attachments as something.gif and something.pdf as a fix? Strange issue I know -- that's why I have to punt this one to the smart guys :p -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi, Am 07.04.2011 22:44, schrieb David C. Rankin:
In the past, the fax notifications have come through with the proper attachments 'thumbs.gif' and 'fax.pdf'.
What means in the past? Did it work with some earlier version of Thunderbird?
Now, in thunderbird, instead of getting 'thumbs.gif' and 'fax.pdf', you get attachments of 'Part 1.1.2' (instead of thumb.gif) and 'Part 1.2' (instead of fax.pdf).
Just a quick shot. Your data below does not specify a "filename" of the attachment. The header I usually get for stuff like that is for example: Content-Disposition: attachment; filename="RG791113586.pdf"
I can save 'Part 1.1.2' as whatever.gif and save 'Part 1.2' as something.pdf and view them fine, but the problem is that something isn't working correctly in the attachment recognition in thunderbird. But what??
My guess is that if there is no filename Thunderbird is using this generic 'Part 1.1.2' identifiers.
I have posted to the hylafax-user list and they have suggested it is an encoding issue in tbird. For grins, I have opened the emails in windows and they do come through as (ATT00007.gif and ATT00010.pdf) for example. That's fine, because the filetypes are correctly recognized.
A mail application is most likely free how to handle unnamed files. You get these names on Thunderbird for Windows or another MUA?
Wolfgang/All - does anybody have an idea what may be causing these .gif and .pdf attachments to be listed as 'Part 1.1.2' and 'Part 1.2' in thunderbird? More importantly - any idea how to make thunderbird list the attachments as something.gif and something.pdf as a fix?
Encode a filename for the attachment in the mail creation process? Actually I would need to dig deeper into it why not or if it would make sense for Thunderbird to analyze the Content-Type if no filename is given and create a smarter name than "Part-1-2" or alike. There may be reasons or not. Wolfgang -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 4/7/2011 4:44 PM, David C. Rankin wrote:
Guys (mozilla/email gurus),
For some reason, the .gif thumbnail and .pdf attachments names are not being handle properly in thunderbird. When a fax is received by hylafax/avantfax, a thumbnail of the fax is created in .gif format as 'thumb.gif' and a .pdf of the fax is created as 'fax.pdf'. Both of these are included as attachments to the mail notification sent by hylafax/avantfax. The php code that defines this is:
define('THUMBNAIL', 'thumb.gif'); <snip> define('PDFNAME', 'fax.pdf');
In the past, the fax notifications have come through with the proper attachments 'thumbs.gif' and 'fax.pdf'.
Now, in thunderbird, instead of getting 'thumbs.gif' and 'fax.pdf', you get attachments of 'Part 1.1.2' (instead of thumb.gif) and 'Part 1.2' (instead of fax.pdf).
I can save 'Part 1.1.2' as whatever.gif and save 'Part 1.2' as something.pdf and view them fine, but the problem is that something isn't working correctly in the attachment recognition in thunderbird. But what??
I have posted to the hylafax-user list and they have suggested it is an encoding issue in tbird. For grins, I have opened the emails in windows and they do come through as (ATT00007.gif and ATT00010.pdf) for example. That's fine, because the filetypes are correctly recognized.
Looking at the mail source in thunderbird (binary encoding snipped), I find:
Return-Path: <root@localhost.myhost.com> X-Original-To: david@myhost.com Delivered-To: david@myhost.com Received: by nirvana.myhost.com (Postfix, from userid 0) id 39AB75FDA7; Fri, 1 Apr 2011 15:07:16 -0500 (CDT) To: david@myhost.com Subject: fax: 936 715 9339 01.04.2011 15:07 X-PHP-Originating-Script: 33:htmlMimeMail5.php MIME-Version: 1.0 X-Mailer: AvantFAX 3 From: root@localhost.myhost.com Content-Type: multipart/mixed; boundary="=_9d71f6ee924bb63526d75ca9fd0a9b8c" Message-ID: <lizp84.y7bdhw@localhost> Date: Fri, 1 Apr 2011 15:07:16 -0500 (CDT)
--=_9d71f6ee924bb63526d75ca9fd0a9b8c Content-Type: multipart/related; boundary="=_755182ba1ccf42f0a560b3fc2a49945a"
--=_755182ba1ccf42f0a560b3fc2a49945a Content-Type: multipart/alternative; boundary="=_159082721b0660a7b446964764754149"
--=_159082721b0660a7b446964764754149 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8
RnJvbTogOTM2IDcxNSA5MzM5CmZheCBpZDogMTY4ClBhZ2VzOiAyCgoKCgp3d3cuMzExMXNreWxp
bmUuY29t --=_159082721b0660a7b446964764754149 Content-Transfer-Encoding: base64 Content-Type: text/html; charset=UTF-8
PGh0bWw+PGJvZHk+RnJvbTogOTM2IDcxNSA5MzM5PGJyIC8+ZmF4IGlkOiAxNjg8YnIgLz5QYWdl
czogMjxiciAvPjxiciAvPjxiciAvPjxhIGhyZWY9Imh0dHA6Ly93d3cuMzExMXNreWxpbmUuY29t
L2F2YW50ZmF4LyI+QXZhbnRGQVggLSZndDsgMzExMXNreWxpbmU8L2E+PC9ib2R5PjwvaHRtbD4=
--=_159082721b0660a7b446964764754149--
--=_755182ba1ccf42f0a560b3fc2a49945a Content-Transfer-Encoding: base64 Content-ID: <f0de29f18872bc1e5d0911e379bdcf5e> Content-Type: image/gif Content-Disposition: inline
R0lGODlhUAA0APeAABsbGx4eHiAgICMjIyQkJCgoKCoqKisrKzAwMDU1NTk5OURERExMTF9fX2Fh
<snip> CB1JvNqFdddGAVgUxgm670DiydbWW2Q5PJxkrlUMm72qjeYvvBx37DFtAQEAOw== --=_755182ba1ccf42f0a560b3fc2a49945a--
--=_9d71f6ee924bb63526d75ca9fd0a9b8c Content-Transfer-Encoding: base64 Content-Type: application/pdf Content-Disposition: attachment
JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29k
<snip> RjhDNUY4RkJCMzIwOEZGNz5dCj4+CnN0YXJ0eHJlZgo1MTU1MAolJUVPRgo= --=_9d71f6ee924bb63526d75ca9fd0a9b8c--
Looking at the source above, I see that the content type looks correct as:
Content-Type: image/gif Content-Type: application/pdf
The mystery is why is thunderbird not listing these attachments as .gif and .pdf?
I have made the X-PHP-Originating-Script htmlMimeMail5.php available here just in case it is involved in this issue:
http://www.rlfpllc.com/dl/apps/avantfax/htmlMimeMail5.php.txt
There are some things I'm good at and others I'm not. Sorting out email attachment encoding issues definitely fall on the 'not' side :)
Wolfgang/All - does anybody have an idea what may be causing these .gif and .pdf attachments to be listed as 'Part 1.1.2' and 'Part 1.2' in thunderbird? More importantly - any idea how to make thunderbird list the attachments as something.gif and something.pdf as a fix?
Strange issue I know -- that's why I have to punt this one to the smart guys :p
Given that mime content, there is no mystery why the attachment has no filename, none was supplied. Content-Disposition: attachment needs to be Content-Disposition: attachment ; filename=thumb.gif ; The mystery is, whatever generated this email in the first place, why did it stop including a suggested filename for the attachment? -- bkw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Brian K. White
-
David C. Rankin
-
Wolfgang Rosenauer