info-gnus-english
[Top][All Lists]
Advanced

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

Re: Save HTML Article


From: Mohsen BANAN
Subject: Re: Save HTML Article
Date: Thu, 23 Jun 2011 15:53:40 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Here is what I do:

    - Save the Entire article.
    - Pass the entire article through mhonarc
    - browse-url on the output of mhonarc

I can send more details if needed.

...Mohsen

>>>>> On Mon, 2 May 2011 00:47:45 -0700 (PDT), Volkan YAZICI 
>>>>> <volkan.yazici@gmail.com> said:

  Volkan> Hi,
  Volkan> TL;DR --- How can I save images in an HTML mail?

  Volkan> Quite often I receive HTML articles from clients using Outlook, and
  Volkan> w3m generally doesn't provide a proper layout. I save such articles in
  Volkan> HTML format using below function and then view them later in Firefox.

  Volkan> (defun my-gnus-summary-view-html-alternative ()
  Volkan>   "Display the HTML part of the current multipart/alternative MIME
  Volkan> message
  Volkan>   in current browser."
  Volkan>   (interactive)
  Volkan>   (save-current-buffer
  Volkan>     (gnus-summary-show-article)
  Volkan>     (set-buffer gnus-article-buffer)
  Volkan>     (let ((file (make-temp-file "html-message-" nil ".html"))
  Volkan>           (handle (nth 3 (assq 1 gnus-article-mime-handle-alist))))
  Volkan>       (mm-save-part-to-file handle file)
  Volkan>       (browse-url (concat "file://" file)))))

  Volkan> The problem is, above function doesn't provide a feature to save
  Volkan> images in an article. Since searching didn't provide anything useful
  Volkan> for gnus-article-mime-handle-alist, I couldn't figure out what to do.
  Volkan> Can anybody help me to save images in an HTML mail?


  Volkan> Best.




reply via email to

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