all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: Marius Hofert <marius.hofert@math.ethz.ch>
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>, help-gnu-emacs@gnu.org
Subject: Re: Gnus: How to simplify file attachments?
Date: Sun, 08 Jan 2012 20:19:26 +0800	[thread overview]
Message-ID: <m1ipkmv12p.fsf@gmail.com> (raw)
In-Reply-To: <4C9CC024-8FB9-4DAD-A795-9CACEE9CCE66@math.ethz.ch> (Marius Hofert's message of "Sat, 7 Jan 2012 16:45:19 +0100")

On 2012-01-07 23:45 +0800, Marius Hofert wrote:
> Can you explain how, please?
> If I DnD a .pdf to a new message buffer (Gnus v5.13, Emacs 24, Mac OS
> X 10.7.2), the *code* of the .pdf file is inserted, not a link to the
> .pdf file as attachment. To be more precise, a huge amount of code is
> inserted starting with "%PDF-1.5..." (as if you look at the .pdf file
> as .txt).
> Furthermore, DnD of an attachment out of a received email also did not work under my setup above. I just can't "grab" the .pdf. 
>
> Cheers,
>
> Marius

I just used the mouse to drop a file on to this buffer. Worked
perfectly. I am using emacs-23(Macport) + gnus(from emacs-24).

,----[ leading # removed ]
| <part filename="/Users/leo/Downloads/paper.pdf" disposition=attachment>
| </part>
`----

Check dnd-protocol-alist, see if you have mml-dnd-attach-file in it.

,----[ C-h v dnd-protocol-alist RET ]
[snipped 18 lines]
| This variable was introduced, or its default value was changed, in
| version 22.1 of Emacs.
| 
| Value: (("^file:///" . mml-dnd-attach-file)
|  ("^file://" . dnd-open-file)
|  ("^file:" . mml-dnd-attach-file)
|  ("^file:///" . dnd-open-local-file)
|  ("^file://" . dnd-open-file)
|  ("^file:" . dnd-open-local-file)
|  ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . dnd-open-file))
| 
| Original value was 
| (("^file:///" . dnd-open-local-file)
|  ("^file://" . dnd-open-file)
|  ("^file:" . dnd-open-local-file)
|  ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . dnd-open-file))
| 
| Local in buffer *unsent wide reply to Marius Hofert*; global value is 
| (("^file:///" . dnd-open-local-file)
|  ("^file://" . dnd-open-file)
|  ("^file:" . dnd-open-local-file)
|  ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . dnd-open-file))
`----



  parent reply	other threads:[~2012-01-08 12:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.203.1323806580.15002.help-gnu-emacs@gnu.org>
2012-01-04 19:52 ` Gnus: How to simplify file attachments? 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 [this message]
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
     [not found] <mailman.1630.1326275422.15002.help-gnu-emacs@gnu.org>
2012-01-16 19:02 ` Uday Reddy
2012-01-17 11:21   ` Marius Hofert
2012-01-11  9:50 Hofert  Jan Marius
  -- 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=m1ipkmv12p.fsf@gmail.com \
    --to=sdl.web@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=larsi@gnus.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.