From owner-freebsd-questions@freebsd.org Fri Nov 1 10:20:48 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F3761AFE59 for ; Fri, 1 Nov 2019 10:20:48 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474J9q1XbTz42kT for ; Fri, 1 Nov 2019 10:20:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.12.38.115]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPA (Nemesis) id 1My3Ad-1i2Egu3hkd-00zZbn; Fri, 01 Nov 2019 11:20:36 +0100 Date: Fri, 1 Nov 2019 11:20:30 +0100 From: Polytropon To: Trond =?ISO-8859-1?Q?Endrest=F8l?= Cc: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-Id: <20191101112030.4e4f09f3.freebsd@edvax.de> In-Reply-To: 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> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:pG2J2G7JEY4lWxlPVVme+FNtjVvc95DFXyh5bmdC/irK09wZAzs sT0CZi2kMO8CWuTkaIXIkjnas+ovQP0F5z1wyc3iTiw1O7aCSFDpz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GONCwTntIloXNRmts3NetFrmIn1tSGx/LQm5hs= X-Rspamd-Queue-Id: 474J9q1XbTz42kT X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.130) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.99 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[115.38.12.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.94)[0.938,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.994,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[130.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.66)[ip: (2.38), ipnet: 212.227.0.0/16(-1.34), asn: 8560(2.29), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 10:20:48 -0000 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, ...