unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
From: Eric Wong <e@80x24.org>
To: Florian Weimer <fw@deneb.enyo.de>
Cc: meta@public-inbox.org
Subject: Re: Archiving HTML mail
Date: Tue, 12 Nov 2019 21:53:07 +0000	[thread overview]
Message-ID: <20191112215307.GA20307@dcvr> (raw)
In-Reply-To: <874kz8eqwf.fsf@mid.deneb.enyo.de>

Florian Weimer <fw@deneb.enyo.de> wrote:
> * Eric Wong:
> > text/html is currently shown inline as raw HTML since
> > https://public-inbox.org/meta/20191031031220.21048-2-e@80x24.org/
> > But maybe the HTML part shouldn't be shown inline at all in
> > multiparts parents.
> 
> Yeah, there's some concern that this could be used to host phishing
> forms.  I've seen this occasionally in the Debian mailing list archive
> (where anti-phishing companies tend to report them several years later
> to security@).

Those should've been caught by spam filters, first; but if they
weren't, public-inbox-learn can be used to remove them from the
WWW/NNTP viewers (w/o breaking git history) and train SpamAssassin.

> My feeling is that it would need some post-processing, maybe stripping
> image links and forms (and Javascript of course).  Plus the separate
> domain thing for additional XSS protection (like bugzilla.mozilla.org
> does, IIRC).  But presumably you could put the entire list archive
> under its own domain to avoid having to write code for that.

That would mess up DKIM verifications if somebody is trying to
verify archives.

Having separate domains seem to work alright depending on how
nginx/varnish (or similar) is setup, and I host
http://ou63pmih66umazou.onion/ and several other non-onion
domains on the same -httpd process as https://public-inbox.org/
(and I have some plans for better multi-domain support).

> > FWIW, I suggest keeping your lists text-only so contributors can
> > flow between different projects more easily and not get blocked
> > by spam filters.  It's significantly more expensive to do spam
> > processing on HTML mail and less accurate IME.  Better to teach
> > contributors to optimize for low-end computers and limited
> > bandwidth situations :)
> 
> While this is true, it is also a bad experience for those who send
> their first email (which may be a huge step for some, I completely
> lack perspective there), and then it gets rejected with an obscure
> message.  It's also very confusing if Cc:s are involved and everyone
> but the mailing list gets the message.

The MTA could be made to show a better message.  At least
PublicInbox::Filter::Base tries to with:

	*** We only accept plain-text mail, No HTML ***

At least postfix shows puts the above in the rejection message.

> In some clients, it's now impossible to switch of HTML mail (but I
> don't know which variant, whether that's HTML-only, or whether there's
> still a client-generated text/plain alternative).

AFAIK, the Android Gmail client was one.  But I'm really against
corporations dictating formats and complexity like that.  Free
software hackers should keep fighting for simple, inexpensive
formats and pressure Google et. al into supporting them.

> > Also, public-inbox-watch is designed to work in parallel with
> > existing mailing lists.  I archive several lists (including
> > libc-alpha@sourceware and git@vger) this way with no special
> > permissions or access aside from being a regular subscriber.
> 
> I feel we need to change libc-alpha to accept text/html email.

Given there's some cross-posting to vger lists which reject HTML,
that could do more harm than good.

My goal is not just to get hackers into using plain-text mail,
but having them influence non-hackers into using plain-text
mail, too.

  reply	other threads:[~2019-11-12 21:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-12 13:37 Archiving HTML mail Florian Weimer
2019-11-12 21:09 ` Eric Wong
2019-11-12 21:17   ` Florian Weimer
2019-11-12 21:53     ` Eric Wong [this message]
2019-11-12 22:07       ` Florian Weimer
2019-11-12 22:29         ` Eric Wong
2019-11-12 22:44           ` Konstantin Ryabitsev
2019-11-12 23:10             ` Eric Wong
2019-11-13 21:38               ` Konstantin Ryabitsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191112215307.GA20307@dcvr \
    --to=e@80x24.org \
    --cc=fw@deneb.enyo.de \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).