macro syntax: what am I doing wrong?
Hey folks,
I have this line in my .muttrc:
macro index "\Cx\Ck" "<enter-command>unset pipe_decode;unset
wait_key<enter><pipe-message>formail -x Message-Id: -x References: | sed -e
's/>/>\n/g' | sed 's/^[ \t]*//;/^$/d' >>
/home/matt/.mutt/kill-lists/messages<enter> <delete-thread> <enter-command> set
pipe_decode = yes; set wait_key = yes<enter>i"
When I run it I get the following error messages:
sh: -c: line 1: unexpected EOF while looking for matching `''
sh: -c: line 2: syntax error: unexpected end of file
I assume something is wrong with my escaping of quote characters, but
I don't seem to be able to fix the problem -- any idea what I'm doing
wrong?
I should add that when used directly from the shell, a command like:
cat Maildir/.IN_debian/cur/1074560452.20141_2.anarres\:2\, | formail -x
Message-Id: -x References: | sed -e 's/>/>\n/g' | sed 's/^[ \t]*//;/^$/d'
(which I take to be the equivalent of the above macro) works fine.
thanks as alwayas!
matt
ps: is there a guide to escaping quotes in mutt macro commands?
doesn't seem to be in the manual, though perhaps I've missed it,
thanks,
matt