[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnus: How to simplify file attachments?
From: |
Uday Reddy |
Subject: |
Re: Gnus: How to simplify file attachments? |
Date: |
Mon, 16 Jan 2012 19:02:26 +0000 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
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
- Re: Gnus: How to simplify file attachments?, (continued)
- Re: Gnus: How to simplify file attachments?, Leo, 2012/01/06
- Re: Gnus: How to simplify file attachments?, Thierry Volpiatto, 2012/01/07
- Re: Gnus: How to simplify file attachments?, Marius Hofert, 2012/01/07
- Re: Gnus: How to simplify file attachments?, Thierry Volpiatto, 2012/01/07
- Re: Gnus: How to simplify file attachments?, Leo, 2012/01/08
- Re: Gnus: How to simplify file attachments?, Sivaram Neelakantan, 2012/01/08
- Re: Gnus: How to simplify file attachments?, Marius Hofert, 2012/01/08
- Re: Gnus: How to simplify file attachments?, Thierry Volpiatto, 2012/01/08
- Re: Gnus: How to simplify file attachments?, Marius Hofert, 2012/01/09
Re: Gnus: How to simplify file attachments?, Hofert Jan Marius, 2012/01/11
Re: Gnus: How to simplify file attachments?,
Uday Reddy <=