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

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

Save HTML Article


From: Volkan YAZICI
Subject: Save HTML Article
Date: Tue, 24 May 2011 19:59:38 -0000
User-agent: G2/1.0

Hi,

TL;DR --- How can I save images in an HTML mail?

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

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

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


Best.


reply via email to

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