Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

Attachment downloads

Last post 07-10-2019, 14:30 by rocket. 8 replies.
Sort Posts: Previous Next
  •  01-18-2019, 5:12

    • Eshtaol is not online. Last active: 06-28-2019, 23:00 Eshtaol
    • Top 50 Contributor
    • Joined on 10-22-2007
    • Participant
    • Points 2,830

    Attachment downloads

     Finally made the move up from XP to windows 7 on my journey to 10. Recently have had problems downloading attachments pdf & docx etc.

    When I receive the information from people, and hit attachment to go to download it...it keeps showing type unknown re ere any special settings to cofrrect this problem?

     

     

     

    finally 

  •  01-18-2019, 13:42

    • Brian Fluet is not online. Last active: 10-20-2019, 3:30 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 26,555

    Re: Attachment downloads

    Here are my notes on the subject attachment file types (both outbound and inbound):

    Quoted from the Pegasus Mail manual:

    FILETYPE.PM -  Pegasus Mail uses this file to work out what attachment type it should associate with a given file. It is used when "Mailer decides" is chosen as the attachment type in the Attachments view of the Message editor. Having a well-stocked FILETYPE.PM file means that your messages are more likely to be sent with the information necessary to allow other programs to associate file viewers with them.  Instructions are contained within the file which is a plain text file.

    MIME-MAP.PM - Pegasus Mail uses this file to translate custom MIME content types into attachment types. New MIME content types are being added all the time, and using this file allows Pegasus Mail both to generate them in outgoing mail and to recognize them in incoming mail. For example, say someone sends you a MIME message with the content type "Application/MyWordProcessor", and you have an entry that says that "Appli-
    cation/MyWordProcessor" is the same as "MS-Word", then Pegasus Mail will be able to work out that it can run MS-Word to view the document.

    Example by BF:

    Adding the following lines to FILETYPE.PM will identify the file type of .docx files as "MS-DOCX" and .xslm files as "MS-XLSX".

    MS-DOCX,0,X,0,.DOCX
    MS-XLSX,0,X,0,.XLSX

    Taking this a step further, adding the following lines to MIME-MAP.PM will identify the file type in the Pegasus Mail reader Attachments tab as "Microsoft Office Word Document" and" Microsoft Office Excel Spreadsheet".

    application/vnd.openxmlformats-officedocument.wordprocessingml.document = MS-DOCX
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet = MS-XLSX

    NOTE:   "MS-DOCX" and "MS-XLSX" _MUST_  be the same text as the corresponding <file type>  entry that you have in FILETYPE.PM

     My MIME-MAP.PM file contains these entries:

    Text/HTML = HTML-text
    application/pdf = PDF-document
    application/vnd.openxmlformats-officedocument.wordprocessingml.document = MS-DOCX
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet = MS-XLSX
    application/ics = iCalendar-Event-File
    application/vcs = vCalendar-Event-File
    application/dwg = AutoCAD

    My FILETYPE.PM file contains these entries:

    MS-Word,1,S,0,\219\165\045
    PCEXE,1,X,0,.EXE,S,0,MZ
    PCEXE,1,X,0,.DLL,S,0,MZ
    MS-XLSX,0,X,0,.XLSX
    MS-DOCX,0,X,0,.DOCX
    ZIP-archive,0,X,0,.ZIP,S,0,PK\003
    MS-Richtext,0,X,0,.RTF,S,0,{\092rtf
    Program-source,0,X,0,.C,X,0,.H,X,0,.PAS,X,0,.RC,X,0,.CPP,X,0,.BAS,X,0,.ASM
    GIF-image,0,X,0,.GIF,S,0,GIF
    JPEG-image,0,X,0,.JPG,S,6,JFIF
    BMP-image,0,X,0,.BMP,X,0,.DIB,S,0,BM
    WAV-sound-file,1,S,0,RIFF,S,8,WAVE
    WAV-sound-file,0,X,0,.WAV
    WordPerfect,0,S,1,WPC
    Excel-sheet,0,X,0,.XLS
    Excel-chart,0,X,0,.XLC
    MS-Access,0,X,0,.MDB
    AVI-Movie,1,S,0,RIFF,S,8,AVI
    AVI-Movie,0,X,0,.AVI
    Windows-help,1,X,0,.HLP,S,0,?_\003
    HTML-text,0,X,0,.HTM
    HTML-text,1,S,0,<HTML>
    PGP-Public-Key,0,R,0,BEGIN PGP PUBLIC
    PGP-encrypted,0,X,0,.PGP
    Text,0,X,0,.TXT
    ; Items below were added by BF
    AutoCAD,0,X,0,.DWG
    PDF-document,0,X,0,.PDF,S,0,%PDF-
    iCalendar-Event-File,0,X,0,.ics
    vCalendar-Event-File,0,X,0,.vcs

  •  01-18-2019, 23:29

    • Eshtaol is not online. Last active: 06-28-2019, 23:00 Eshtaol
    • Top 50 Contributor
    • Joined on 10-22-2007
    • Participant
    • Points 2,830

    Re: Attachment downloads

    Appreciate your time and effort from your notes but with all do respect this old guy is somewhat lost.

    As mentioned the downloaded information (attachments) do identify the attachment as a docx and/or a pdf but unable to download

    either and I've never had this happen to me before in all the years I've used Pegasus

    I used a something called PC mover to move all my files from the old (XP) to the new computer with Window 7 and I just don't know what happened

    I guess what I was looking for  was possibly a fix...via office or maybe reload Pegasus or basically find out what I currently have and maybe correct.

    Thanks for bearing with me

  •  01-18-2019, 23:39

    • Eshtaol is not online. Last active: 06-28-2019, 23:00 Eshtaol
    • Top 50 Contributor
    • Joined on 10-22-2007
    • Participant
    • Points 2,830

    Re: Attachment downloads

    I forgot to mention I checked under incoming mail and content viewer but not sure if I was supposed to add something

    and if so, it is asking me question and I didn't want to mess with anything

  •  01-19-2019, 17:21

    • idw is online. Last active: Wed, Oct 23 2019, 17:57 idw
    • Top 10 Contributor
    • Joined on 03-25-2007
    • Germany
    • SuperStar
    • Points 47,415
    • BetaTeam

    Re: Attachment downloads

    Eshtaol:
    As mentioned the downloaded information (attachments) do identify the attachment as a docx and/or a pdf

    OK, the first question would be whether you installed the applications to open these file types on your system (and I mean literally install, not copy) and set them as default appplications for opening PDFs or DOCs in Windows?

    Eshtaol:
    I used a something called PC mover to move all my files from the old (XP) to the new computer with Window 7 and I just don't know what happened

    Assuming you did this with all the files you think to be part of the Pegasus Mail setup it's pretty likely they have been copied to an invalid path especially since XP allowed paths to be used without issues that are not supposed to be used by applications like Pegasus Mail anymore because of security considerations. IOW: My first suggestion would be to do a fresh install to a new path without touching the existing one as offered by Pegasus Mail's installer. The only thing you must not do is selecting a new install path below any kind of ...\program files\... directory. If this works properly you could download some emails with the attachments in questions and try to open them there. If this works you will need to copy over your existing folders and adresses etc. to your new setup which might become a little time consuming I'm afraid - but it's definitely possible!

     


    Michael

    --
    PGP Key ID (RSA 2048): 0xC45D831B
    PGP Plugin for Pegasus Mail: <http://www.pmpgp.de/pmpgp/>
    S/MIME Certificate Fingerprint: 94 c6 b4 71 0c 62 30 88 a5 b2 77 01 74 2b 86 66 3b 7e 65 7c
  •  01-22-2019, 3:03

    • Brian Fluet is not online. Last active: 10-20-2019, 3:30 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 26,555

    Re: Attachment downloads

    This discussion is flagged as answered but a PM received from Eshtaol indicates that is isn't so here goes...

    In the original post the question was asked:

    Eshtaol:
    When I receive the information from people, and hit attachment to go to download it...it keeps showing type unknown re ere any special settings to cofrrect this problem?

    I provided information about mime-map.pm and filetype.pm which control the file types of incoming and outgoing attachments.  I was assuming that the question was about how to fix the problem of attachments being listed in the attachment tab with a file type as "type unknown".  I'm now wondering if the problem is that the attachments won't open on double click or when hitting the "Open" button.

    If this is the case try these troubleshooting suggestions/solutions:

    • Attachment preview can cause a double click not to work.  Try turning off attachment preview.  You must get out of and then return to the attachment pane for the new setting to take effect.
    • If the attached file appears to try to open, save the file to your hard drive and then navigate to it with a file explorer and double click it. 
      • If it doesn't open, the app it needs either isn't installed, isn't installed correctly, or isn't set as the system default app for that file type.  If you can open this file with an application but not by double clicking from a file explorer, go back to Pegasus Mail and add that app as a Helper Application in Tools > Options > Incoming mail > Content
        viewers.  Enable the "file extension" option and the "Run this program" option, browsing to select the executable file of the appropriate application.
      • If it opens, then go back to Pegasus Mail and try adding that app as a Helper Application in Tools > Options > Incoming mail > Content
        viewers.  Enable the "file extension" option and the "Let windows choose and run an appropriate application" option.  This SHOULD work if that application is the system default application for that extension but in some cases it doesn't.  In that case, try the "Run this program" option as mentioned above.

  •  07-08-2019, 15:41

    • rocket is not online. Last active: 13/09/2019, 3:33 rocket
    • Top 50 Contributor
    • Joined on 09-08-2009
    • Mickleham, Victoria, Australia
    • Participant
    • Points 2,140

    Re: Attachment downloads

    I have been having a problem lately of some recipients not being able to open PDF's that I have been emailing to them.

    I then noticed that Pegasus came up with Filetype unknown and Encoding mailer decides when right clicking on a PDF and "sending" it to Pegasus.

    I then started attaching PDF's to emails by adding the attachment within the email, forcing Pegasus to load it as an Acrobat file and no encoding. My recipients are then able to open the PDF. 

    I have added the 4 lines that Brian has added to his filetype.pm and to the mime-map.pm hope this will fix the identification problem and allow all of my recipients to be able to open the PDFs that I am sending to them.

     

  •  07-08-2019, 17:37

    Re: Attachment downloads

    rocket:

    I have been having a problem lately of some recipients not being able to open PDF's that I have been emailing to them.

    I then noticed that Pegasus came up with Filetype unknown and Encoding mailer decides when right clicking on a PDF and "sending" it to Pegasus.

    My filetype.pm control file has two PDF related entries in the following order:

    Adobe-PDF,0,X,0,.PDF
    Adobe-PDF,S,0,\037PDF\045
     

    It seems to me it uses preferentially the "Attachment type" rather than extension to choose which application to call.

    rocket:

    I then started attaching PDF's to emails by adding the attachment within the email, forcing Pegasus to load it as an Acrobat file and no encoding. My recipients are then able to open the PDF. 

    I have added the 4 lines that Brian has added to his filetype.pm and to the mime-map.pm hope this will fix the identification problem and allow all of my recipients to be able to open the PDFs that I am sending to them.


    Strangely, my mime-map.pm file has only a single line "Text/HTML = HTML-text" (no quotes). I'm assuming it has little or no-effect on how Pmail handles attachments. BTW, this is the same file I have under my \Programs\RESOURCE directory.

    Anyway, I remember of recipients complaining about attachments sent by me were found corrupt after being processed by Pmail. This happened a long time ago and I don't remember which measures taken corrected the problem. My guess is that telling Pmail to behave by the "Attachment type" instead of file extension is a good guess. As an example, I remember plain-text attachments being added to the message body instead of attached as a file. I used a trick (can't remember who whispered it to me) to make Pmail treat plain-text as binary by adding the line below to filetype.pm:

    ;Text,0,X,0,.TXT
    binary,0,R,0,\032,R,0,\013\010,R,0,e,R,0,E,R,0,t,R,0,T,R,0,n,R,0,N,R,0,r,R,0,R,R,0,i,R,0,I,R,0,o,R,0,O,R,0,a,R,0,A,R,0,s,R,0,S,R,0,d,R,0,D,R,0,h,R,0,H,R,0,l,R,0,L,R,0,c,R,0,C,R,0,f,R,0,F,R,0,p,R,0,P,R,0,u,R,0,U,R,0,m,R,0,M

    Notice that the original "Text" is commented.

    Lastly, anyone can get a copy of my current filtype.pm control file HERE for the next 7 days. I'm not saying it is perfect, but it plays well here without hiccups AFAIK.


    Best,
    Euler

    euler f german
    sete lagoas, mg, brazil
    Pegasus Mail 4.73.639 - Windows 7 Ultimate
    BearHTML 4.9.9.6 IERenderer 2.6.2.12
    Operating mode: Standalone
    WINPMAIL.EXE directory: c:\pmail\programs
    Home mailbox location: c:\pmail\mail\german
  •  07-10-2019, 14:30

    • rocket is not online. Last active: 13/09/2019, 3:33 rocket
    • Top 50 Contributor
    • Joined on 09-08-2009
    • Mickleham, Victoria, Australia
    • Participant
    • Points 2,140

    Re: Attachment downloads

    Euler GERMAN:

    My filetype.pm control file has two PDF related entries in the following order:

    Adobe-PDF,0,X,0,.PDF
    Adobe-PDF,S,0,\037PDF\045
     

    It seems to me it uses preferentially the "Attachment type" rather than extension to choose which application to call.

    Thank you. I've added these two to my filetype.pm 

    Euler GERMAN:

    Strangely, my mime-map.pm file has only a single line "Text/HTML = HTML-text" (no quotes). I'm assuming it has little or no-effect on how Pmail handles attachments. BTW, this is the same file I have under my \Programs\RESOURCE directory.

    Anyway, I remember of recipients complaining about attachments sent by me were found corrupt after being processed by Pmail. This happened a long time ago and I don't remember which measures taken corrected the problem. My guess is that telling Pmail to behave by the "Attachment type" instead of file extension is a good guess. As an example, I remember plain-text attachments being added to the message body instead of attached as a file. I used a trick (can't remember who whispered it to me) to make Pmail treat plain-text as binary by adding the line below to filetype.pm:

    ;Text,0,X,0,.TXT
    binary,0,R,0,\032,R,0,\013\010,R,0,e,R,0,E,R,0,t,R,0,T,R,0,n,R,0,N,R,0,r,R,0,R,R,0,i,R,0,I,R,0,o,R,0,O,R,0,a,R,0,A,R,0,s,R,0,S,R,0,d,R,0,D,R,0,h,R,0,H,R,0,l,R,0,L,R,0,c,R,0,C,R,0,f,R,0,F,R,0,p,R,0,P,R,0,u,R,0,U,R,0,m,R,0,M

    Notice that the original "Text" is commented.

    Lastly, anyone can get a copy of my current filtype.pm control file HERE for the next 7 days. I'm not saying it is perfect, but it plays well here without hiccups AFAIK.

    I've added this too.

    I'll start sending PDFs again by right clicking the file to send to Pegasus and see if I get any more complaints of not being able to read PDF attachments.

    So far it looks good. Pegasus is now saying that my attachment is a PDF, unlike before. However it still wants to use encoding. I'll let Pegasus do that for now.

View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page