home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.mh
- Path: sparky!uunet!munnari.oz.au!uniwa!bilby.cs.uwa.oz.au!dunnart!janet
- From: janet@cs.uwa.oz.au (Janet Jackson)
- Subject: Re: Incorporating new mail into different folders?
- Message-ID: <janet.721370289@dunnart>
- Sender: usenet@bilby.cs.uwa.edu.au
- Nntp-Posting-Host: dunnart
- Organization: Dept. Computer Science, University of Western Australia.
- References: <BxAqrv.603@shakti.ncst.ernet.in>
- Date: Tue, 10 Nov 1992 04:38:09 GMT
- Lines: 67
-
- In <BxAqrv.603@shakti.ncst.ernet.in> shobhana@shakti.ncst.ernet.in (Shobhana) writes:
-
- > is there any way to
- > incorporate different messages in my maildrop into different folders.
-
- I do it using MH's pick(1) command.
-
- I don't use inbox at all. I have a folder In-<kind> for each kind of mail,
- and In-misc for the leftovers. (You could use inbox instead of In-misc,
- but using In-misc keeps all the In- folders together on my xmh display.)
-
- I have a replacement inc script. It calls MH's inc(1) to incorporate mail
- into In-misc, then refile(1) it into the other In- folders.
- It then tells me how many messages are in each In- folder.
-
- By calling it "inc" and putting it before MH's inc in your path, you can
- get xmh to use it instead of MH's inc.
-
- Here's a shar (I've taken out most "refile" lines, leaving two examples).
-
- Janet Jackson
- <janet@cs.uwa.edu.au>
- Department of Computer Science
- The University of Western Australia
-
- --->cut here<---
- #! /bin/sh
- # This is a shell archive, meaning:
- # 1. Remove everything above the #! /bin/sh line.
- # 2. Save the resulting text in a file.
- # 3. Execute the file with /bin/sh (not csh) to create the files:
- # inc
- # This archive created: Tue Nov 10 12:43:37 1992
- export PATH; PATH=/bin:$PATH
- echo shar: extracting "'inc'" '(648 characters)'
- if test -f 'inc'
- then
- echo shar: will not over-write existing file "'inc'"
- else
- sed 's/^X//' << \SHAR_EOF > 'inc'
- X#!/bin/sh
- X#
- X# inc - Janet's personal inc to replace mh's standard inc
- X#
- X# Janet Jackson 1992-1-22
- X#
- X# This splits mail into various "In-" folders so I can look at each sort of
- X# mail in one go
- X
- XPATH=/usr/local/mh:/usr/bin:/bin:/usr/ucb:/usr/local/bin
- Xexport PATH
- X
- Xif inc +In-misc -silent; then # if there was any new mail
- X folder +In-misc >/dev/null 2>&1 # make sure we're in right folder
- X refile +In-isoc `pick -to isoc-dist -o -cc isoc-dist -o -to isoc-interest -o -cc isoc-interest 2>/dev/null` >/dev/null 2>&1
- X refile +In-softmanagers `pick -to soft-managers -o -cc soft-managers 2>/dev/null` >/dev/null 2>&1
- X folders | egrep '^[ ]*In'
- Xfi
- SHAR_EOF
- if test 648 -ne "`wc -c < 'inc'`"
- then
- echo shar: error transmitting "'inc'" '(should have been 648 characters)'
- fi
- chmod +x 'inc'
- fi # end of overwriting check
- # End of shell archive
- exit 0
-