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:
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:
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