Gnus development mailing list
 help / color / mirror / Atom feed
From: Christopher Davis <ckd@loiosh.kei.com>
Cc: ding@ifi.uio.no
Subject: Re: Feature request ? (or help)
Date: 02 Aug 1996 13:13:46 -0400	[thread overview]
Message-ID: <w4bugtzp2t.fsf@loiosh.kei.com> (raw)
In-Reply-To: griffith@sfs.nphil.uni-tuebingen.de's message of 2 Aug 96 07:45:23 GMT

JG> == John Griffith <griffith@sfs.nphil.uni-tuebingen.de>

 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/<file name>'.  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";
}


  reply	other threads:[~1996-08-02 17:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-31 13:17 Arne Elofsson
1996-07-31 14:01 ` Kai Grossjohann
1996-08-01 14:25   ` Arne Elofsson
1996-08-01 16:06     ` Kai Grossjohann
1996-08-01 17:21       ` David Worenklein
1996-08-05 11:39         ` Kai Grossjohann
1996-08-01 20:00       ` procmail AND /usr/spool/mail/me (was Re: Feature request ? (or help)) Jack Vinson
1996-08-01 21:12         ` David Worenklein
1996-08-02  6:50       ` nnml non-gnus-splitting etc was(Re: " Arne Elofsson
1996-08-05 11:43         ` Kai Grossjohann
1996-08-02  7:45       ` Feature request ? (or help) John Griffith
1996-08-02 17:13         ` Christopher Davis [this message]
1996-08-02 19:14           ` Steven L Baur
1996-08-03  6:55             ` Ed Donovan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=w4bugtzp2t.fsf@loiosh.kei.com \
    --to=ckd@loiosh.kei.com \
    --cc=ding@ifi.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).