Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!hplabs!hp-pcd!hplsla!hpubvwa!grlab!scott From: scott@grlab.UUCP (Scott Blachowicz) Newsgroups: comp.mail.mush Subject: Re: Record of outgoing mail? Message-ID: <7330009@grlab.UUCP> Date: 16 May 89 15:31:52 GMT References: <7845@zodiac.UUCP> Organization: Graphicus Lines: 44 / grlab:comp.mail.mush / dheller@cory.Berkeley.EDU (Dan Heller) / 8:57 pm May 10, 1989 / > In article <89May10.202621edt.879@church.csri.toronto.edu> parkb@csri.toronto.edu ("Brian T. Park") writes: > > > hmmm... I wonder if it is possible to *mail* to a folder? I'm using 6.3, > > and I know I can't with that version... > > Yes, you can mail to files and programs. "Files" must begin with a /, +, or ~ > and programs must begin with a "|". Actually, what I generally want to do is have my mail delivery just drop messages into a folder based on several different things. I use the filter program from the elm distribution to sort incoming mail. If I see a message with a subject containing a string like ":save:folder1,folder2", I pipe it off to a script that I have that parses off that string and appends the message to the folders. I also have filter recognized some subject lines and having it do the saving for some cases. It seems a nice way to do it (by having it done on delivery). With mush you could setup a crontab entry to run a mush command file that goes and 'pick's messages and saves them for you. This could be done when you first login or whatever to give the effect of "mailing to your folders". I've got something setup to "age" messages in all of my folders: #! /bin/sh cd ${1:-$HOME/mboxes} { ls -F | grep -v / | awk ' { print "uncompress old/" $1; print "folder " $1 " | pick -ago -4m | save old/" $1 " | delete"; print "compress -v old/" $1; } END { print "quit"; }' } >/tmp/cmb.$$ 2>&1 mush -i < /tmp/cmb.$$ 2>&1 rm -fr /tmp/cmb.$$ Scott Blachowicz USPS: Graphicus UUCP: ...!hpubvwa!grlab!scott 150 Lake Str S, #206 VoicePh: 206/828-4691 Kirkland, WA 98033 FAX: 206/828-4236