9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: geoff@collyer.net
To: 9fans@cse.psu.edu
Subject: Re: [9fans] acme + mh
Date: Mon,  6 Feb 2006 18:26:25 -0800	[thread overview]
Message-ID: <502eb27bbd6508a53646913a89c6e3c1@collyer.net> (raw)
In-Reply-To: <43E780AB.1080405@lanl.gov>

> - want a more convenient way to name folders - i have a lot

Could you elaborate?  You need to use Put rather than Save to create a
`folder' (alternate mailbox); is that your objection?  You should be
able to create hierarchies too; though I have done only a very limited
form of this.

> - want automated refiling rules

I do this in my pipeto filter.  Here's a shortened version of it:

#!/bin/rc
# pipeto local!$user /mail/box/$user/mbox - file incoming spam
rfork en
bind -c /mail/tmp /tmp

ml=/mail/box/geoff		# use your login name here, or get it from $1
check=/tmp/check.$pid
incoming=/tmp/incoming.$pid

cd $ml || exit 'no '^$ml

>$check
cat >$incoming
# -h: search header; -b: search header & body.
# delivers to $2 if nothing matches.
# note that filter locks my main mail box while it runs.
upas/filter -h $1 $2 <$incoming \
 '(^|\n)Content-Type: text/plain;charset="GB2312"' /dev/null \
 '(^|\n)From:.*[^a-z]enemy@([^!@]+\.)?fools\.com($|[>, ])' /dev/null \
 '^cse\.psu\.edu!(9fans)-admin$'	l-\1 \
 '(^|\n)([Tt]o|[Cc][Cc]|List-Id):.*[^a-z](9grid)([@.]nwn\.definitive\.org)' l-\3 \
 '([^!@]+\.)?(efax|eziba|itsj|musicmatch)\.com!' /dev/null \
 'collyer\.net!claudia'			$check \
 '^([^!]+\.)?(acm|ieee|maps|usenix)\.(org|ORG)!' l-\2 \
 '^([^!]+\.)?(acm)queue\.(com|COM)!'	l-\2 \
 '^([^!]+\.)?(comsoc|svtii)\.(org|ORG)!' l-ieee \
 '^([^!]+\.)?ACM\.(org|ORG)!'		l-acm \
 '(^|\n)[Ss]ubject: IEEE '		l-ieee \
 '(^|\n)([Tt]o|[Cc][Cc]):.*[	, "''<]geoff\.ieee@collyer.net' l-ieee \
 '(^|\n)([Tt]o|[Cc][Cc]):.*@listserv\.ieee\.org' l-ieee \
 '(^|\n)([Tt]o|[Cc][Cc]):.*@LISTSERV\.IEEE\.ORG' l-ieee \
 '^(sans)\.org!'			l-\1 \
 '(^|\n)([Tt]o|[Cc][Cc]|From):.*[	, "''<]((geoff|postmaster|mailer-daemon|MAILER-DAEMON)[@,.]|(geoff|postmaster|mailer-daemon|MAILER-DAEMON)$|[^	, ]+!(geoff|postmaster|mailer-daemon|MAILER-DAEMON))' $check \
 '^'					$check \


rv=$status
if (test -s $check) {	# message wasn't auto-filed, see if we know the sender
	./pipeto.token $* <$incoming
	rv=$status
}
rm -f $check $incoming
exit $rv



  parent reply	other threads:[~2006-02-07  2:26 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-04  2:59 Ronald G Minnich
2006-02-04  3:14 ` andrey mirtchovski
2006-02-04  5:00   ` Rob Pike
2006-02-04  5:03     ` andrey mirtchovski
2006-02-04  5:32       ` Bruce Ellis
2006-02-06 20:44       ` Dan Cross
2006-02-04 22:31   ` David Leimbach
2006-02-04  4:10 ` Skip Tavakkolian
2006-02-05  5:29   ` Ronald G Minnich
2006-02-05  5:54     ` Bruce Ellis
2006-02-05  6:00       ` Ronald G Minnich
2006-02-05  6:41         ` Bruce Ellis
2006-02-05  7:31           ` Skip Tavakkolian
2006-02-05 15:47           ` Russ Cox
2006-02-05 15:58             ` Bruce Ellis
2006-02-05  9:16         ` Bakul Shah
2006-02-05 16:01           ` Russ Cox
2006-02-05 18:46             ` Bakul Shah
2006-02-07 11:28             ` John Stalker
2006-02-07 13:47               ` Marina Brown
2006-02-07 15:43               ` Richard Bilson
2006-02-07 15:54                 ` Brantley Coile
2006-02-07 16:06                 ` Charles Forsyth
2006-02-07 22:21                   ` Bruce Ellis
2006-02-07 22:48                     ` Brantley Coile
2006-02-07 22:57                       ` Bruce Ellis
2006-02-10 19:45               ` rog
2006-02-06 11:18           ` Enrique Soriano
2006-02-06 16:21             ` Ronald G Minnich
2006-02-06 16:42               ` uriel
2006-02-06 17:00                 ` Ronald G Minnich
2006-02-06 19:43                   ` Joel Salomon
2006-02-06 19:45                     ` andrey mirtchovski
2006-02-07  2:26                   ` geoff [this message]
2006-02-05 14:46         ` Jason Gurtz
2006-02-05 18:14       ` Marina Brown
2006-02-04  4:16 ` Skip Tavakkolian
2006-02-04  4:29 ` Serge Gagnon
2006-02-04 16:11   ` Martin C. Atkins
2006-02-04 16:57     ` uriel
2006-02-04 20:17       ` Russ Cox
2006-02-04 20:34         ` uriel
2006-02-04 20:50           ` Christopher Nielsen
2006-02-05  5:31           ` Ronald G Minnich
2006-02-04  9:31 ` Christoph Lohmann
2006-02-04 17:48   ` andrey mirtchovski
2006-02-04 22:35     ` David Leimbach
2006-02-04 23:41     ` Skip Tavakkolian
2006-02-05  0:08       ` Bruce Ellis
2006-02-04 14:24 ` Russ Cox
2006-02-06 16:30   ` Tim Wiess
2006-02-06 16:42     ` Gabriel Ivanes
2006-02-04 15:35 ` Marina Brown
2006-02-04  3:29 erik quanstrom
2006-02-04  3:49 quanstro
2006-02-04  4:25 quanstro
2006-02-05  0:47 quanstro
2006-02-05  5:06 ` Bruce Ellis
2006-02-05 17:56 ` Micah Stetson
2006-02-05 18:08   ` Bruce Ellis
2006-02-05 18:20     ` ems
2006-02-05 18:23       ` Bruce Ellis
2006-02-05 18:33         ` ems
2006-02-05 18:36           ` Bruce Ellis
2006-02-07  1:02 quanstro
2006-02-10 19:39 ` rog
2006-02-07  1:05 quanstro
2006-02-07  6:04 ` Tim Wiess
2006-02-08  2:04 quanstro
2006-02-08  4:52 ` Tim Wiess
2006-02-08 12:06 quanstro
2006-02-10 19:47 quanstro
2006-02-11 16:51 quanstro

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=502eb27bbd6508a53646913a89c6e3c1@collyer.net \
    --to=geoff@collyer.net \
    --cc=9fans@cse.psu.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.
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).