From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Re: Gnus: How to simplify file attachments? Date: Tue, 17 Jan 2012 12:21:11 +0100 Message-ID: <0DF96C4D-E8FE-49E4-A0D3-EE174AC4851E@math.ethz.ch> References: <4F147442.2030409@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326799293 12394 80.91.229.12 (17 Jan 2012 11:21:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2012 11:21:33 +0000 (UTC) Cc: Emacs help To: Uday Reddy Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 17 12:21:29 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 1Rn76W-0003Iy-Tz for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Jan 2012 12:21:29 +0100 Original-Received: from localhost ([::1]:40989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn76U-0003nO-2o for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Jan 2012 06:21:26 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn76K-0003ms-Jj for help-gnu-emacs@gnu.org; Tue, 17 Jan 2012 06:21:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rn76J-0003Iw-IF for help-gnu-emacs@gnu.org; Tue, 17 Jan 2012 06:21:16 -0500 Original-Received: from edge10.ethz.ch ([82.130.75.186]:14133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn76J-0003Ia-DP for help-gnu-emacs@gnu.org; Tue, 17 Jan 2012 06:21:15 -0500 Original-Received: from CAS21.d.ethz.ch (172.31.51.111) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.1.355.2; Tue, 17 Jan 2012 12:21:10 +0100 Original-Received: from [192.168.1.221] (129.132.146.66) by CAS21.d.ethz.ch (172.31.51.111) with Microsoft SMTP Server (TLS) id 14.1.355.2; Tue, 17 Jan 2012 12:21:11 +0100 In-Reply-To: <4F147442.2030409@gmail.com> X-Mailer: Apple Mail (2.1251.1) X-Originating-IP: [129.132.146.66] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.130.75.186 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:83519 Archived-At: Dear Uday, thanks for reporting this.=20 I'm not an elisp programmer, but it's good to know that it's not a local = issue but rather a Mac-related problem in general.=20 I'll report news if there are any. Cheers, Marius On 2012-01-16, at 20:02 , Uday Reddy wrote: > Hofert Jan Marius wrote: >>=20 >>=20 >> So it seems to be a problem on Mac OS X.=20 >>=20 >> Any ideas?=20 >=20 > Yes, the Mac (NextStep) version of Emacs seem to use a different > protocol. Here is what we do in VM: >=20 > 1. In the keymap for messaging, we have >=20 > (define-key map [ns-drag-file] 'vm-ns-attach-file) >=20 > 2. vm-ns-attach-file is defined as: >=20 > ;;;###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)))) >=20 > This doesn't solve the problem for you in Gnus. But, something = similar > would be needed. >=20 > Cheers, > Uday >=20