all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uday Reddy <usr.vm.rocks@gmail.com>
To: Hofert Jan Marius <marius.hofert@math.ethz.ch>
Cc: Emacs help <help-gnu-emacs@gnu.org>
Subject: Re: Gnus: How to simplify file attachments?
Date: Mon, 16 Jan 2012 19:02:26 +0000	[thread overview]
Message-ID: <4F147442.2030409@gmail.com> (raw)
In-Reply-To: <mailman.1630.1326275422.15002.help-gnu-emacs@gnu.org>

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




       reply	other threads:[~2012-01-16 19:02 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1630.1326275422.15002.help-gnu-emacs@gnu.org>
2012-01-16 19:02 ` Uday Reddy [this message]
2012-01-17 11:21   ` Gnus: How to simplify file attachments? Marius Hofert
2012-01-11  9:50 Hofert  Jan Marius
     [not found] <mailman.203.1323806580.15002.help-gnu-emacs@gnu.org>
2012-01-04 19:52 ` Lars Magne Ingebrigtsen
2012-01-04 21:29   ` Marius Hofert
2012-01-05  5:24     ` Lars Magne Ingebrigtsen
     [not found]       ` <m2pqeyy5a2.fsf@80-218-246-165.dclient.hispeed.ch>
2012-01-06 22:07         ` Lars Magne Ingebrigtsen
2012-01-07  3:42           ` Leo
2012-01-07  7:10             ` Thierry Volpiatto
2012-01-07 15:45             ` Marius Hofert
2012-01-07 18:23               ` Thierry Volpiatto
2012-01-08 12:19               ` Leo
2012-01-08 14:04                 ` Sivaram Neelakantan
2012-01-08 15:46                 ` Marius Hofert
2012-01-08 16:19                   ` Thierry Volpiatto
2012-01-09  8:09                 ` Marius Hofert
  -- strict thread matches above, loose matches on Subject: below --
2011-12-13 20:02 Marius Hofert
2011-12-15 15:13 ` Martyn Jago
2011-12-17 17:34   ` Uday S Reddy

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=4F147442.2030409@gmail.com \
    --to=usr.vm.rocks@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=marius.hofert@math.ethz.ch \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.