zsh-workers
 help / color / mirror / code / Atom feed
From: chip@cybernetics.net (Chip Salzenberg)
To: mason@werple.mira.net.au (Geoff Wing)
Cc: zsh-workers@math.gatech.edu
Subject: Re: Deliver script (was Re: procmail)
Date: Sat, 20 May 1995 12:49:57 -0400 (EDT)	[thread overview]
Message-ID: <9505201649.AA04510@cybernetics.net> (raw)
In-Reply-To: <199505190544.PAA16613@werple03.mira.net.au> from "Geoff Wing" at May 19, 95 03:44:42 pm

According to Geoff Wing:
> If you want store in individual files, but not use the rcvstore program, you
> might try the following procmailrc recipes, which store the lists in
> 3 different directories. Each message is stored as its message number.
> 
> :0: 				# Zsh announce mailing list
> * ^Resent-Sender: zsh
> * ^X-Mailing-List: <zsh-announce.*\/[0-9]+
> zsh-announce/$MATCH
> 
> :0: 				# Zsh users mailing list
> * ^Resent-Sender: zsh
> * ^X-Mailing-List: <zsh-users.*\/[0-9]+
> zsh-users/$MATCH
> 
> :0: 				# Zsh workers mailing list
> * ^Resent-Sender: zsh
> * ^X-Mailing-List: <zsh-workers.*\/[0-9]+
> zsh-workers/$MATCH

You should be able to do the same thing with Deliver.  Assuming you
have Perl (DON'T YOU?), your .deliver file would look like:

----------------------------------------------------------------
#!/usr/bin/perl

open(H, $ENV{'HEADER'});
while (<H>) {
	if (/^X-Mailing-List: <(zsh-\w+)[^/]*/(\d+)/) {
		print $1, "/", $2, "\n";
		exit;
	}
}
close(H);

print $ARGV[0], "\n";
----------------------------------------------------------------



-- 
            Chip Salzenberg, aka <chip@cybernetics.net>
     "And remember to worship at the railroad of your choice."
        -- Mike Nelson, MST3K: "The Amazing Transparent Man"


  reply	other threads:[~1995-05-20 16:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9505180204.AA00391@redwood.skiles.gatech.edu>
1995-05-18 16:30 ` new zsh mailing list up and running Mark Borges
1995-05-18 21:52   ` Richard Coleman
1995-05-19  5:44     ` procmail recipes Geoff Wing
1995-05-20 16:49       ` Chip Salzenberg [this message]
1995-12-04 15:01       ` problems with $WATCH / $WATCHFMT Matt Chidambaram
1995-12-04 16:53         ` Zoltan Hidvegi
1995-12-04 17:12         ` Peter Stephenson
1995-05-19  7:07     ` new zsh mailing list up and running Samuel Tardieu
1995-05-19  9:51     ` Martin Hamilton

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=9505201649.AA04510@cybernetics.net \
    --to=chip@cybernetics.net \
    --cc=mason@werple.mira.net.au \
    --cc=zsh-workers@math.gatech.edu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).