From: Marius Hofert <marius.hofert@math.ethz.ch>
To: Uday Reddy <usr.vm.rocks@gmail.com>
Cc: Emacs help <help-gnu-emacs@gnu.org>
Subject: Re: Gnus: How to simplify file attachments?
Date: Tue, 17 Jan 2012 12:21:11 +0100 [thread overview]
Message-ID: <0DF96C4D-E8FE-49E4-A0D3-EE174AC4851E@math.ethz.ch> (raw)
In-Reply-To: <4F147442.2030409@gmail.com>
Dear Uday,
thanks for reporting this.
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.
I'll report news if there are any.
Cheers,
Marius
On 2012-01-16, at 20:02 , Uday Reddy wrote:
> 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
>
next prev parent reply other threads:[~2012-01-17 11:21 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 ` Gnus: How to simplify file attachments? Uday Reddy
2012-01-17 11:21 ` Marius Hofert [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0DF96C4D-E8FE-49E4-A0D3-EE174AC4851E@math.ethz.ch \
--to=marius.hofert@math.ethz.ch \
--cc=help-gnu-emacs@gnu.org \
--cc=usr.vm.rocks@gmail.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).