I've wrestled with this one for a few days and I'm not getting anywhere.
It should be simple (and probably is!) but I'm not seeing it.
I've got a correspondent whose version of Entourage is sending oddly
broken messages. When she types an apostrophe, MS converts it to a
curly one. That's correctly rendered in the text/html version of
the message. But in the text/plain portion, the same character is
coded as a 0xb9 - a superscript 1. And that's what mutt displays.
Not the end of the world - I can fix it easily enough in a reply with a
vim mapping. But it's annoying and I'd like to fix the display.
I tried this message-hook:
message-hook "~f \"[EMAIL PROTECTED]"" \ "set display_filter='tr \\\\271
\\\\047'"
The hook starts off out right - it fires on her emails and attempts the
replacement at the right spot. But the replacement isn't what I'm
looking for:
"
Who\302's coming? Are you bringing a friend?
"
I can't figure out where the \302 is coming from. I'm on a Mac (10.3.9);
Mutt 1.5.16 (2007-06-09)
System: Darwin 7.9.0 (Power Macintosh)
ncurses: ncurses 5.2.20020209 (compiled with 5.2)
libiconv: 1.9
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE
+USE_FCNTL -USE_FLOCK -USE_INODESORT
-USE_POP +USE_IMAP -USE_SMTP -USE_GSS +USE_SSL_OPENSSL -USE_SSL_GNUTLS -USE_SASL +HAVE_GETADDRINFO
-HAVE_REGCOMP +USE_GNU_REGEX
+HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET
+HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM
+CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME -CRYPT_BACKEND_GPGME
-EXACT_ADDRESS -SUN_ATTACHMENT
+ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR
+HAVE_ICONV -ICONV_NONTRANS -HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/sw/share/mutt"
SYSCONFDIR="/sw/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
charset-hook ^unknown-8bit$ cp1252
charset-hook ^x-unknown$ cp1252
charset-hook ^x-user-defined$ cp1252
charset-hook ^us-ascii$ cp1252
charset-hook ^iso-8859-1$ cp1252
charset-hook ^iso-8859-8-i$ iso-8859-8
charset-hook ^gb2312$ gb18030
set assumed_charset="cp1252"
tr (GNU coreutils) 5.96
Can somebody tell me what I'm missing?
Thanks,
Breen
--
Breen Mullins
Menlo Park, California