SM 1.1.1 renaming *.pdf files to *.pdf.doc when downloading email attachments

Hi Gang.
I have a very strange problem.  When opening PDF email attachments, SM 
1.1.1 is renaming to invoice.pdf.doc.  That is, the attachment shows up 
as a .pdf file, but when I right click > open, the download manager 
opens but the file is then called invoice.pdf.doc and of course opens in 
word.  Which displays it as a virtually unreadable source file.

I know that it's not good practice to open attachments with out scanning 
them first, but seeing as these are just invoices from my ISP, it's not 
really a problem.

I also know I can just right click the file in the download manager and 
select "Show file location", then rename the file back to .pdf and it 
opens just fine.  But that is a bit much when it should just open, don't 
you think?

Any ideas or suggestions will be greatly appreciated.
Thanks for your time.
-Adrian

SeaMonkey 1.1.1 on an XP pro sp2 box.
+ multi-boot ubuntu, 98se.
0
Adrian
3/5/2007 12:15:40 PM
mozilla.support.seamonkey 13250 articles. 0 followers. Post Follow

7 Replies
1304 Views

Similar Articles

[PageSpeed] 25

On 2007-03-05 13:15 CET,
Adrian (down under) wrote:

> Hi Gang.
> I have a very strange problem.  When opening PDF email attachments, SM 
> 1.1.1 is renaming to invoice.pdf.doc.  That is, the attachment shows up 
> as a .pdf file, but when I right click > open, the download manager 
> opens but the file is then called invoice.pdf.doc and of course opens in 
> word.  Which displays it as a virtually unreadable source file.
> 
> I know that it's not good practice to open attachments with out scanning 
> them first, but seeing as these are just invoices from my ISP, it's not 
> really a problem.
> 
> I also know I can just right click the file in the download manager and 
> select "Show file location", then rename the file back to .pdf and it 
> opens just fine.  But that is a bit much when it should just open, don't 
> you think?
> 
> Any ideas or suggestions will be greatly appreciated.
> Thanks for your time.
> -Adrian
> 
> SeaMonkey 1.1.1 on an XP pro sp2 box.
> + multi-boot ubuntu, 98se.

Do You see the same behavior on all of your three platforms?
-- 
[(Windows; U; WinNT4.0; en-US; rv:1.8.0.10) Gecko/20070217 SeaMonkey/1.0.8]
0
Rolf
3/5/2007 12:49:01 PM
Rolf wrote:
> On 2007-03-05 13:15 CET,
> Adrian (down under) wrote:
> 
>> Hi Gang.
>> I have a very strange problem.  When opening PDF email attachments, SM 
>> 1.1.1 is renaming to invoice.pdf.doc.  That is, the attachment shows 
>> up as a .pdf file, but when I right click > open, the download manager 
>> opens but the file is then called invoice.pdf.doc and of course opens 
>> in word.  Which displays it as a virtually unreadable source file.
>>
>> I know that it's not good practice to open attachments with out 
>> scanning them first, but seeing as these are just invoices from my 
>> ISP, it's not really a problem.
>>
>> I also know I can just right click the file in the download manager 
>> and select "Show file location", then rename the file back to .pdf and 
>> it opens just fine.  But that is a bit much when it should just open, 
>> don't you think?
>>
>> Any ideas or suggestions will be greatly appreciated.
>> Thanks for your time.
>> -Adrian
>>
>> SeaMonkey 1.1.1 on an XP pro sp2 box.
>> + multi-boot ubuntu, 98se.
> 
> Do You see the same behavior on all of your three platforms?


Mmm... Interisting!  SM-1.0.6 on the 98se drive also adds the .doc 
extension but the file still opens in AR.
I hardly ever use that os, so I haven't bothered updating SM.  But the 
drive has two other data partitions that I do sometimes use.
I have separate drives for each OS.

