From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7757 Path: news.gmane.org!not-for-mail From: Leon Newsgroups: gmane.emacs.gnus.user Subject: Re: indicate email has attachment in summary buffer Date: Thu, 03 Aug 2006 20:28:11 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154633469 20485 80.91.229.2 (3 Aug 2006 19:31:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2006 19:31:09 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Aug 03 21:30:59 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G8ite-00018s-FK for gegu-info-gnus-english@m.gmane.org; Thu, 03 Aug 2006 21:30:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8itd-0001Ju-KK for gegu-info-gnus-english@m.gmane.org; Thu, 03 Aug 2006 15:30:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8itb-0001Jo-Ip for info-gnus-english@gnu.org; Thu, 03 Aug 2006 15:30:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8itW-0001HP-F9 for info-gnus-english@gnu.org; Thu, 03 Aug 2006 15:30:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8itW-0001HD-C5 for info-gnus-english@gnu.org; Thu, 03 Aug 2006 15:30:10 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G8iwu-0000YL-El for info-gnus-english@gnu.org; Thu, 03 Aug 2006 15:33:40 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G8isD-0000uh-QJ for info-gnus-english@gnu.org; Thu, 03 Aug 2006 21:28:49 +0200 Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Aug 2006 21:28:49 +0200 Original-Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Aug 2006 21:28:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: info-gnus-english@gnu.org Original-Lines: 42 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAAEAAAAAUCAMAAAAKqMsNAAAAwFBMVEUfIB4qLCk8PjxAQT9E RkNHSUZKS0lOUE1SVFFWV1VWWFVaW1lcXltfYV5kZWNpa2hsbmtub21vcW5ydHF3eXZ5e3h7fXp+ f32Agn+EhoOGiIWKjImNjouTlZKWmJWZm5icnpugop+jpaKnqaarraqwsq6ztbG4ure7vbq+wL3D xcLJy8jP0c3R09DT1dLV19TY2tfe4Nzf4d7h5ODj5eLn6ebq7Ont7+vv8e3y9PHz9fL19/T3+fb4 +/f8/vv+//wkcdDPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH1gIaAyMPYYdloAAAAZlJ REFUOMudVH9TgkAQxWhqGBrqSueSQM2QUgQERxKBt9//W3V3IJKZf7A33I+927ePtxwaESWrveip oD6mEW3m4LkYbr77AWAXZ/NFaDkD+3Hfi8H7IjR8PS90fPI+ALEF6JkRFrd4m10/nH1fAvBmlAxR OEx7+cCV6O10OnQuAODgfE4qACVvw7dVPaylhbVPnMDmnNFWiSiNRDult1M1+APbtses9Yf+b4Yz 7rxKEUlGdzcwTuqceiqyhq07k6eqQplcm8Bzpv15qSo/8DjP5XRlEXktM49L3AlTJjgWJtE40Cjw O7YnvLOhbjEWSwr3URSLeDwlhDK3DtKnCAh8lA8Evm40aE0tx6mciWloeKgFlI8pfe4Lk00wgFGQ WWro6t7oXWsgY1ithuo2vCmGSiSmEWNLqgHc1E1oXR0B5llbORwB8okddZIc91UVUHrYjWCeKLSl 79D6Ss/i630FkE6WLvPvgvOC/ALAn88UzWUi3BXgHyv3+kXAv7eRdgbIKHm07QkAjMJpAL6Mev6R BMJOFrpEH4AfGukf4kwTGH0AAAAASUVORK5CYII= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:/Mgk+i5TzHX8i1b/PXZqycYq+JU= X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:7757 Archived-At: Reiner Steib writes: > On Thu, Aug 03 2006, Leon wrote: > >> I have adapt one function from rs-gnus-summary.el as: >> >> (defun gnus-user-format-function-@ (header) >> "Display @ for message with attachment in summary line. > [...] >> (when (string-match "^multipart/mixed" ctype) >> (setq indicator "@")) >> (if indicator >> indicator >> " "))) >> >> As you can see, I only match "^multipart/mixed" with Content-type. > > Probably this setting should do the same... > > (setq rs-gnus-summary-line-content-type-alist > '((".*" " ") > ("^multipart/mixed" "@"))) Yes. There are a lot of other nice features in your rs-gnus-summary.el for example the Thunderbird-like labels. > >> Do you think this is reliable to match all emails with attachment? > > It also matches other articles (e.g. various text/plain parts with > different charset), but these articles are quite rare. > > Bye, Reiner. Actually I just met one such email. Gnus didn't show any attachment in article buffer, but thunderbird did. Is there any standard way of testing if an email has attachment? Thanks a lot! -- Leon