From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84205 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: show attachments on the top Date: Sat, 08 Feb 2014 14:23:37 +0800 Message-ID: <87d2iyktqu.fsf@ericabrahamsen.net> References: <87ob43eerj.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391840549 22220 80.91.229.3 (8 Feb 2014 06:22:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 06:22:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32457@lists.math.uh.edu Sat Feb 08 07:22:36 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WC1JD-0006Sd-QS for ding-account@gmane.org; Sat, 08 Feb 2014 07:22:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1WC1IP-0005VA-3P; Sat, 08 Feb 2014 00:21:45 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WC1IM-0005Ux-5P for ding@lists.math.uh.edu; Sat, 08 Feb 2014 00:21:42 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WC1IK-0001n4-Bd for ding@lists.math.uh.edu; Sat, 08 Feb 2014 00:21:41 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WC1IH-0002hC-9w for ding@gnus.org; Sat, 08 Feb 2014 07:21:37 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WC1IG-0005jq-J7 for ding@gnus.org; Sat, 08 Feb 2014 07:21:36 +0100 Original-Received: from 123.122.35.89 ([123.122.35.89]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Feb 2014 07:21:36 +0100 Original-Received: from eric by 123.122.35.89 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Feb 2014 07:21:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.122.35.89 User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:o0ITA4O8KxpSCVpG87rUFbX0dwQ= X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-2397--16103h-0s--0d--H*u:Emacs, 0.000-143--956h-0s--0d--H*u:Gnus, 0.000-143--956h-0s--0d--H*UA:Gnus, 0.000-139--934h-0s--0d--H*u:linux, 0.000-139--934h-0s--0d--H*UA:linux Spam tokens: 0.991-16961--936h-80375s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.991-16961--936h-80375s--0d--H*RU:quimby.gnus.org, 0.991-16335--902h-77412s--0d--HTo:D*gnus.org, 0.988-16743--1154h-80377s--0d--HX-Spam-Relays-Internal:quimby.gnus.org, 0.988-16743--1154h-80377s--0d--H*RT:80.91.231.51 Autolearn status: no -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.91.229.3 listed in list.dnswl.org] 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -0.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.5 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2 List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84205 Archived-At: Katsumi Yamaoka writes: > Lars Ingebrigtsen wrote: >> Katsumi Yamaoka writes: > >>> Maybe no one will add a MIME part in this way; people (or almost >>> mail clients) add attachments at the bottom no matter how the body >>> is big. Because of this, I sometimes overlook them. >>> >>> The code in this attachment makes Gnus show attachments at the top. >>> `g' toggles the appearance. > >> Making the attachments more visible is a good idea. Would it make sense >> to add a new "header" in the display that just lists them? > >> Attachments: [button] [button] [button] > >> They could also be included where they are in the message like now, but >> listing them twice shouldn't be a problem... > > Thanks for the suggestion. I've implemented this in the Gnus Git > master. Now the feature is turned on by default. If you don't > want it, set `gnus-mime-display-attachment-buttons-in-header' to > nil. > > If you have the old code in your .gnus.el file, please remove it > anyway. Customize `gnus-header-face-alist' as follows if you > want to change the appearance of buttons: > > (eval-after-load "gnus-art" > '(add-to-list > 'gnus-header-face-alist > '("Attachments?:" Header-Name-Face Header-Content-Face))) > > When you customize it, note that the element that begins with > "" should be the last item of `gnus-header-face-alist'. I really like this change! One thing that seems a bit broken now, though, is hitting "K o" from the summary buffer -- gnus-article-save-part. I tried it on a few different messages, and they all gave me the same error, below. I haven't customized much in this area, so I assume it's not a local issue, but let me know if you want more information. Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p "2") gnus-article-part-wrapper(nil mm-save-part) gnus-article-save-part(nil) call-interactively(gnus-article-save-part nil nil) Thanks, Eric