The ubuntu drive has FF/TB on it so I didn't try that one.
I would rather SM but it ubuntu 6.06 comes with FF installed, so I just 
replaced the Evolution mail (which I didn't like anyway) with TB.
I could try ubuntu/TB though if you thought it would make any difference.

Got any ideas?

Cheers.
-Adrian
0
Adrian
3/6/2007 3:11:23 AM
On 2007-03-06 04:11 CET,
Adrian (down under) wrote:

> 
> Mmm... Interisting!  SM-1.0.6 on the 98se drive also adds the .doc 

Seems to be consistent and repeatable then. That's good, even if not so ;-)

> extension but the file still opens in AR.
   Hmm...?

> Got any ideas?

Do the following
1). select the specific message in SeaMonkey (or open it).
2). display the source of the mail by keying Ctrl-U (that is hold down 
the Ctrl key and press the 'u' key) - a new window "view-source" 
containing the source of the message will show up.
3). just type 'invoice.pdf' in the view-source window, and you should be 
brought to some lines like those below (or go to the next via Ctrl-G).

If the message is supposed to carry a MS Word document you should find 
attachment headers similar to these in the source:

Content-Type: application/msword;
	name="invoice.doc"
Content-Transfer-Encoding: base64
Content-Description: invoice.doc	<-- not necessarily
Content-Disposition: attachment;
	filename="invoice.doc"

If the message is supposed to carry a PDF document you should see 
attachment header lines like these:

Content-Type: application/pdf;
  name="invoice.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
  filename="invoice.pdf"

Could it be that the Content-Disposition header line looks something 
like this in your message?

Content-Disposition: attachment;
	filename="invoice.pdf.doc"	<- notice the appended ".doc"

Then that could be the root of your problem. This line, if is the 
attachments default save/file name (if my mind serves me).
-- 
Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.8.0.10) Gecko/20070217 
SeaMonkey/1.0.8
0
Rolf
3/6/2007 10:40:53 AM
Rolf wrote:
> On 2007-03-06 04:11 CET,
> Adrian (down under) wrote:
> 
>>
>> Mmm... Interisting!  SM-1.0.6 on the 98se drive also adds the .doc 
> 
> Seems to be consistent and repeatable then. That's good, even if not so ;-)
> 
>> extension but the file still opens in AR.
>   Hmm...?
> 
>> Got any ideas?
> 
> Do the following
> 1). select the specific message in SeaMonkey (or open it).
> 2). display the source of the mail by keying Ctrl-U (that is hold down 
> the Ctrl key and press the 'u' key) - a new window "view-source" 
> containing the source of the message will show up.
> 3). just type 'invoice.pdf' in the view-source window, and you should be 
> brought to some lines like those below (or go to the next via Ctrl-G).
> 
> If the message is supposed to carry a MS Word document you should find 
> attachment headers similar to these in the source:
> 
> Content-Type: application/msword;
>     name="invoice.doc"
> Content-Transfer-Encoding: base64
> Content-Description: invoice.doc    <-- not necessarily
> Content-Disposition: attachment;
>     filename="invoice.doc"
> 
> If the message is supposed to carry a PDF document you should see 
> attachment header lines like these:
> 
> Content-Type: application/pdf;
>  name="invoice.pdf"
> Content-Transfer-Encoding: base64
> Content-Disposition: inline;
>  filename="invoice.pdf"
> 
> Could it be that the Content-Disposition header line looks something 
> like this in your message?
> 
> Content-Disposition: attachment;
>     filename="invoice.pdf.doc"    <- notice the appended ".doc"
> 
> Then that could be the root of your problem. This line, if is the 
> attachments default save/file name (if my mind serves me).


Thanks for that Rolf.

>>> extension but the file still opens in AR.
>>   Hmm...? 

Oh sorry AR = Acrobat Reader.

I think these are the lines you are referring to:
{
Content-type: application/msword; name="invoice-02-03-07.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="invoice-02-03-07.pdf"
}
Which is a bit weird because it says application/msword but the file 
name has a .pdf extension.

Do you think I should get onto my ISP about this, or is it normal?

Thanks again.

