Re: Replying to a specific message
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, August 26 at 10:32 PM, quoth Shreevatsa R:
> On Sun, Aug 24, 2008 at 7:24 PM, Christian Ebert <blacktrash@xxxxxxx> wrote:
>> * Kyle Wheeler on Sunday, August 24, 2008 at 16:41:53 -0500
>>> function reply() {
>>> MID=$1; shift;
>> mutt -e "push '<limit>~i $MID<Enter><group-reply>'" $@
>>> }
>
> Thanks, everyone. One minor annoyance is when Message-IDs have special
> characters in them, e.g., I tried replying to an email today whose
> Message-ID had '$'s in it. In that case, the $s must be escaped, not
> to \$, but to \\$, as mutt strips off one level of \s, according to
> the manual. I currently simply replace each $ by \\$ and it works, but
> asking just in case there is a well-known answer: is there some
> general solution that mutt users use for escaping a pattern according
> to what mutt wants?
Skip the escaping, and just use quotes:
mutt -e "push '<limit>~i "$MID"<Enter><group-reply>'" $@
AFAIK quote characters aren't allowed in Message-IDs.
~Kyle
- --
I created a cron job to remind me of the Alamo.
-- Arun Rodrigues
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAki0vWoACgkQBkIOoMqOI16AwACgpNMUrv5xiv20c3HRLu4w8GK5
74EAoNB5JC2tfiijUh6lwH490uqgd2oE
=Z8ff
-----END PGP SIGNATURE-----