From: Lars Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: gnus-dired-attach: default mime-type application/octet-stream, why
Date: Wed, 28 Jan 2015 15:11:41 +1100 [thread overview]
Message-ID: <87386vzgqq.fsf@building.gnus.org> (raw)
In-Reply-To: <87mwc37mh7.fsf@mat.ucm.es> (Uwe Brauer's message of "Sun, 20 Jul 2014 23:24:04 +0200")
Uwe Brauer <oub@mat.ucm.es> writes:
> Why is the mime-type for gnus-dired-attach set for all attachments to
> application/octet-stream?
>
> The relevant code is this
> (while files-to-attach
> (mml-attach-file (car files-to-attach)
> (or (mm-default-file-encoding (car files-to-attach))
> "application/octet-stream") nil)
> (setq files-to-attach (cdr files-to-attach)))
It's only set to application/octet-stream if `mm-default-file-encoding'
isn't able to figure out what the type is.
> Which could be changed to
> (while files-to-attach
> (mml-attach-file (car files-to-attach)
> (or (mm-default-file-encoding (car files-to-attach))
> type) nil)
Where does that `type' variable come from?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
prev parent reply other threads:[~2015-01-28 4:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-20 21:24 Uwe Brauer
2015-01-28 4:11 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87386vzgqq.fsf@building.gnus.org \
--to=larsi@gnus.org \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).