🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #188

Re: .mushrc && folders (was Help with auto-processing of messages?)

#188
From: Dan Heller
Date: Mon, 11 Sep 1989 17:04
29 lines
2162 bytes
In article <0576.AA0576@julie> mcr@julie.UUCP (Michael Richardson) writes:
> Dan Heller writes:
> >Use the -source arguemnt to mush when you start up:
> >% mush -source script_file
> >This file is sourced after your folder has been read in.
> 
>   Most of my customization of my .mushrc has been based around
> the advanced.mushrc file included in the tar. One thing struck me as
> quite odd --- the .mushrc file is read before the folder is. There is
> all this stuff with $first_time, etc... which seemed silly --- why
> not a command (which could be called from the init file) that
> would cause the mailbox to be read in?

Part of the initialization of mush is to "read in init file(s), load folder
specified, process commands from user-interface".  Loading a folder from
your .mushrc isn't wise because not everything has been initialized such
as tmpdir, and other variables that are important to the startup process.
If a folder has been loaded during initialization, then initialization might
change certain values that could lose changes or might do some interaction
with the user -- this isn't the place to do that stuff.

The reason $first_time is used is to demonstrate that the .mushrc can be
reused -- possibly recursively.  Many people forget that mush is more of
a "shell" than it is a Mail-clone.  The use of command line aliases,
history, and variable usage greatly enhances the usability of the product.

dan <island!argv@sun.com>
-----
My postings reflect my opinion only -- not the opinion of any company.
Technical Details
Message-ID: <124429@sun.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!apple!sun-barr!newstop!sun!turnpike!argv
References: <16675@pasteur.Berkeley.EDU> <10569@dasys1.UUCP> <0576.AA0576@julie>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!apple!sun-barr!newstop!sun!turnpike!argv
From: argv%turnpike@Sun.COM (Dan Heller)
Newsgroups: comp.mail.mush
Subject: Re: .mushrc && folders (was Help with auto-processing of messages?)
Keywords: auto-executing script files?
Message-ID: <124429@sun.Eng.Sun.COM>
Date: 11 Sep 89 17:04:56 GMT
References: <16675@pasteur.Berkeley.EDU> <10569@dasys1.UUCP> <0576.AA0576@julie>
Sender: news@sun.Eng.Sun.COM
Reply-To: argv@sun.UUCP (Dan Heller)
Organization: Sun Microsystems, Mountain View
Lines: 29