GNU bug report logs - #11212
24.0.95; mailcap-mime-extensions: Add opendocument formats

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Tue, 10 Apr 2012 17:34:01 UTC

Severity: wishlist

Found in version 24.0.95

Done: Jambunathan K <kjambunathan <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11212 in the body.
You can then email your comments to 11212 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11212; Package emacs. (Tue, 10 Apr 2012 17:34:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jambunathan K <kjambunathan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 10 Apr 2012 17:34:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.95; mailcap-mime-extensions: Add opendocument formats
Date: Tue, 10 Apr 2012 23:02:04 +0530
Please include OpenDocument extensions to `mailcap-mime-extensions'.

mimetypes of interest:

,---- (http://www.iana.org/assignments/media-types/application/index.html)
| vnd.oasis.opendocument.chart 
| vnd.oasis.opendocument.chart-template
| vnd.oasis.opendocument.database
| vnd.oasis.opendocument.formula
| vnd.oasis.opendocument.formula-template
| vnd.oasis.opendocument.graphics
| vnd.oasis.opendocument.graphics-template
| vnd.oasis.opendocument.image
| vnd.oasis.opendocument.image-template
| vnd.oasis.opendocument.presentation
| vnd.oasis.opendocument.presentation-template
| vnd.oasis.opendocument.spreadsheet
| vnd.oasis.opendocument.spreadsheet-template
| vnd.oasis.opendocument.text
| vnd.oasis.opendocument.text-master
| vnd.oasis.opendocument.text-template
| vnd.oasis.opendocument.text-web
`----

File extensions of interest:

,---- From LibreOffice Help (F1) - Node name: XML File Formats 
| 
| By default, LibreOffice loads and saves files in the OpenDocument file format.
| 
| The OpenDocument file format (ODF) is a standardized file format used
| by many software applications. You can find more information at the
| Wikipedia site: wikipedia.org/wiki/OpenDocument.
| 
| OpenDocument file format names
| LibreOffice 3.4 uses the following file formats:
| 
| | Document format           | File extension |
| |---------------------------+----------------|
| | ODF Text                  | *.odt          |
| | ODF Text Template         | *.ott          |
| | ODF Master Document       | *.odm          |
| | ODF Spreadsheet           | *.ods          |
| | ODF Spreadsheet Template  | *.ots          |
| | ODF Drawing               | *.odg          |
| | ODF Drawing Template      | *.otg          |
| | ODF Presentation          | *.odp          |
| | ODF Presentation Template | *.otp          |
| | ODF Formula               | *.odf          |
| | ODF Database              | *.odb          |
| | LibreOffice Extension     | *.oxt          |
| 
| ODF Chart is the name of the file format for stand alone charts. This
| format with the extension *.odc is currently not in use.
`----

In GNU Emacs 24.0.95.1 (i386-mingw-nt5.1.2600)
 of 2012-04-03 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.6) --no-opt --enable-checking --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11212; Package emacs. (Wed, 11 Apr 2012 22:50:02 GMT) Full text and rfc822 format available.

Message #8 received at 11212 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 11212 <at> debbugs.gnu.org
Subject: Re: bug#11212: 24.0.95;
	mailcap-mime-extensions: Add opendocument formats
Date: Wed, 11 Apr 2012 18:47:59 -0400
Jambunathan K wrote:

> Please include OpenDocument extensions to `mailcap-mime-extensions'.

On non MS systems, there is no need, because there are system files
such as /etc/mime.types that contain this information, and
mailcap-parse-mimetypes combines these with mailcap-mime-extensions.

My mailcap-mime-extensions has over 1000 elements.
Compare with the 100 elements in mailcap-mime-extensions.

> In GNU Emacs 24.0.95.1 (i386-mingw-nt5.1.2600)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11212; Package emacs. (Wed, 11 Apr 2012 22:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 11212 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 11212 <at> debbugs.gnu.org
Subject: Re: bug#11212: 24.0.95;
	mailcap-mime-extensions: Add opendocument formats
Date: Wed, 11 Apr 2012 18:50:17 -0400
Glenn Morris wrote:

> My mailcap-mime-extensions has over 1000 elements.
> Compare with the 100 elements in mailcap-mime-extensions.

That was informative.
I meant, after adding in the values from /etc, there 10 times as many
entries as the minimal default value.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11212; Package emacs. (Thu, 12 Apr 2012 05:28:02 GMT) Full text and rfc822 format available.

Message #14 received at 11212 <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 11212 <at> debbugs.gnu.org
Subject: Re: bug#11212: 24.0.95;
	mailcap-mime-extensions: Add opendocument formats
Date: Thu, 12 Apr 2012 10:55:39 +0530
Glenn Morris <rgm <at> gnu.org> writes:

>> Please include OpenDocument extensions to `mailcap-mime-extensions'.
>
> On non MS systems, there is no need, because there are system files
> such as /etc/mime.types that contain this information, and
> mailcap-parse-mimetypes combines these with mailcap-mime-extensions.

My thoughts (See C-h f mailcap-parse-mimetypes)

My machine falls under `mailcap-poor-system-types'.  To use the right
mimetype for outgoing attachements, I need to do one of the following:

1. Set the environment "MIMETYPES" and point in to the mimetype file
2. Create one of the following files "~/mime.typ", "~/etc/mime.typ" 
   and start populating it. (Why do these file names have a typo?)
3. Push an entry via elisp in to `mailcap-mime-extensions'.[2]

Unfortunately info lookup throws up nothing when I search for 1, 2 or 3.

The above options are user-facing and need to be captured in the manual.
It is also desirable that one of the above entries be exposed via custom
group mailcap or mime.

ps: Emacswiki and a quick google search turns up no help around this
area.  It is unlikely that an average user would ever do a M-x
mailcap-parse-mimetypes for routine work.

Jambunathan K.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11212; Package emacs. (Thu, 12 Apr 2012 06:01:02 GMT) Full text and rfc822 format available.

Message #17 received at 11212 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 11212 <at> debbugs.gnu.org, kjambunathan <at> gmail.com
Subject: Re: bug#11212: 24.0.95;
	mailcap-mime-extensions: Add opendocument formats
Date: Thu, 12 Apr 2012 08:57:51 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Wed, 11 Apr 2012 18:47:59 -0400
> Cc: 11212 <at> debbugs.gnu.org
> 
> Jambunathan K wrote:
> 
> > Please include OpenDocument extensions to `mailcap-mime-extensions'.
> 
> On non MS systems, there is no need, because there are system files
> such as /etc/mime.types that contain this information

This file seems to come from mime-support, which is a Debian package.
Do other Posix systems, whether other GNU/Linux or Unix, also have
this file?

OTOH, if we want to rely on this file, then why do we have a non-empty
mailcap-mime-extensions at all?  And why adding a few more entries to
that list should be rejected?

In any case, one can download (what seems to be) the latest version of
the mime-support package from here:

  http://packages.debian.org/source/wheezy/mime-support

Then set the MIMETYPES environment variable to point to its absolute
file names, and then it can be used by mailcap-parse-mimetypes on any
system.  Perhaps we should recommend users to do that if their systems
don't have the file already.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11212; Package emacs. (Thu, 12 Apr 2012 06:22:01 GMT) Full text and rfc822 format available.

Message #20 received at 11212 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: rgm <at> gnu.org, 11212 <at> debbugs.gnu.org
Subject: Re: bug#11212: 24.0.95;
	mailcap-mime-extensions: Add opendocument formats
Date: Thu, 12 Apr 2012 09:19:06 +0300
> From: Jambunathan K <kjambunathan <at> gmail.com>
> Date: Thu, 12 Apr 2012 10:55:39 +0530
> Cc: 11212 <at> debbugs.gnu.org
> 
> My machine falls under `mailcap-poor-system-types'.  To use the right
> mimetype for outgoing attachements, I need to do one of the following:
> 
> 1. Set the environment "MIMETYPES" and point in to the mimetype file

I think this is the best way.

> 2. Create one of the following files "~/mime.typ", "~/etc/mime.typ" 
>    and start populating it. (Why do these file names have a typo?)

Someone was thinking about DOS 8+3 file-name restrictions, but didn't
know that specifying mime.types will work on MS-DOS as well.

> ps: Emacswiki and a quick google search turns up no help around this
> area.

I used the source, although my name isn't Luke.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11212; Package emacs. (Thu, 12 Apr 2012 06:37:02 GMT) Full text and rfc822 format available.

Message #23 received at 11212 <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rgm <at> gnu.org, 11212 <at> debbugs.gnu.org
Subject: Re: bug#11212: 24.0.95;
	mailcap-mime-extensions: Add opendocument formats
Date: Thu, 12 Apr 2012 12:04:56 +0530
Eli Zaretskii <eliz <at> gnu.org> writes:

>> ps: Emacswiki and a quick google search turns up no help around this
>> area.
>
> I used the source, although my name isn't Luke.

The `ps' was deliberate.  The intention is to lay emphasis on the need
for info documentation surrounding this area.

Jambunathan K.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11212; Package emacs. (Thu, 12 Apr 2012 16:34:01 GMT) Full text and rfc822 format available.

Message #26 received at 11212 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 11212 <at> debbugs.gnu.org, kjambunathan <at> gmail.com
Subject: Re: bug#11212: 24.0.95;
	mailcap-mime-extensions: Add opendocument formats
Date: Thu, 12 Apr 2012 12:32:19 -0400
Eli Zaretskii wrote:

> This file seems to come from mime-support, which is a Debian package.
> Do other Posix systems, whether other GNU/Linux or Unix, also have
> this file?

I'm 99% sure all halfway modern GNU/Linux systems have such files.
Eg, Red Hat based ones do. Less sure about any other Unix.
mailcap-poor-system-types suggests they do.

> OTOH, if we want to rely on this file, then why do we have a non-empty
> mailcap-mime-extensions at all?  And why adding a few more entries to
> that list should be rejected?

I'm not rejecting anything; but since this issue mainly affects MS
Windows it's not a high priority for me personally to change it.

mailcap-mime-extensions is weird (IMO), in that there is a default
(which is a defcustom) that gets modified behind the user's back. It
would be cleaner to separate it out into different variables.
An empty one for the user's customizations, one that gets the system
entries added to it, and a fallback one for systems without databases.
I think it's fine to add many more entries to the last one.
Or stick a mime-types file in the Emacs etc directory if that is easier.




Reply sent to Jambunathan K <kjambunathan <at> gmail.com>:
You have taken responsibility. (Fri, 15 Nov 2013 04:37:04 GMT) Full text and rfc822 format available.

Notification sent to Jambunathan K <kjambunathan <at> gmail.com>:
bug acknowledged by developer. (Fri, 15 Nov 2013 04:37:05 GMT) Full text and rfc822 format available.

Message #31 received at 11212-done <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: 11212-done <at> debbugs.gnu.org
Subject: Re: bug#11212: 24.0.95;
 mailcap-mime-extensions: Add opendocument formats
Date: Fri, 15 Nov 2013 10:06:25 +0530
OP here.  Closing it.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 13 Dec 2013 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 187 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.