Message-hook problem
- To: mutt-users@xxxxxxxx
- Subject: Message-hook problem
- From: Breen Mullins <breen.mullins@xxxxxxxxx>
- Date: Sun, 19 Aug 2007 12:41:46 -0700
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:subject:message-id:mail-followup-to:mime-version:content-type:content-disposition:user-agent; b=eboys3WzeyEAQCHmrTNfUDKz0lDKhCdFU4cBud4K0ros8Uj511dLFjJE7rxWywrRPA05Z4tJhIGuFUFGX03gpbgXaJFIyGrkoKUKRUIiwsACZYx+aWCeG3w2D9cDwiBk689rHNBKZ2phYU2Wqz/N8DgchLny4vV0VTXr1D0JPnM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:mail-followup-to:mime-version:content-type:content-disposition:user-agent; b=O306KtwhH/1rruMzXNCvdc8aVhSN7yKa5NsdWytmjieoM75eaXv6rQYUn8oerB+EbbTgtqxXQcSNraAcxdv0LsFqFics9yuAYDAVRROeKVkmFIJGVmEcuN4vCHfzcJxH5HmnnKpLTH8mRfXsgyt8MtDxbMQYiB+oA+95Pi8XbwU=
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-06-09)
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 \"her@ddress\"" \ "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