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

Re: Replying to a specific message



On Sun, Aug 24, 2008 at 4:06 PM, Michael Kjorling <michael@xxxxxxxxxxxx> wrote:
> On 24 Aug 2008 15:25 -0400, by shreevatsa.public@xxxxxxxxx (Shreevatsa R):
>> Is it possible to reply to a specific message (specified by its
>> Message-ID, say) from the command line?
>>
>> I was told on the #mutt IRC channel that it is possible to write such
>> a script using mutt -e ..., and that someone on this mailing list
>> might know how.
>
> The obvious solution would be to open the correct mailbox, set a limit,
> the editor and any reply-related settings (if needed), then invoke the
> reply command. Have you looked into that?

Thanks, that works:

function reply() {
    MID=$1; shift;
    mutt -e "push 'l ~h $MID<Enter>g'" $@
}

Excellent, now I can reply through mutt even when I'm reading email
through Gmail :)

Thanks,
Shreevatsa