<<< Date Index >>>     <<< Thread Index >>>

Re: grabbing email address from mail message



David Yitzchak Cohen said:
> On Sun, Jan 18, 2004 at 04:15:01PM EST, Eric Smith wrote:
> > David Yitzchak Cohen said:
> > > On Thu, Jan 15, 2004 at 05:36:19PM EST, Eric Smith wrote:
> 
> > > > I cannot alias all the email addresses I need, so 90% of mails I
> > > > send are by going to the folder of a recipient and replying
> > > > and laboriously deleting the body and In-Reply-To: 
> > > > 
> > > > Someone has a better way?  
> > > 
> > > Another option is to alias the guy with nick "temp," and then compose a 
> > > mail to "temp."  Simply alias it to "temp" every time, so it won't 
> > > clutter up your address book.
> > > 
> > 
> > Any idea how I could automate this in a macro?
> > So when pointing to a mail in the index, I can hit a single key and 
> > mutt will mail the sender address and wait for a prompt from me.
> > 
> > Thanks for any code!
> 
> Easy:
> 
> macro index blah 'a\n\n\nmtemp\n'

I did not follow the above but just fiddled with a similar incantation viz.

macro index w "<create-alias><backspace><backspace><backspace><backspace>\
<backspace><backspace><backspace><backspace><backspace><backspace><backspace>\
<backspace>temp<enter><enter><enter><enter><mail>temp<enter>"

its ugly - I tried to <c-u> instead of n x <backspace> but no go.

Idea is to alias the Sender (using his own descriptive part) as `temp' and then 
to mail `temp'.

It occasionally works but it will never work when you try to do it twice as it 
will invoke:
"You already have an alias defined with that name!"

Anyone got something that will work each time?

I give up ...

-- 
Eric Smith