🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #406

Re: Show filenames for mime attachments

#406
From: newsspam5REMOVETHIS
Date: Wed, 31 Oct 2007 01:03
60 lines
3104 bytes
Martin Reed <martinjreed@googlemail.com> writes:

> Hi,
>
> Is there a way to display filenames next to the "buttons" associated
> with attachments
> in a presentation buffer (of received mail). I frequently have emails
> with multiple
> attachments in them, and have to attempt to save them to see which one
> I actually want to open, which is often tiresome.
>
> Currently I see something like:
>
> BUTTON application/msword        [Click mouse-2 to display Word
> document]
>
> I would like to see
>
> BUTTON application/msword filename.doc       [Click mouse-2 to display
> Word document]
>
> I have tried setting
> vm-mime-button-format-alist
> but it seemed to be ignored when I changed every
> [%k to %a] to [%f to %a] which should (I guessed) have displayed:
> [filename.doc to display Word document]

It should work like this, I am not sure why it did not work for
you ...  I have:

(setq vm-mime-button-format-alist
      '(("text" . "%f (%d, %c) [%a]")
        ("multipart/alternative" . "%-20.20(%d) [%a]")
        ("multipart/digest" . "%-20.20(%d, %n message%s) [%a]")
        ("multipart" . "%-20.20(%d, %n part%s) [%a]")
        ("message/partial" . "%-20.20(%d, part %N (of %T)) [%a]")
        ("message/external-body" . "%-20.20(%d, %f) [%a (%x)]")
        ("message" . "%-20.20(%d) [%a]")
        ("audio" . " %f (%d) [%a]")
        ("video" . " %f (%d) [%a]")
        ("image" . " %f (%d) [%a]")
;        ("application/octet-stream" . "%-20.20(%d, %f) [%a]")
        ("application" . " %f (%d) [%a]")))

> It seems that
> vm-mime-default-action-string-alist
> has something to do with this as but I cannot fathom it!

I doubt it is related to this.

Please check the actual MIME type by decoding the message to raw
format.  Is it one of "application*"?

> Help would be appreciated as this has always bugged me with VM
>
> Otherwise it rocks! And thanks to Robert Widhopf-Fenk for
> continuing its development.

Thanks,
Robert
Technical Details
Message-ID: <85k5p4858u.fsf@robf.de>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.m-online.net!not-for-mail
References: <1193337341.079407.22430@50g2000hsm.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f6829,d95a287b8908d2a1
X-Google-Attributes: gidf6829,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.m-online.net!not-for-mail
From: newsspam5REMOVETHIS@robf.de
Newsgroups: gnu.emacs.vm.bug
Subject: Re: Show filenames for mime attachments
Date: Wed, 31 Oct 2007 02:03:45 +0100
Organization: (posted via) M-net Telekommunikations GmbH
Lines: 60
Message-ID: <85k5p4858u.fsf@robf.de>
References: <1193337341.079407.22430@50g2000hsm.googlegroups.com>
NNTP-Posting-Host: ppp-82-135-3-183.dynamic.mnet-online.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: svr7.m-online.net 1193792626 882 82.135.3.183 (31 Oct 2007 01:03:46 GMT)
X-Complaints-To: abuse@m-online.net
NNTP-Posting-Date: Wed, 31 Oct 2007 01:03:46 +0000 (UTC)
User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux)
Cancel-Lock: sha1:ggx5UN/7K3WruLpz6my3BqU5Wh0=