Re: reread configuration file

2002-09-26 Thread PeterKorman

On Wed, Sep 25, 2002 at 03:01:06PM -0700, Burton Samograd wrote:
 On Wed, Sep 25, 2002 at 11:36:38PM +0200, Hans Ginzel wrote:
 
  Something like:
  :function reread_cfg_files
  :   reset all options to compile time
  :   source startup files as by usual start
  :endfunction
  --
 
 At the top of your .muttrc
 
 unset *
 unhook *
 
 should do the trick.
 
 burton

unset * causes

Error in /home/pkorman/.muttrc, line 1: *: unknown variable
source: errors in /home/pkorman/.muttrc
Press any key to continue...


Mutt manual section 3.23

  The reset command resets all given variables to the compile time
  defaults (hopefully mentioned in this manual). If you use the command
  set and prefix the variable with ``'' this has the same behavior as
  the reset command.

  With the reset command there exists the special variable ``all'',
  which allows you to reset all variables to their system defaults.



reset all
unhook *

will work. I dont know if it clears folder hooks though.
furthermore, if you rely on settings in /usr/local/etc/Muttrc
you better move everything into your local setting file.

-- 

[]+ Wisdom is vindicated by all her children.  +[]
[]  []
[]+ GnuPG ECBA EA08 C3C1 251E 5FB5  D196 F8C8 F8B7 AB60 234D +[]




msg31277/pgp0.pgp
Description: PGP signature


Re: reread configuration file

2002-09-26 Thread PeterKorman

On Thu, Sep 26, 2002 at 10:28:56AM -0400, PeterKorman wrote:
 On Wed, Sep 25, 2002 at 03:01:06PM -0700, Burton Samograd wrote:
  On Wed, Sep 25, 2002 at 11:36:38PM +0200, Hans Ginzel wrote:
  
   Something like:
 :function reread_cfg_files
 :   reset all options to compile time
 :   source startup files as by usual start
 :endfunction
   --
  
  At the top of your .muttrc
  
  unset *
  unhook *
  
  should do the trick.
  
  burton
 
 unset * causes
 
 Error in /home/pkorman/.muttrc, line 1: *: unknown variable
 source: errors in /home/pkorman/.muttrc
 Press any key to continue...
 
 
 Mutt manual section 3.23
 
   The reset command resets all given variables to the compile time
   defaults (hopefully mentioned in this manual). If you use the command
   set and prefix the variable with ``'' this has the same behavior as
   the reset command.
 
   With the reset command there exists the special variable ``all'',
   which allows you to reset all variables to their system defaults.
 
 
 
 reset all
 unhook *
 
 will work. I dont know if it clears folder hooks though.
 furthermore, if you rely on settings in /usr/local/etc/Muttrc
 you better move everything into your local setting file.

I'm pretty sure it clears folder hooks.
if your first lines of .muttrc are:

reset all
unhook *
source /usr/local/etc/Muttrc

Your probably in good shape as long as your Muttrc is on this path.

JPK
-- 

[]+ Wisdom is vindicated by all her children.  +[]
[]  []
[]+ GnuPG ECBA EA08 C3C1 251E 5FB5  D196 F8C8 F8B7 AB60 234D +[]




reread configuration file

2002-09-25 Thread Hans Ginzel

Hello,

   can mutt reread hiis configuration file ~/.muttrc? Has mutt command
source like VIM?

Regards
--
Hans Ginzel

http://interviews.slashdot.org/article.pl?sid=02/09/06/1343222
http://www.infoworld.com/articles/op/xml/02/08/26/020826opsource.xml



Re: reread configuration file

2002-09-25 Thread Ricardo SIGNES

On Wed, Sep 25, 2002 at 10:31:26PM +0200, Hans Ginzel wrote:
 
can mutt reread hiis configuration file ~/.muttrc? Has mutt command
 source like VIM?

It's so similar, it's got the same name.

Please look at the man page for muttrc.  You'll find an entry for the command
source.  

source filename
The given file will be evaluated as a configuration file.

-- 
rjbs



msg31229/pgp0.pgp
Description: PGP signature


Re: reread configuration file

2002-09-25 Thread Christian Schneider

Thus spake Hans Ginzel ([EMAIL PROTECTED]):
 can mutt reread hiis configuration file ~/.muttrc? Has mutt command
 source like VIM?

ΒΈ
| :source /path/to/.muttrc
`

-- 
The student in question is performing minimally for his peer group and
is an emerging underachiever.




Re: reread configuration file

2002-09-25 Thread Hans Ginzel


On Wed, Sep 25, 2002 at 04:39:41PM -0400, Ricardo SIGNES wrote:

 can mutt reread hiis configuration file ~/.muttrc?

  Has mutt command source like VIM?

   source filename
   The given file will be evaluated as a configuration file.

But how to get rid of lines that are no more in new config file?
Something like:
:function reread_cfg_files
:   reset all options to compile time
:   source startup files as by usual start
:endfunction
--
Hans Ginzel

PS: My wish

:! should be a synonymum for !

because I used to use it in VIM.



Re: reread configuration file

2002-09-25 Thread Burton Samograd

On Wed, Sep 25, 2002 at 11:36:38PM +0200, Hans Ginzel wrote:

 Something like:
   :function reread_cfg_files
   :   reset all options to compile time
   :   source startup files as by usual start
   :endfunction
 --

At the top of your .muttrc

unset *
unhook *

should do the trick.

burton


msg31235/pgp0.pgp
Description: PGP signature


Re: reread configuration file

2002-09-25 Thread Charles Cazabon

Hans Ginzel [EMAIL PROTECTED] wrote:
 
   Has mutt command source like VIM?

[yes]

 But how to get rid of lines that are no more in new config file?

Quit and restart mutt.

Charles
-- 
---
Charles Cazabon [EMAIL PROTECTED]
GPL'ed software available at: http://www.qcc.ca/~charlesc/software/
---