charset in html in external browser

2014-12-20 Thread Orm Finnendahl
Hi,

 here is a problem, I'm facing increasingly often recently: I live in
Germany and we use special non-ASCII characters called "Umlaute". In
most cases there are no problems with HTML mails as w3m converts them
pretty well. Unfortunately a lot of webshops these days use HTML Mails
which often have to get viewed with an external browser due to the
extensive use of tables and gui elements. Their deficient shop
software (or their designers) correctly specify the character encoding
in the MIME header, but fail to specify this in the HTML content,
leading to a pretty awkward screen rendering in my external browser as
it doesn't see the MIME Header.

Is there a way to persuade mutt to filter the html content of the
attachment to add the MIME Header's charset specification in the HEAD
tag (using "") in case it is missing or is there some other
solution?

--
Orm


Re: charset in html in external browser

2014-12-20 Thread Orm Finnendahl
Hi,

 just found out that there is a "Character encoding" entry in the view
tab of iceweasel, which probably is easier than going through parsing
and inserting into html on the fly.

If someone knows about a "real" solution, I'd still be interested to
hear about it, though...

--
Orm

Am Samstag, den 20. Dezember 2014 um 16:19:26 Uhr (+0100) schrieb Orm 
Finnendahl:
> Hi,
> 
>  here is a problem, I'm facing increasingly often recently: I live in
> Germany and we use special non-ASCII characters called "Umlaute". In
> most cases there are no problems with HTML mails as w3m converts them
> pretty well. Unfortunately a lot of webshops these days use HTML Mails
> which often have to get viewed with an external browser due to the
> extensive use of tables and gui elements. Their deficient shop
> software (or their designers) correctly specify the character encoding
> in the MIME header, but fail to specify this in the HTML content,
> leading to a pretty awkward screen rendering in my external browser as
> it doesn't see the MIME Header.
> 
> Is there a way to persuade mutt to filter the html content of the
> attachment to add the MIME Header's charset specification in the HEAD
> tag (using "") in case it is missing or is there some other
> solution?
> 
> --
> Orm


Re: charset in html in external browser

2014-12-20 Thread lilydjwg
On Sat, Dec 20, 2014 at 04:34:34PM +0100, Orm Finnendahl wrote:
> Hi,
> 
>  just found out that there is a "Character encoding" entry in the view
> tab of iceweasel, which probably is easier than going through parsing
> and inserting into html on the fly.
> 
> If someone knows about a "real" solution, I'd still be interested to
> hear about it, though...

Hi, latest version of viewhtmlmsg from
https://bitbucket.org/blacktrash/muttils always works for me :-)

-- 
Best regards,
lilydjwg


Re: Can Mutt detect a missing header?

2014-12-20 Thread John Long
On Fri, Dec 19, 2014 at 10:51:11AM +, Koralatov wrote:
> * John Long wrote on 2014-12-19 08:18 +:
> >>Many MTAs will add one if it's not present (in Postfix, this is
> >>determined by $always_add_missing_headers).
> >
> >I understand that but these are spammers who seem to be stupid and are
> >trying to obfuscate themselves at the same time. This little trick
> >only makes it easier since I wouldn't expect legitimate email to
> >arrive with no message-id.
> 
> Sadly that isn't always the case --- there are a couple of people with
> whom I work whose phones don't include a Message-ID header when sending
> e-mail.  They're both using some kind of Android phone, and Runbox as
> their mail provider.

Sounds like they're probably worth killfiling ;-)

In all seriousness I don't get spam from a huge number of sources so as I
get one I keep an eye out and if it happens a few times I deal with each 
offender individually the easiest way I know how, email id, message-id
etc. To this point it's manageable.

>  Using limit with Will's `!~h message-id' command
> on the mailbox I store their mail in returned only their e-mail.
> 
> As such, I'd test it on your mail archives before using it as a spam
> filter, because you might also get false-positives.

The nice thing about Mutt is the stuff still shows up in the inbox but
darkened (with my color scheme anyway).  I always have a chance to look at
it before I delete it.

/jl

-- 
ASCII ribbon campaign ( ) Powered by Lemote Fuloong
 against HTML e-mail   X  Loongson MIPS and OpenBSD
   and proprietary/ \http://www.mutt.org
 attachments /   \  Code Blue or Go Home!
 Encrypted email preferred  PGP Key 2048R/DA65BC04 


Re: Can Mutt detect a missing header?

2014-12-20 Thread Will Yardley
On Fri, Dec 19, 2014 at 08:18:50AM +, John Long wrote:
> > Many MTAs will add one if it's not present (in Postfix, this is
> > determined by $always_add_missing_headers).
> 
> I understand that but these are spammers who seem to be stupid and are
> trying to obfuscate themselves at the same time. This little trick
> only makes it easier since I wouldn't expect legitimate email to
> arrive with no message-id.

My point was, if the MTA adds a message-id, it will not be missing.

But if yours doesn't, it's obviously not a problem.

w