On Saturday, 13 September 2008, 10:57 (UTC-0700), [EMAIL PROTECTED] wrote: > Tom [EMAIL PROTECTED] wrote: > > On Thu, Sep 11, 2008 at 04:14:26PM -0700, [EMAIL PROTECTED] wrote: > > > Sometimes I receive an email that is sent to a group of people. I want > > > to alias all such addresses in the To: list. What is the easiest way to > > > do it. > > > > I do it like this: in my alias file : > > alias name-of-alias <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>,<[EMAIL > > PROTECTED]> > > That would involve lot of editing if there are lots of names in the > list. I can use my editor tricks to reduce the amount of editing, but I > am looking for a mutt feature that can help me create such an alias > easily!
I wouldn't know a mutt feature, but from my latest dabblings with blacklisting subjects etc, personally I'd do it using a macro, formail and sed/awk. The macro would pipe the message to formail, which would extract the To: headers, then pipe that through sed or awk to give a meaningful mutt alias line and append that to your mutt aliases file. Possibly the macro could as a last step open your mutt aliases file in an editor, so that you could make finegrained corrections if necessary. I'm not good enough with formail and sed/awk to pull a line out of my sleeve on the spot that would do all this, and I'm a bit busy right now, but if you want to adopt this solution and need specific help let me know. m.