From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/7431 Path: main.gmane.org!not-for-mail From: Christopher Davis Newsgroups: gmane.emacs.gnus.general Subject: Re: Feature request ? (or help) Date: 02 Aug 1996 13:13:46 -0400 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.71) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035147745 7217 80.91.224.250 (20 Oct 2002 21:02:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:02:25 +0000 (UTC) Cc: ding@ifi.uio.no Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id KAA32592 for ; Fri, 2 Aug 1996 10:37:25 -0700 Original-Received: from loiosh.kei.com (ckd@loiosh.kei.com [192.88.144.32]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Fri, 2 Aug 1996 19:15:04 +0200 Original-Received: (from ckd@localhost) by loiosh.kei.com (8.7.5/8.7.3) id NAA18089; Fri, 2 Aug 1996 13:13:46 -0400 (EDT) Original-To: griffith@sfs.nphil.uni-tuebingen.de (John Griffith) X-Attribution: ckd In-Reply-To: griffith@sfs.nphil.uni-tuebingen.de's message of 2 Aug 96 07:45:23 GMT Original-Lines: 32 X-Mailer: Gnus v5.2.34/XEmacs 19.14 Xref: main.gmane.org gmane.emacs.gnus.general:7431 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:7431 JG> == John Griffith JG> I use procmail to split my mail into spool files. One reason I use JG> procmail is that I like splitting to happen at delivery time. That JG> way I always know when I have mail and who it's from. Another reason JG> is though that I don't have to use Gnus to read it. I just use `mail JG> -f ~/incoming/'. I also have a shell script that does an JG> `ls' of the spool directory and lists all non-empty groups. Here's a perl script which is a little more sophisticated than your shell script; procmailers may want to look at this. (I'm not yet using Gnus to handle my mail... does use of procmail *without* suffixes, using the directory to disambiguate the incoming spools and the Gnus-managed mail storage, work? I know this had problems in the past...) It doesn't print empty groups, prints non-empty groups, and stars non-empty groups that have been modified since last access (since last access is typically by something like "from", "subj", "Mail", or "less"). #!/usr/bin/perl $spooldir = "$ENV{'HOME'}/Mail/spool"; chdir($spooldir) || die "can't chdir"; foreach (<*>) { ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($_); next if ($size == 0); print (($atime < $mtime)?" ** ":" "); print $_,"\n"; }