[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus: How to simplify file attachments?

From: Marius Hofert
Subject: Re: Gnus: How to simplify file attachments?
Date: Tue, 17 Jan 2012 12:21:11 +0100

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.



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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]