From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85605 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-dired-attach: default mime-type application/octet-stream, why Date: Wed, 28 Jan 2015 15:11:41 +1100 Message-ID: <87386vzgqq.fsf@building.gnus.org> References: <87mwc37mh7.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422418333 27236 80.91.229.3 (28 Jan 2015 04:12:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 04:12:13 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33846=ding+2Daccount=gmane.org@lists.math.uh.edu Wed Jan 28 05:12:09 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGJz5-0000Ry-DE for ding-account@gmane.org; Wed, 28 Jan 2015 05:12:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1YGJz4-0007zj-NH for ding-account@gmane.org; Tue, 27 Jan 2015 22:12:06 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YGJz3-0007ze-PM for ding@lists.math.uh.edu; Tue, 27 Jan 2015 22:12:05 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YGJz2-0004db-Mc for ding@lists.math.uh.edu; Tue, 27 Jan 2015 22:12:05 -0600 Original-Received: from smtp.syd.comcen.com.au ([203.23.236.77]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1YGJz0-0001cA-J0 for ding@gnus.org; Wed, 28 Jan 2015 05:12:03 +0100 Original-Received: from building.gnus.org ([27.96.197.126]) by smtp.syd.comcen.com.au (8.13.4/8.12.9) with ESMTP id t0S4BkBH011407 for ; Wed, 28 Jan 2015 15:11:46 +1100 (EST) In-Reply-To: <87mwc37mh7.fsf@mat.ucm.es> (Uwe Brauer's message of "Sun, 20 Jul 2014 23:24:04 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-comcen-MailScanner-Information: Please contact the ISP for more information X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.102, required 4, AWL 0.00, BAYES_50 0.00, RDNS_NONE 0.10) X-comcen-MailScanner-From: larsi@gnus.org X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85605 Archived-At: Uwe Brauer 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/