Article View: comp.mail.mush
Article #688Re: Changing the default mailbox for message saving
From: Bill Petro
Date: Tue, 19 Feb 1991 23:45
Date: Tue, 19 Feb 1991 23:45
31 lines
1597 bytes
1597 bytes
mgu@chorus.fr (Marc Guillemont) writes:
>In article <7871@chorus.fr> mgu@chorus.fr (Marc Guillemont) writes:
>% I am using mush (7.0.4 1/31/90). Upon saving a message ("s" in curses
>% mode), mush prompts for a default mailbox which is always the same (mbox).
>% Is there any means for setting this default mailbox to the last mailbox
>% used to save a message?
I have a set of tools that does that and more:
Note: Funny characters are inverse-video on and off for my machine.
# .mushrc
#
# bindsave does a save to a folder and sets $atarget to that folder name.
# It also modifies the prompt to show the current value of
# $atarget, which is the last folder saved to.
#
set atarget=+mbox # default save file
cmd bindsave "set atarget=\!:1 ; save "'$atarget'"; set prompt = '==>^[[7m %u %f: %m /%t \!:1 ^[[m'"
#
# This "f" binding starts a "folder" command and supplies the folder name
# as a default. You can change it by backspacing if needed.
#
bind-macro f '[line-mode]eval -m "[folder]$atarget"\n'
--
Bill Petro {decwrl,hplabs,ucbvax}!sun!Eng!rock
"UNIX for the sake of the kingdom of heaven" Matthew 19:12
Technical Details
Message-ID:
<8236@exodus.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!warp.Eng.Sun.COM!rockReferences:
<7972@exodus.Eng.Sun.COM> <7895@chorus.fr>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!warp.Eng.Sun.COM!rock From: rock@warp.Eng.Sun.COM (Bill Petro) Newsgroups: comp.mail.mush Subject: Re: Changing the default mailbox for message saving Message-ID: <8236@exodus.Eng.Sun.COM> Date: 19 Feb 91 23:45:25 GMT References: <7972@exodus.Eng.Sun.COM> <7895@chorus.fr> Sender: news@exodus.Eng.Sun.COM Lines: 31