From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46963 Path: main.gmane.org!not-for-mail From: John H Palmieri Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-group-line-format questions Date: Thu, 03 Oct 2002 12:44:00 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033674418 29255 127.0.0.1 (3 Oct 2002 19:46:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 3 Oct 2002 19:46:58 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17xBvv-0007b3-00 for ; Thu, 03 Oct 2002 21:46:51 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17xBtj-0000nQ-00; Thu, 03 Oct 2002 14:44:35 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 03 Oct 2002 14:45:17 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id OAA03588 for ; Thu, 3 Oct 2002 14:45:05 -0500 (CDT) Original-Received: (qmail 27723 invoked by alias); 3 Oct 2002 19:44:18 -0000 Original-Received: (qmail 27718 invoked from network); 3 Oct 2002 19:44:18 -0000 Original-Received: from euler.math.washington.edu (128.95.224.1) by gnus.org with SMTP; 3 Oct 2002 19:44:18 -0000 Original-Received: from zeno2.math.washington.edu (IDENT:iTsAV1qruD57yJhLAWBgLXPqJI2PRrrD@zeno2.math.washington.edu [128.95.224.5]) by euler.math.washington.edu (8.11.6/8.11.6) with ESMTP id g93JiCe178351; Thu, 3 Oct 2002 12:44:12 -0700 (PDT) Original-Received: (from palmieri@localhost) by zeno2.math.washington.edu (8.11.6/8.11.6) id g93Ji0X28605; Thu, 3 Oct 2002 12:44:00 -0700 X-Authentication-Warning: zeno2.math.washington.edu: palmieri set sender to palmieri@math.washington.edu using -f Original-To: ding@gnus.org In-Reply-To: (Danny Siu's message of "Thu, 03 Oct 2002 14:10:12 +0800") Original-Lines: 28 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-redhat-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46963 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46963 Thanks, this is more or less exactly what I wanted. In particular, knowing that I have access to the variable gnus-tmp-qualified-group lets me do just the sort of thing I want. Danny Siu writes: > John, > > I defined a custom format function for displaying my IMAP mail group names > in group buffer. Notice that "%(%-20uG%)" in my gnus-group-line-format. > > (setq gnus-group-line-format "%m%M%S%P%2L [!%-3T ?%-3I] %4y: %(%-20uG%) %20ue\n") > > ;; Just the trailing group name > (defun gnus-user-format-function-G (arg) > (if (string-match "/[^/]+$" gnus-tmp-qualified-group) > (substring gnus-tmp-qualified-group (+ (match-beginning 0) 1)) > gnus-tmp-qualified-group)) > > > This is related but not exactly what you are looking for but you may find > useful when dealing with long IMAP folder name. -- J. H. Palmieri Dept of Mathematics, Box 354350 mailto:palmieri@math.washington.edu University of Washington http://www.math.washington.edu/~palmieri/ Seattle, WA 98195-4350