Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521134 - net-mail/mailbase: mailcap should specify HTML charset
Summary: net-mail/mailbase: mailcap should specify HTML charset
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-08-26 15:53 UTC by Nick Soveiko
Modified: 2021-09-15 15:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mailcap.diff (mailcap.diff,257 bytes, text/plain)
2014-08-26 15:53 UTC, Nick Soveiko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Soveiko 2014-08-26 15:53:13 UTC
Created attachment 383746 [details]
mailcap.diff

/etc/mailcap that is installed as a part of net-mail/mailbase-1.1 specifies that mail html attachments be viewed as
text/html; /usr/bin/lynx -dump -force_html '%s'

this is missing charset definition which is usually contained not in the html file itself, but in mail headers.

proper line should read
text/html; /usr/bin/lynx -dump -force_html -assume_charset=%{charset} '%s'
Comment 1 Nick Soveiko 2014-08-26 15:54:22 UTC
source: http://dev.mutt.org/trac/wiki/MuttFaq/Charset
Comment 2 Larry the Git Cow gentoo-dev 2021-09-15 15:33:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=882f0d776b44270540a4477c0622b72f9cf261a9

commit 882f0d776b44270540a4477c0622b72f9cf261a9
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: 2021-09-15 15:24:45 +0000
Commit:     Mike Frysinger <vapier@gentoo.org>
CommitDate: 2021-09-15 15:32:44 +0000

    net-mail/mailbase: document mailcap better
    
    Also fix quoting of %s, and add %{charset} support to html.
    
    Clean up the mailcap man page to generalize and remove mention of the
    "metamail" package since this file is not specific to it.
    
    Closes: https://bugs.gentoo.org/521134
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

 net-mail/mailbase/files/mailcap-r2    | 36 ++++++++++++++++++++++
 net-mail/mailbase/files/mailcap.5     | 58 +++++++++++++++++------------------
 net-mail/mailbase/mailbase-1.7.ebuild | 46 +++++++++++++++++++++++++++
 3 files changed, 111 insertions(+), 29 deletions(-)