all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* save gnus articles with links
@ 2015-02-07 18:49 Rasmus
  0 siblings, 0 replies; 5+ messages in thread
From: Rasmus @ 2015-02-07 18:49 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

[I sent this email to the gnus ML first, but for some reasons it couldn't
 be delivered.]

I need to save and publish some 100 emails.  My idea was to transform them
into Org and export to get good html.  Unfortunately, some of them
contains links and images.  I would very much like to preserve the links
and images.  However, when I use gnus-summary-save-in-file the links and
images are stripped.

Is there any simple way to save an email from gnus and preserving links
and images?

Thanks,
Rasmus

-- 
Governments should be afraid of their people




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: save gnus articles with links
       [not found] <mailman.19467.1423334982.1147.help-gnu-emacs@gnu.org>
@ 2015-02-13  6:04 ` Lars Magne Ingebrigtsen
  2015-02-13 10:49   ` Rasmus
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2015-02-13  6:04 UTC (permalink / raw)
  To: Rasmus; +Cc: help-gnu-emacs

Rasmus <rasmus@gmx.us> writes:

> [I sent this email to the gnus ML first, but for some reasons it couldn't
>  be delivered.]
>
> I need to save and publish some 100 emails.  My idea was to transform them
> into Org and export to get good html.  Unfortunately, some of them
> contains links and images.  I would very much like to preserve the links
> and images.  However, when I use gnus-summary-save-in-file the links and
> images are stripped.
>
> Is there any simple way to save an email from gnus and preserving links
> and images?

If these are HTML messages, you need to save the HTML itself, not the
rendered versions of the messages.  But you're talking about Org stuff
here, so I'm not sure what you really mean...

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: save gnus articles with links
  2015-02-13  6:04 ` save gnus articles with links Lars Magne Ingebrigtsen
@ 2015-02-13 10:49   ` Rasmus
  2015-02-18  1:12     ` Lars Ingebrigtsen
  2015-04-15 15:44     ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Rasmus @ 2015-02-13 10:49 UTC (permalink / raw)
  To: lmi; +Cc: help-gnu-emacs

Lars Magne Ingebrigtsen <lmi@gnus.org> writes:

> Rasmus <rasmus@gmx.us> writes:
>
>> [I sent this email to the gnus ML first, but for some reasons it couldn't
>>  be delivered.]
>>
>> I need to save and publish some 100 emails.  My idea was to transform them
>> into Org and export to get good html.  Unfortunately, some of them
>> contains links and images.  I would very much like to preserve the links
>> and images.  However, when I use gnus-summary-save-in-file the links and
>> images are stripped.
>>
>> Is there any simple way to save an email from gnus and preserving links
>> and images?
>
> If these are HTML messages, you need to save the HTML itself, not the
> rendered versions of the messages.  But you're talking about Org stuff
> here, so I'm not sure what you really mean...

I'm republishing some messages as a website, so I don't want to wacko html
cooked up by outlook.  Thus I save Gnus text rending of the message and
then reexport to html using org (ox-html.el).

However, sometimes messages contains images or links (the
<a href="www...">whatever</a> kind).  I see them in Gnus, but when I 
save the message, images are replaced by "*" and links are stripped.  
I would like somehow retain this information.

Maybe the easiest solution would be to write a new Gnus saver-function,
but I don't know if I would have access to images and links.

I hope this is more clear.

—Rasmus

-- 
May contains speling mistake



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: save gnus articles with links
  2015-02-13 10:49   ` Rasmus
@ 2015-02-18  1:12     ` Lars Ingebrigtsen
  2015-04-15 15:44     ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2015-02-18  1:12 UTC (permalink / raw)
  To: Rasmus; +Cc: help-gnu-emacs

Rasmus <rasmus@gmx.us> writes:

> However, sometimes messages contains images or links (the
> <a href="www...">whatever</a> kind).  I see them in Gnus, but when I 
> save the message, images are replaced by "*" and links are stripped.  
> I would like somehow retain this information.
>
> Maybe the easiest solution would be to write a new Gnus saver-function,
> but I don't know if I would have access to images and links.

You would have to write a new saving function.  The URLs and images are
available as text properties.  Just use `(text-properties-at (point))'
to inspect the properties and pick out the ones you need.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: save gnus articles with links
  2015-02-13 10:49   ` Rasmus
  2015-02-18  1:12     ` Lars Ingebrigtsen
@ 2015-04-15 15:44     ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2015-04-15 15:44 UTC (permalink / raw)
  To: Rasmus; +Cc: help-gnu-emacs

Rasmus <rasmus@gmx.us> writes:

> Maybe the easiest solution would be to write a new Gnus saver-function,
> but I don't know if I would have access to images and links.
>
> I hope this is more clear.

The images and the links are in the buffer as text properties
(`image-url' and friends), so writing such a saver shouldn't be that
difficult, I think.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-15 15:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.19467.1423334982.1147.help-gnu-emacs@gnu.org>
2015-02-13  6:04 ` save gnus articles with links Lars Magne Ingebrigtsen
2015-02-13 10:49   ` Rasmus
2015-02-18  1:12     ` Lars Ingebrigtsen
2015-04-15 15:44     ` Lars Magne Ingebrigtsen
2015-02-07 18:49 Rasmus

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.