From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7750 Path: news.gmane.org!not-for-mail From: Frank Schmitt Newsgroups: gmane.emacs.gnus.user Subject: Re: indicate email has attachment in summary buffer Date: Wed, 02 Aug 2006 21:13:51 +0200 Organization: Hamme net, kren mer och nimmi Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1154546168 6721 80.91.229.2 (2 Aug 2006 19:16:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2006 19:16:08 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Aug 02 21:15:50 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 1G8MBb-0007wN-HF for gegu-info-gnus-english@m.gmane.org; Wed, 02 Aug 2006 21:15:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8MBa-0007gu-H4 for gegu-info-gnus-english@m.gmane.org; Wed, 02 Aug 2006 15:15:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8MBX-0007fB-Sx for info-gnus-english@gnu.org; Wed, 02 Aug 2006 15:15:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8MBV-0007ex-9T for info-gnus-english@gnu.org; Wed, 02 Aug 2006 15:15:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8MBV-0007eu-4R for info-gnus-english@gnu.org; Wed, 02 Aug 2006 15:15:13 -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 1G8MEf-000106-Oj for info-gnus-english@gnu.org; Wed, 02 Aug 2006 15:18:30 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G8MAz-0007mY-AN for info-gnus-english@gnu.org; Wed, 02 Aug 2006 21:14:41 +0200 Original-Received: from p54af35fd.dip0.t-ipconnect.de ([84.175.53.253]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Aug 2006 21:14:41 +0200 Original-Received: from ich by p54af35fd.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Aug 2006 21:14:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: info-gnus-english@gnu.org Original-Lines: 48 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p54af35fd.dip0.t-ipconnect.de X-Face: :EL9TzGRN){7|oE2~xQ8Q(VjpjsXgX$~gi&rYD5J5p)$w\Thdl~v:7h`/n)J!8nXT%_+Wj6}@EHM8}QbA(9nX-wrQ:ch1%DauV[?kFasXUcnL#+"K8zOx&$@/M'/}, q-eztaJra1|?C+p$h\2XnK-HB"8_U 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:7750 Archived-At: Leon writes: > I have just completed a project with 4 people based on emails. I > almost missed an important file attached in an email. That's how I > found an indicator of attachment in gnus summary line will be > practically useful. > > It happened like this. > The message, as we always include the original, became very long. And > the attachment in gnus is shown at the end of the article buffer that > I missed it. > > So I'm wondering is there any way I can have an indicator in the > summary line for emails that have attachment. For example something > like this will be useful: > > O +|31-Jul| Hadron Quark | 160|@● Always show 20 posts > > The '@' at the beginning of the subject indicates attachment. Yes, this is possible, however it isn't easy, you have to write some lisp to do it: See the Gnus manual node 3.1.1 Summary Buffer Lines there you'll find `u' User defined specifier. The next character in the format string should be a letter. Gnus will call the function `gnus-user-format-function-X', where X is the letter following `%u'. The function will be passed the current header as argument. The function should return a string, which will be inserted into the summary just like information from any other summary specifier. Now you "only" have to write a function which takes the header and searches for "Content-Type: multipart/mixed". If it is found your function returns an "@", otherwise it returns a " ". This should be really easy for someone who knows some lisp. (Rainer? :-)) Greetings, Frank -- Did you ever realize how much text fits in eighty columns? If you now consider that a signature usually consists of up to four lines, this gives you enough space to spread a tremendous amount of information with your messages. So seize this opportunity and don't waste your signature with bullshit nobody will read.