I thought that would get some attention.  :P

  I was researching my scoring problems and I ran across a semi-recent
post about cycling the From: line from the composer, and it kinda
inspired me to set up something for myself.  I had to consult my old
Quake 3 configs to remember the logic flow for these recursive macros,
but I think I've come up with something kinda neat.  Put this wherever
you put your composer macros:

macro compose <ESC>w '<edit-from><home>(<enter><edit-from>[EMAIL PROTECTED] (John 
Buttery)<enter>:macro compose x <ESC>x<enter>' "submacro for x"
macro compose <ESC>x '<edit-from><home>(<enter><edit-from>[EMAIL PROTECTED] 
(name2)<enter>:macro compose x <ESC>y<enter>' "submacro for x"
macro compose <ESC>y '<edit-from><home>(<enter><edit-from>[EMAIL PROTECTED] 
(name3)<enter>:macro compose x <ESC>w<enter>' "submacro for x"
macro compose x <ESC>w "toggle From\: header"

  Before you load this into your muttrc, check your Composer
keybindings (the screen you get right before your message is sent) and
make sure the following "keys" aren't bound:

x
<ESC>w
<ESC>x
<ESC>y

  For any key that's already bound, you'll need to go through the above
macros and change each occurrence of that key to another one that's not
being used.
  The upshot of this macro is you press one key (the only key you
interact with as a user is x) and it will cycle the From: line through
all the signatures you've defined.  Bear in mind that if the first
macro (escape-w in this case) is set to use your normal From: line, you
won't see a result the first time you press x (because it's rewriting
the From: line to be the same thing that's already there).
  Anyway, HTH, HAND, YMMV, hopefully this will benefit someone.  As you
may notice from my sig, and this is directed to the person who asked
the original question, I have a homebrew signature randomizer (well,
technically it's a signature rotater) that you can have if you want. 
It's very homebrew though, so it may Require Some Setup(tm).

-- 
------------------------------------------------------------------------
 John Buttery

             "Mulder, please explain to me the scientific
                   significance of 'the whammy'..."

                               X-Files

                                     (Web page temporarily unavailable)
------------------------------------------------------------------------

PGP signature

Reply via email to