From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday Reddy Newsgroups: gmane.emacs.help Subject: Re: Gnus: How to simplify file attachments? Date: Mon, 16 Jan 2012 19:02:26 +0000 Message-ID: <4F147442.2030409@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326740576 2470 80.91.229.12 (16 Jan 2012 19:02:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2012 19:02:56 +0000 (UTC) Cc: Emacs help To: Hofert Jan Marius Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 16 20:02:52 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RmrpU-0008Jc-4z for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jan 2012 20:02:52 +0100 Original-Received: from localhost ([::1]:48356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmrpK-0007Z0-LN for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jan 2012 14:02:42 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmrpA-0007Yf-Nv for help-gnu-emacs@gnu.org; Mon, 16 Jan 2012 14:02:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rmrp9-00023S-Mo for help-gnu-emacs@gnu.org; Mon, 16 Jan 2012 14:02:32 -0500 Original-Received: from sun61.bham.ac.uk ([147.188.128.150]:62561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rmrp9-000231-Hv for help-gnu-emacs@gnu.org; Mon, 16 Jan 2012 14:02:31 -0500 Original-Received: from [147.188.128.127] (helo=bham.ac.uk) by sun61.bham.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1Rmrp5-0005ro-N3; Mon, 16 Jan 2012 19:02:27 +0000 Original-Received: from mx1.cs.bham.ac.uk ([147.188.192.53]) by bham.ac.uk (envelope-from ) with esmtp (Exim 4.72) id 1Rmrp5-0005av-El using interface smart1.bham.ac.uk; Mon, 16 Jan 2012 19:02:27 +0000 Original-Received: from acws-0068.cs.bham.ac.uk ([147.188.194.56]) by mx1.cs.bham.ac.uk with esmtp (Exim 4.51) id 1Rmrp5-00086K-35; Mon, 16 Jan 2012 19:02:27 +0000 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 147.188.128.150 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83518 Archived-At: Hofert Jan Marius wrote: > > > So it seems to be a problem on Mac OS X. > > Any ideas? Yes, the Mac (NextStep) version of Emacs seem to use a different protocol. Here is what we do in VM: 1. In the keymap for messaging, we have (define-key map [ns-drag-file] 'vm-ns-attach-file) 2. vm-ns-attach-file is defined as: ;;;###autoload (defun vm-ns-attach-file () "Insert a drag and drop file as a MIME attachment in a VM composition buffer. This is a version of `vm-dnd-attach-file' that is needed for Mac and NextStep." (interactive) (let ((file (car ns-input-file)) type) (unless vm-send-using-mime (error (concat "MIME attachments disabled, " "set vm-send-using-mime non-nil to enable."))) (when (and file (file-regular-p file)) (setq ns-input-file (cdr ns-input-file)) (setq type (or (vm-mime-default-type-from-filename file) "application/octet-stream")) (vm-attach-file file type)))) This doesn't solve the problem for you in Gnus. But, something similar would be needed. Cheers, Uday