Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2019 11:20:30 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Trond =?ISO-8859-1?Q?Endrest=F8l?= <trond.endrestol@ximalas.info>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: grep for ascii nul
Message-ID:  <20191101112030.4e4f09f3.freebsd@edvax.de>
In-Reply-To: <alpine.BSF.2.21.99999.352.1911011057490.19545@enterprise.ximalas.info>
References:  <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> <20191101104917.e49c518e.freebsd@edvax.de> <alpine.BSF.2.21.99999.352.1911011057490.19545@enterprise.ximalas.info>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 1 Nov 2019 11:01:56 +0100 (CET), Trond Endrest=F8l wrote:
> On Fri, 1 Nov 2019 10:49+0100, Polytropon wrote:
>=20
> > At least the list does _strip_ attachments which aren't
> > of type "text/ascii"; maybe with a re-declaration of
> > the attachment type it would have come through. However,
> > inlining a small C program is (just like with log files,
> > program outputs or "ASCII screenshots") fully accaptable
> > and welcome. :-)
>=20
> I use Alpine for email, and my ~/.mimes.types contains
>=20
> text/plain	adb ads c cc conf cpp cs d dat diff erl fd
>i fragment go h hh hpp hrl local log patch rb rc rs sh sql txt

Yes, "text/plain" is correct of course. :-)



> to ensure the attachments are marked as plain text when they are in=20
> fact such beasts.

I don't know if the declaration "text/x-csrc" is processed
by the mailing list as regular text attachment, but as
you said, "text/plain" should work. Stripping non-text
attachments (especially binary ones, like images) has
been common practice on this list for years, probably
for decades now.

Inlining source code could have another aspect, and depending
on the language (!) of the inlined program, it _might_ or
_might not_ affect what the program does: I'm talking about
automated linebreaks inserted by the MUA (max. column width).




--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191101112030.4e4f09f3.freebsd>