[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: icalendar import while opening an article
From: |
Uwe Brauer |
Subject: |
Re: icalendar import while opening an article |
Date: |
Tue, 09 Feb 2010 11:58:36 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.21 (linux) |
> ,----
> | `gnus-article-mime-part-function'
> | For each MIME part, this function will be called with the MIME
> | handle as the parameter. The function is meant to be used to allow
> | users to gather information from the article (e. g., add Vcard
> | info to the bbdb database) or to do actions based on parts (e. g.,
> | automatically save all jpegs into some directory).
> |
> | Here's an example function the does the latter:
> |
> | (defun my-save-all-jpeg-parts (handle)
> | (when (equal (car (mm-handle-type handle)) "image/jpeg")
> | (with-temp-buffer
> | (insert (mm-get-part handle))
> | (write-region (point-min) (point-max)
> | (read-file-name "Save jpeg to: ")))))
> | (setq gnus-article-mime-part-function
> | 'my-save-all-jpeg-parts)
> |
> `----
Precisely! That is what I was looking for thanks very much!
Uwe