-Adrian
0
Adrian
3/9/2007 4:58:17 PM
Adrian (down under) wrote:
> I think these are the lines you are referring to:
> {
> Content-type: application/msword; name="invoice-02-03-07.pdf"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename="invoice-02-03-07.pdf"
> }
> Which is a bit weird because it says application/msword but the file 
> name has a .pdf extension.
> 
> Do you think I should get onto my ISP about this, or is it normal?
> 
> Thanks again.
> 
> -Adrian

no, its not normal.  When SM sees that, then it will try and 
open the pdf in MSWord rather than in acrobat or foxit or 
some other pdf reader.  It might work for IE, but not SM.

-- 
Peter Potamus & His Magic Flying Balloon:
http://www.toonopedia.com/potamus.htm
http://www.bcdb.com/cartoon/46347-Peter_Potamus_Show.html
http://www.toonarific.com/show.php?s_search=Potamus&Button_Update=Search&show_id=2778

Please do not email me for help.  Reply to the newsgroup 
only.  Thanks
0
Peter
3/9/2007 5:11:20 PM
On 2007-03-09 17:58 CET,
Adrian (down under) wrote:

> 
> I think these are the lines you are referring to:
> {
> Content-type: application/msword; name="invoice-02-03-07.pdf"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename="invoice-02-03-07.pdf"
> }
> Which is a bit weird because it says application/msword but the file 
> name has a .pdf extension.
> 
Great! You've located what causes your trouble.

