help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Seeing Attachments in Gnus


From: Reiner Steib
Subject: Re: Seeing Attachments in Gnus
Date: Thu, 04 Dec 2003 14:34:42 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

On Tue, Dec 02 2003, Kai Grossjohann wrote:

> Dan Anderson <address@hidden> writes:

>>         a.  Tell Gnus to alert me when an e-mail has an attachment

If you already want to see it in the Summary buffer, you may use the
following:

--8<---------------cut here---------------start------------->8---
(defun gnus-user-format-function-ct (header)
  "Display content type of message in summary line.

You need to add `Content-Type' to `nnmail-extra-headers' and
`gnus-extra-headers', see Info node `(gnus)To From Newsgroups'."
  (let ((case-fold-search t)
        (ctype (cdr (assq 'Content-Type
                          (mail-header-extra header)))))
    (cond
     ;; FIXME: Use a customizable list instead:
     ((or (not ctype) (string-match "^text/plain" ctype)) " ")
     ((string-match "^text/html" ctype)                   "h")
     ((string-match "^multipart/mixed" ctype)             "m")
     ((string-match "^multipart/alternative" ctype)       "a")
     ((string-match "^multipart/related" ctype)           "r")
     ((string-match "^multipart/signed" ctype)            "s")
     ((string-match "^multipart/encrypted" ctype)         "e")
     ((string-match "^multipart/report" ctype)            "t")
     ;; other
     (t "o"))))
;; Then, add "%u&ct;" to `gnus-summary-line-format'.
--8<---------------cut here---------------end--------------->8---

See the screen shot on
<URL:http://theotp1.physik.uni-ulm.de/~ste/comp/emacs/gnus/screen-shots/
summary-spam-mime.png>.

>>         b.  Tell Gnus where to save said attachment.

,----[ C-h v mm-default-directory RET ]
| mm-default-directory's value is "~/Mail/Attachments/"
| 
| Documentation:
| The default directory where mm will save files.
| If not set, `default-directory' will be used.
`----

> Maybe this happens if people compose a multipart/alternative message
> where one alternative is a text/plain message (shown by Gnus) and the
> other alternative is multipart/mixed or multipart/related.

,----[ C-h v gnus-mime-display-multipart-related-as-mixed RET ]
| gnus-mime-display-multipart-related-as-mixed's value is t
| 
| Documentation:
| Display "multipart/related" parts as  "multipart/mixed".
| 
| If displaying "text/html" is discouraged (see
| `mm-discouraged-alternatives') images or other material inside a
| "multipart/related" part might be overlooked when this variable is nil.
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/


reply via email to

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