rfarris@rfengr.com (Rick Farris) (05/14/91)
Ok, we've discussed history files and metoo, but there's one thing that Elm people can do that I haven't figured out yet: I save incoming mail under the authors name (save -a ~/Mail). How can I get my responses filed into the same file? That is, how can I get a file composed of all the mail from a given person, interleaved with my replies? -- Rick Farris RF Engineering POB M Del Mar, CA 92014 voice (619) 259-6793 rfarris@rfengr.com ...!ucsd!serene!rfarris serenity bbs 259-7757
schaefer@cse.ogi.EDU (05/17/91)
On May 14, 4:03am, Rick Farris wrote: } Subject: Elm makes me jealous because... } } I save incoming mail under the authors name (save -a } ~/Mail). How can I get my responses filed into the same } file? The general problem with this is that there's never more than one author, but there may be several recipients. Which recipient do you want it filed under? Have you considered using "set record", then occasionally changing to the record folder and typing: set reply_to_hdr = to save -a * ~/Mail | delete ? Of course, then you have to sort the various folders by date when you examine them .... } That is, how can I get a file composed of all the mail from } a given person, interleaved with my replies? How about: #----- 8< ----- CUT HERE ----- 8< ----- CUT HERE ----- 8< ----- #! /bin/sh # # Call this file "record_users" and put it somewhere in your $PATH, # say in $HOME/bin. Make it executable (chmod +x). Add to .mushrc: # # set record='|record_users' # # or if your machine can't do #!, try: # # set record="|sh $HOME/bin/record_users" # # Saves outgoing mail to the folder named for the first person on # the To: line. If there isn't anyone on the To: line, saves it # under your own login name, probably. # cat > /tmp/out$$ mush -N -f /tmp/out$$ -i <<EOF 2>&1 > /dev/null set reply_to_hdr = to save -a * ~/Mail delete * quit EOF exit 0 -- Bart Schaefer schaefer@zipcode.com Z-Code Software Corporation schaefer@cse.ogi.edu