You can create a "temporary" folder in SM, e.g. TempInvoice-070309, and 
copy that faulty Message into it. After leaving SM (just to make sure 
that that new mailbox file isn't open any more), you could search for 
the newly created mailbox file (in your Mozilla Account Profile), open 
it with a text editor and you will find the source you saw before. After 
replacing "application/msword" with "application/pdf", saving the 
mailbox file and relaunching SM You can easily verify this for yourself.

> Do you think I should get onto my ISP about this, or is it normal?
>
Like Peter wrote "its not normal". That's a VERY BAD THING, since that 
technique can be used to trick people into opening an infected document 
instead of one they thought was safe (one of a file format that isn't 
known to be able to carry viruses etc e.g. pdf).

Imagine the opposite. If You had gotten an infected msword (Microsoft 
Word) file, but had been told or assumed it was e.g. safe pdf file and 
it had opened in MS Office when You clicked on it? (If, on the other 
hand, Your default MS Word Document viewer was OpenOffice.org then You 
should have been safe, despite of this).

If it was your ISP that sent you that invoice (although the problem can 
reside at your ISP's External Billing Services - if they use one), then YES!

It IS clearly an error in the sending Mail User Agent (MUA), which in 
this case could be your ISP's Billing System.

-- 
Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.8.0.10) Gecko/20070217 
SeaMonkey/1.0.8 - Classic Theme - 266MHz Mobile Pentium II 288MB RAM
0
Rolf
3/9/2007 8:24:41 PM
Rolf wrote:
> On 2007-03-09 17:58 CET,
> Adrian (down under) wrote:
> 
>>
>> I think these are the lines you are referring to:
>> {
>> Content-type: application/msword; name="invoice-02-03-07.pdf"
>> Content-Transfer-Encoding: base64
>> Content-Disposition: attachment; filename="invoice-02-03-07.pdf"
>> }
>> Which is a bit weird because it says application/msword but the file 
>> name has a .pdf extension.
>>
> Great! You've located what causes your trouble.
> 
> You can create a "temporary" folder in SM, e.g. TempInvoice-070309, and 
> copy that faulty Message into it. After leaving SM (just to make sure 
> that that new mailbox file isn't open any more), you could search for 
> the newly created mailbox file (in your Mozilla Account Profile), open 
> it with a text editor and you will find the source you saw before. After 
> replacing "application/msword" with "application/pdf", saving the 
> mailbox file and relaunching SM You can easily verify this for yourself.

Okay, if I do that it will prove that the file will then open in the 
proper application.  Actually I already believe you! :-)

So why does it open in Acrobat with SM 1.0.6 on 98se?



> 
>> Do you think I should get onto my ISP about this, or is it normal?
>>
> Like Peter wrote "its not normal". That's a VERY BAD THING, since that 
> technique can be used to trick people into opening an infected document 
> instead of one they thought was safe (one of a file format that isn't 
> known to be able to carry viruses etc e.g. pdf).
> 
> Imagine the opposite. If You had gotten an infected msword (Microsoft 
> Word) file, but had been told or assumed it was e.g. safe pdf file and 
> it had opened in MS Office when You clicked on it? (If, on the other 
> hand, Your default MS Word Document viewer was OpenOffice.org then You 
> should have been safe, despite of this).

I have OpenOffice on my ubantu drive, but in Linux it wouldn't matter 
anyway.  That OS is pretty well bullet proof.

> 
> If it was your ISP that sent you that invoice (although the problem can 
> reside at your ISP's External Billing Services - if they use one), then 
> YES!
> 
> It IS clearly an error in the sending Mail User Agent (MUA), which in 
> this case could be your ISP's Billing System.
> 

Well I will contact them about this because as you point out, it's 
potential security breach.

Thanks to both you and Peter for you valuable assistance, and I learnt 
something too!.
All the best.
-Adrian
0
Adrian
3/10/2007 3:47:50 PM
Reply:

Similar Artilces:

[Linux SM 1.1] OpenOffice 2.1 Send Email now working w/SM 1.1
Some of you may recall the related thread from October: "SM 1.0.05 Not Working with OpenOffice Send as Email"; well I am *very* pleased to report that the bugfix in SM 1.1 (https://bugzilla.mozilla.org/show_bug.cgi?id=122698) has fixed the issue of not being able to send email in OpenOffice 2.1 when an instance of SM is already running! Thanks SM dudes! Uninstalled 1.0.7, loaded 1.1, tested sending an Openoffice 2.1 document from OOo while having my SM open & bingo, OOo opened up an email composition window, attached the OOo document properly, worked like a champ. I...

superreview granted: [Bug 362139] bump SeaMonkey versions to 1.0.7/1.1 on 1.8.0/1.8 branches, localeVersion to 1.8.1 on 1.8 branch : [Attachment 246922] 1.8 patch: SeaMonkey version -> 1.1, localeVers
neil@parkwaycc.co.uk <neil@httl.net> has granted Robert Kaiser <kairo@kairo.at>'s request for superreview: Bug 362139: bump SeaMonkey versions to 1.0.7/1.1 on 1.8.0/1.8 branches, localeVersion to 1.8.1 on 1.8 branch https://bugzilla.mozilla.org/show_bug.cgi?id=362139 Attachment 246922: 1.8 patch: SeaMonkey version -> 1.1, localeVersion -> 1.8.1 https://bugzilla.mozilla.org/attachment.cgi?id=246922&action=edit ...

superreview requested: [Bug 362139] bump SeaMonkey versions to 1.0.7/1.1 on 1.8.0/1.8 branches, localeVersion to 1.8.1 on 1.8 branch : [Attachment 246922] 1.8 patch: SeaMonkey version -> 1.1, localeVe
Robert Kaiser <kairo@kairo.at> has asked neil@parkwaycc.co.uk <neil@httl.net> for superreview: Bug 362139: bump SeaMonkey versions to 1.0.7/1.1 on 1.8.0/1.8 branches, localeVersion to 1.8.1 on 1.8 branch https://bugzilla.mozilla.org/show_bug.cgi?id=362139 Attachment 246922: 1.8 patch: SeaMonkey version -> 1.1, localeVersion -> 1.8.1 https://bugzilla.mozilla.org/attachment.cgi?id=246922&action=edit ------- Additional Comments from Robert Kaiser <kairo@kairo.at> ...and here's the 1.8 branch patch, setting SeaMonkey version to 1.1 for final, and locale...

No way to download PDF files in 1.0.1
I reported this bug earlier. It also was a downfall of several previous versions. I am glad that I still have Phoenix 0.5 to download these PDF files. When I click on a link that downloads a .PDF file (it's an .html link, not a .pdf link, so I cannot save target as...), the dialog that comes up has the OK button greyed out. It doesn't matter whether I prefer the radio button for download or show, OK is still greyed out. From another site, which tries to open the .PDF file in another window, that other window or tab does not open. -- Jonathan Berry jberry@islandn...

superreview granted: [Bug 362139] bump SeaMonkey versions to 1.0.7/1.1 on 1.8.0/1.8 branches, localeVersion to 1.8.1 on 1.8 branch : [Attachment 246921] 1.8.0 patch: SeaMonkey version -> 1.0.7
neil@parkwaycc.co.uk <neil@httl.net> has granted Robert Kaiser <kairo@kairo.at>'s request for superreview: Bug 362139: bump SeaMonkey versions to 1.0.7/1.1 on 1.8.0/1.8 branches, localeVersion to 1.8.1 on 1.8 branch https://bugzilla.mozilla.org/show_bug.cgi?id=362139 Attachment 246921: 1.8.0 patch: SeaMonkey version -> 1.0.7 https://bugzilla.mozilla.org/attachment.cgi?id=246921&action=edit ...

superreview requested: [Bug 362139] bump SeaMonkey versions to 1.0.7/1.1 on 1.8.0/1.8 branches, localeVersion to 1.8.1 on 1.8 branch : [Attachment 246921] 1.8.0 patch: SeaMonkey version -> 1.0.7
Robert Kaiser <kairo@kairo.at> has asked neil@parkwaycc.co.uk <neil@httl.net> for superreview: Bug 362139: bump SeaMonkey versions to 1.0.7/1.1 on 1.8.0/1.8 branches, localeVersion to 1.8.1 on 1.8 branch https://bugzilla.mozilla.org/show_bug.cgi?id=362139 Attachment 246921: 1.8.0 patch: SeaMonkey version -> 1.0.7 https://bugzilla.mozilla.org/attachment.cgi?id=246921&action=edit ------- Additional Comments from Robert Kaiser <kairo@kairo.at> This is the 1.8.0 branch patch for bumping SeaMonkey version to 1.0.7 ...

SeaMonkey 1.0.8 and 1.1.1
Hi localizers, Sorry for not informing you earlier on, but first we had to do a few respins and then I was too busy with the FOSDEM conference... Anyways, we're about to release the newest SeaMonkey security and stability update releases right now, with the version numbers 1.0.8 and 1.1.1 Due to our L10n freezes, both work with the language packs from earlier versions (1.0 or 1.1), but if you want binary builds up on FTP, you need to regenerate them for those versions. Both are already up in their respective release directories: http://releases.mozilla.org/pub/mozill...

PDF Download 0.5.1.1 works with Firefox 1.5 Beta1
PDF Download 0.5.1.1 is available on the author website (http://www.rabotat.org/firefox) and it is compatible with Firefox 1.5 Beta1. Denis ...

Javascript, SM 1.1.1
I seem to have developed a problem with javascript; namely, it's always on. I generally enable/disable it through a checkbox in prefbar. Thinking that prefbar might be the source of the problem, I reloaded the page and tried disabling javascript through the preferences menu, but it made no difference. Lastly, I reloaded the page and disabled quick launch, but that too made no difference. As an example, with javascript disabled you should have the equivalent of a dead link (I think) when you click on any of the four thumbnails under the words "Select a picture" in this...

crash on SM 1.1.1
Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.8.1.2) Gecko/20070306 SeaMonkey/1.1.1 From popuplog.os2: 09-27-2007 16:42:50 SYS3175 PID 09a3 TID 0001 Slot 00f0 D:\SEAMONKEY\SEAMONKEY.EXE c0000005 1ccc75d2 P1=00000001 P2=01140000 P3=XXXXXXXX P4=XXXXXXXX EAX=0011d96a EBX=01140000 ECX=00000000 EDX=00000000 ESI=00000402 EDI=00c0f060 DS=0053 DSACC=f0f3 DSLIM=ffffffff ES=0053 ESACC=f0f3 ESLIM=ffffffff FS=150b FSACC=00f3 FSLIM=00000030 GS=0000 GSACC=**** GSLIM=******** CS:EIP=005b:1ccc75d2 CSACC=f0df CSLIM=ffffffff SS:ESP=0053:0011d948 SSACC=f0f3 SSLIM=ff...

SM nightlies 1.1.1
Hi Robert, Latest Mac nightly 1.1.1 is third of April. Same problem as a few weeks ago? Nanny ...

Problems with SM 1.1.1
Since upgrading to SeaMonkey 1.1.1 I am having several annoying problems. First the Maximize o Restore Up setting leaves about 1 1/2 inch of gray area between the browser window and the Taskbar. I have to go to Restore Down and stretch the window to fit. Second, the Menu bar sometimes does not appear, other times it disappears. Yes, I have clicked the little thingy that makes it shrink or expand with no results. Third and worst, if I close the browser (Navigator) window I cannot open a browser again without rebooting. I have tried the Window menu, the status bar icon and restarti...

mboximport SM 1.1.1
Has anyone comments on the mboximport for Seamonkey. from: http://xsidebar.mozdev.org/modifiedmisc.html Shows as succesful install, but I can't figure out how/if the darn thing works. (xsidebar installed) running: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1 ID:2007022206 Modern theme Any details on HOW to configure and steps to export/import mail folders is greatly appreciated. regards:captjlddavis captjlddavis wrote: > Has anyone comments on the mboximport for Seamonkey. > from: > > http://xsid...

Problems with SM 1.1.1
Since upgrading to SeaMonkey 1.1.1 I am having several annoying problems. First the Maximize o Restore Up setting leaves about 1 1/2 inch of gray area between the browser window and the Taskbar. I have to go to Restore Down and stretch the window to fit. Second, the Menu bar sometimes does not appear, other times it disappears. Yes, I have clicked the little thingy that makes it shrink or expand with no results. Third and worst, if I close the browser (Navigator) window I cannot open a browser again without rebooting. I have tried the Window menu, the status bar icon and ...

Web resources about - SM 1.1.1 renaming *.pdf files to *.pdf.doc when downloading email attachments - mozilla.support.seamonkey

Uploading and downloading - Wikipedia, the free encyclopedia
... include a web server , FTP server, email server, or other similar systems. A download can mean either any file that is offered for downloading ...

Dropify Download 2.0 Simplifies Uploading Content To Facebook, Downloading, Sharing
... with Facebook’s Open Graph and allowing users to make files available for download via the social network, and share uploading and downloading ...

I'm Downloading on the App Store on iTunes
Get I'm Downloading on the App Store. See screenshots and ratings, and read customer reviews.

Why is Dropbox so slow at downloading?
I've upgraded to the new version, and have relinked the machine that was upgraded. It's downloading at 5K per second. Why so slow? This is on ...

XBMCTorrent Plugin for Downloading or Streaming to XBMC from Torrent Sites ( i.e. PirateBay) - YouTube ...
YouTube: http://YouTube.com/user/xbmchelper XBMCast: http://xbmchelper.squarespace.com Official: http://xbmchelper.webs.com Website: http:// ...

Has downloading killed the video star?
It's a ritual as old as VHS.

You Might Not Get Fined For Downloading Dallas Buyers Club
Dallas Buyers Club pirates and torrenters, there may be a shining light at the end of the dark tunnel ahead of you. The studio behind the movie ...

Downloading movies and TV is not a crime
You wouldn't steal a car... but a movie or television show? Most of us seem fine with that.

Music Piracy - Illegal Downloading - Kazaa - Woman Loses Appeal
US woman loses $222,000 music downloading appeal

An epidemic in illegal downloading
Missing one episode of West Wing, thanks to constant schedule changes, was enough to set Mark and Kim down the road to online piracy.

Resources last updated: 12/12/2015 2:36:43 AM