Re: [imp] msg bigger than limit_inline_size, download without file extension name
Quoting Nethub Online nethubonl...@gmail.com: Michael M Slusarz slusarz at horde.org writes: Quoting Nethub Online nethubonline at gmail.com: I guess IMP recognize it as text because no Content-Description, is it a bug or need to use other way to recognize the file type? No. Content-Description is not machine parseable. It is recognized as a text file since that is the primary portion of the MIME type (which DOES have a defined syntax). michael ___ Michael Slusarz [slusarz at horde.org] Thanks Michael, so, is it able to give it a extension name (e.g. .txt , .html) for user to download? Because many users use MS Windows and will only say they cannot open it (just like this screenshot: http://eligrey.com/blog/wp-content/uploads/no_file_extension_open.png) No. Again, extensions are IRRELEVANT. They have nothing to do with how the browser/OS displays content. michael ___ Michael Slusarz [slus...@horde.org] -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] msg bigger than limit_inline_size, download without file extension name
Quoting Nethub Online nethubonl...@gmail.com: Sample A (sending via old version of Horde (Horde Groupware Webmail Edition 1.2.9) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary==_4odon3t0zmn Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.9) This message is in MIME format. --=_4odon3t0zmn Content-Type: text/plain; charset=UTF-8 Content-Description: Plaintext Version of Message Content-Disposition: inline Content-Transfer-Encoding: 7bit --=_4odon3t0zmn Content-Type: text/html; charset=UTF-8 Content-Description: HTML Version of Message Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Result: The file name of download is HTML_Version_of_Message which I believe about Content-Description, however is it able to add extension name for the file download? (e.g. HTML_Version_of_Message.html) No extension should be added unless that is how it is sent. Extension information is pretty much useless these days - even Windows doesn't use it anymore. What is more important is the *MIME type* we send when creating the download link. Any halfway recent OS will save that MIME part information in the file's metadata when saving. Sample B (sending from Gmail) MIME-Version: 1.0 X-Received: by 10.58.211.227 with SMTP id nf3mr17997592vec.20.1373601670297; Thu, 11 Jul 2013 21:01:10 -0700 (PDT) Received: by 10.220.15.5 with HTTP; Thu, 11 Jul 2013 21:01:09 -0700 (PDT) Date: Fri, 12 Jul 2013 12:01:09 +0800 Message-ID: cajshyw8ecn6y_pb7ata867n3xgf_fyvnead7q8tzccajy3r...@mail.gmail.com Content-Type: multipart/alternative; boundary=047d7bd6b65a9f048b04e1488f90 --047d7bd6b65a9f048b04e1488f90 Content-Type: text/plain; charset=ISO-8859-1 test --047d7bd6b65a9f048b04e1488f90 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable div dir=3Dltrtestimg src=3Ddata:image/jpeg;base64,/9j/4RdzRXhpZgAASUk= qAAgRAAABAwABAA8AAAEBAwABYAkAAAIBAwAD2gMBAwABBQ= YBAwABAg4BAgAW4A8BAgAG9gAAABABAgAN/BIBAwABA= Result: The file name of download is Text, I believe because of no Content-Description, it is no file extension too. Correct. I guess IMP recognize it as text because no Content-Description, is it a bug or need to use other way to recognize the file type? No. Content-Description is not machine parseable. It is recognized as a text file since that is the primary portion of the MIME type (which DOES have a defined syntax). michael ___ Michael Slusarz [slus...@horde.org] -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] msg bigger than limit_inline_size, download without file extension name
Zitat von Nethub Online nethubonl...@gmail.com: Hi all, In imp/config/mime_drivers.php, there is a limit_inline_size for both 'plain' and 'html', according to its description above this limit, the user will only be able to download the part., it generate a link to let user download the part, however the file doesn't contains extension name (e.g. .html / .txt), for 'plain', the file name is Text (without extension name), for 'html', the file name is HTML_ (without extension name) Is it able to be with file extension name? Because normal end-users do not know how to open it (I believe). Horde Version 5.1.1 Horde Applications Agora [Forums]: unknown Ansel [Photos]: unknown Chora [Version Control]: unknown Content: 2.0.2 Gollem [File Manager]: H5 (3.0.1) (run tests) Hermes [Time Tracking]: unknown Imp [Mail]: H5 (6.1.2) (run tests) Ingo [Filters]: H5 (3.1.1) (run tests) Jonah [News]: unknown Klutz [Comics]: unknown Kolab [Kolab]: unknown Kronolith [Calendar]: H5 (4.1.1) (run tests) Luxor [X-Ref]: unknown Mnemo [Notes]: H5 (4.1.0) Nag [Tasks]: H5 (4.1.0) Passwd [Password]: H5 (5.0.0) (run tests) Sam [Spam]: unknown Sesha [Inventory]: unknown Timeobjects: 2.0.4 Trean [Bookmarks]: H5 (1.0.2) Turba [Address Book]: H5 (4.1.0) (run tests) Ulaform [Forms]: unknown Vilma [Mail Admin]: unknown Whups [Tickets]: unknown Wicked [Wiki]: unknown Nethub Online Limited http://www.nethub.com.hk I think it uses the file name provide by the message part headers. -- Jan Schneider The Horde Project http://www.horde.org/ -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] msg bigger than limit_inline_size, download without file extension name
Quoting Jan Schneider j...@horde.org: Zitat von Nethub Online nethubonl...@gmail.com: Hi all, In imp/config/mime_drivers.php, there is a limit_inline_size for both 'plain' and 'html', according to its description above this limit, the user will only be able to download the part., it generate a link to let user download the part, however the file doesn't contains extension name (e.g. .html / .txt), for 'plain', the file name is Text (without extension name), for 'html', the file name is HTML_ (without extension name) Is it able to be with file extension name? Because normal end-users do not know how to open it (I believe). Horde Version 5.1.1 Horde Applications Agora [Forums]: unknown Ansel [Photos]: unknown Chora [Version Control]: unknown Content: 2.0.2 Gollem [File Manager]: H5 (3.0.1) (run tests) Hermes [Time Tracking]: unknown Imp [Mail]: H5 (6.1.2) (run tests) Ingo [Filters]: H5 (3.1.1) (run tests) Jonah [News]: unknown Klutz [Comics]: unknown Kolab [Kolab]: unknown Kronolith [Calendar]: H5 (4.1.1) (run tests) Luxor [X-Ref]: unknown Mnemo [Notes]: H5 (4.1.0) Nag [Tasks]: H5 (4.1.0) Passwd [Password]: H5 (5.0.0) (run tests) Sam [Spam]: unknown Sesha [Inventory]: unknown Timeobjects: 2.0.4 Trean [Bookmarks]: H5 (1.0.2) Turba [Address Book]: H5 (4.1.0) (run tests) Ulaform [Forms]: unknown Vilma [Mail Admin]: unknown Whups [Tickets]: unknown Wicked [Wiki]: unknown Nethub Online Limited http://www.nethub.com.hk I think it uses the file name provide by the message part headers. More specifically, it uses the file name provided by first the 'filename' parameter of Content-Disposition, then the 'name' parameter of Content-Type, then the Content-Description header, and finally the MIME subtype. michael ___ Michael Slusarz [slus...@horde.org] -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] msg bigger than limit_inline_size, download without file extension name
Michael M Slusarz slusarz at horde.org writes: Quoting Jan Schneider jan at horde.org: I think it uses the file name provide by the message part headers. More specifically, it uses the file name provided by first the 'filename' parameter of Content-Disposition, then the 'name' parameter of Content-Type, then the Content-Description header, and finally the MIME subtype. michael ___ Michael Slusarz [slusarz at horde.org] Thanks Michael and Jan. Yes, Below are the headers of samples: == Sample A (sending via old version of Horde (Horde Groupware Webmail Edition 1.2.9) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary==_4odon3t0zmn Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.9) This message is in MIME format. --=_4odon3t0zmn Content-Type: text/plain; charset=UTF-8 Content-Description: Plaintext Version of Message Content-Disposition: inline Content-Transfer-Encoding: 7bit --=_4odon3t0zmn Content-Type: text/html; charset=UTF-8 Content-Description: HTML Version of Message Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Result: The file name of download is HTML_Version_of_Message which I believe about Content-Description, however is it able to add extension name for the file download? (e.g. HTML_Version_of_Message.html) == Sample B (sending from Gmail) MIME-Version: 1.0 X-Received: by 10.58.211.227 with SMTP id nf3mr17997592vec.20.1373601670297; Thu, 11 Jul 2013 21:01:10 -0700 (PDT) Received: by 10.220.15.5 with HTTP; Thu, 11 Jul 2013 21:01:09 -0700 (PDT) Date: Fri, 12 Jul 2013 12:01:09 +0800 Message-ID: cajshyw8ecn6y_pb7ata867n3xgf_fyvnead7q8tzccajy3r...@mail.gmail.com Content-Type: multipart/alternative; boundary=047d7bd6b65a9f048b04e1488f90 --047d7bd6b65a9f048b04e1488f90 Content-Type: text/plain; charset=ISO-8859-1 test --047d7bd6b65a9f048b04e1488f90 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable div dir=3Dltrtestimg src=3Ddata:image/jpeg;base64,/9j/4RdzRXhpZgAASUk= qAAgRAAABAwABAA8AAAEBAwABYAkAAAIBAwAD2gMBAwABBQ= YBAwABAg4BAgAW4A8BAgAG9gAAABABAgAN/BIBAwABA= Result: The file name of download is Text, I believe because of no Content-Description, it is no file extension too. I guess IMP recognize it as text because no Content-Description, is it a bug or need to use other way to recognize the file type? -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org