* On Sun, Sep 20, 2009 01:39PM +0000 Tamas K Papp (tkp...@gmail.com) muttered: > I find that I am doing some repetitive stuff in my .muttrc that occurs in > multiple places (eg called by a folder hook, and also when mutt starts > up). I wonder if it would be possible to do something like > > ## pseudocode > procedure gmail-folders { > set from="tkp...@gmail.com" > set record="+GMAIL/[Gmail].Sent Mail" > set postponed="+GMAIL/[Gmail].Drafts" > } > > folder-hook +GMAIL.* 'exec gmail-folders' > > in place of > > folder-hook +GMAIL.* 'set from="tkp...@gmail.com"' > folder-hook +GMAIL.* 'set record="+GMAIL/[Gmail].Sent Mail"' > folder-hook +GMAIL.* 'set postponed="+GMAIL/[Gmail].Drafts"'
I don't see how that's different to folder-hook +GMAIL.* 'set from=...;\ set record=...;\ set postponed=...' HTH, Michael -- #if _FP_W_TYPE_SIZE < 32 #error "Here's a nickel kid. Go buy yourself a real computer." #endif -- linux/arch/sparc64/double.h PGP-Key-ID: 0xDC1A44DD Jabber: init...@amessage.de