[Bug 581645] New: mutt passes wrong input encoding to w3m
http://bugzilla.novell.com/show_bug.cgi?id=581645 http://bugzilla.novell.com/show_bug.cgi?id=581645#c0 Summary: mutt passes wrong input encoding to w3m Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: olaf@aepfle.de QAContact: qa@suse.de Found By: Outsourced Testing Blocker: --- after mailcap changes from bug #479432 : This change seems to trigger a bug, at least for mails received from google alert emails. Their header contains # Content-Type: text/html; charset=ISO-8859-1 # Content-Transfer-Encoding: quoted-printable The whole body is html: # <html><head></head><body> stuff </body></html> My locale is LANG=de_DE.UTF-8 What seems to happen is that mutt takes the body, translates the body from quoted-printable ISO-8859-1 to 8bit UTF-8 and feeds it via the text/html mailcap entry to w3m. But mutt passes -I ISO-8859-1 instead -I UTF-8 to w3m This makes the non-ASCII chars unreadable. If I copy /etc/mailcap to ~/.mailcap and change the text/html entry like this, the entries are shown correctly when opening the body with "v view-attachments": text/html; w3m -I UTF-8 -T text/html -dump %s; copiousoutput mutt (or whatever) should set the correct %{charset} -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581645 http://bugzilla.novell.com/show_bug.cgi?id=581645#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |werner@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581645 http://bugzilla.novell.com/show_bug.cgi?id=581645#c1 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |max@novell.com, | |ro@novell.com, | |werner@novell.com AssignedTo|werner@novell.com |max@novell.com --- Comment #1 from Dr. Werner Fink <werner@novell.com> 2010-02-23 09:48:12 UTC --- Beside the attachment mutt does convert anything, it simply does: 3.3.3. Command Expansion The various commands defined in the mailcap files are passed to the /bin/sh shell using the system(3) function. Before the command is passed to /bin/sh -c, it is parsed to expand various special parameters with information from Mutt. The keywords Mutt expands are: [...] %{<parameter>} Mutt will expand this to the value of the specified parameter from the Content-Type: line of the mail message. For instance, if Your mail message contains: Content-Type: text/plain; charset=iso-8859-1 then Mutt will expand %{charset} to iso-8859-1. The default metamail mailcap file uses this feature to test the charset to spawn an xterm using the right charset to view the message. [...] that is that mutt executes accordingly to the /etc/mailcap `-I ISO-8859-1' and this is *exactly* what /etc/mailcap told mutt. The only thing which is missed is the output format of the terminal its self. This should be done by w3m its self accordingly to the variable LANG. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581645 http://bugzilla.novell.com/show_bug.cgi?id=581645#c2 --- Comment #2 from Olaf Hering <olaf@aepfle.de> 2010-02-23 16:06:04 CET --- Created an attachment (id=344109) --> (http://bugzilla.novell.com/attachment.cgi?id=344109) bug581645-maildir.tar.gz example maildir -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581645 http://bugzilla.novell.com/show_bug.cgi?id=581645#c3 Reinhard Max <max@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |olaf@aepfle.de --- Comment #3 from Reinhard Max <max@novell.com> 2010-02-23 16:30:03 CET --- How do I get mutt to use /etc/mailcap at all? When I open the attached mail in a newly installed mutt, it just displays the raw HTML. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581645 http://bugzilla.novell.com/show_bug.cgi?id=581645#c4 Olaf Hering <olaf@aepfle.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|olaf@aepfle.de | --- Comment #4 from Olaf Hering <olaf@aepfle.de> 2010-02-23 16:52:22 CET --- press v to list the "attachments", then press ENTER -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=581645 https://bugzilla.novell.com/show_bug.cgi?id=581645#c5 Reinhard Max <max@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|max@novell.com |werner@novell.com --- Comment #5 from Reinhard Max <max@novell.com> 2010-11-12 18:09:57 CET --- I just re-checked this. Mutt really outputs the HTML in UTF-8 encoding, but tells w3m to interpret it as windows-1252. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=581645 https://bugzilla.novell.com/show_bug.cgi?id=581645#c6 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |UPSTREAM --- Comment #6 from Dr. Werner Fink <werner@novell.com> 2010-11-12 18:21:16 UTC --- Can not reproduce this with my mailcap entries nor with my current mutt. Beside this: Where the `-I %{charset}' is defined? Nevertheless I'll not implement if this is missed in mutt therefore report it upstream if and only if `-I %{charset}' is included in the mailcap RFC rules. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com