From owner-freebsd-questions@freebsd.org Fri Nov 1 10:02:06 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 6EDB21AF911 for ; Fri, 1 Nov 2019 10:02:06 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (enterprise.ximalas.info [IPv6:2001:700:1100:1::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ximalas.info", Issuer "Hostmaster ximalas.info" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 474HmD6ts2z4295 for ; Fri, 1 Nov 2019 10:02:04 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (Ximalas@localhost [127.0.0.1]) by enterprise.ximalas.info (8.15.2/8.15.2) with ESMTPS id xA1A1v1J095878 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Fri, 1 Nov 2019 11:01:57 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ximalas.info; s=default; t=1572602517; bh=uRh1Uf6Qo74195M81RbByHKj5ugcQ38lPxDpf8/ei9A=; h=Date:From:To:Subject:In-Reply-To:References; b=mhIn/Hx5/vPpipyvd3KG9jeMpT4Op/HkXeReEkeMSX9ddbAuur231lXJyKthXs5kR f8jwswd76qJtXi3gk6ZxsE3C3nKISto++C73ZOjrWI6loBo4SAuASBMovv3KVVBSXd /uP+5JJcWy8XcPo+x5fNV+MLC4fm1E+ap47eOUFcfeCnR7Jauo+mRwSZyRQf+8wK+T ZitWrx3Bt2OW0CkxvF1bP8xnkpwQb/2evcJeVVde5R/T5NKRsFp3tPQ4O520TGIgnh l+NVWIBn2oFLpJcI4OPcwEoXoa4Y2PTiMG5pIwktOpl56WMg6rBZknRbtpDb2Fi0U2 pDr6MRK8fQnzw== Received: from localhost (trond@localhost) by enterprise.ximalas.info (8.15.2/8.15.2/Submit) with ESMTP id xA1A1vCc095875 for ; Fri, 1 Nov 2019 11:01:57 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) X-Authentication-Warning: enterprise.ximalas.info: trond owned process doing -bs Date: Fri, 1 Nov 2019 11:01:56 +0100 (CET) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Sender: Trond.Endrestol@ximalas.info To: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul In-Reply-To: <20191101104917.e49c518e.freebsd@edvax.de> Message-ID: 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> User-Agent: Alpine 2.21.99999 (BSF 352 2019-06-22) OpenPGP: url=http://ximalas.info/about/tronds-openpgp-public-key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on enterprise.ximalas.info X-Rspamd-Queue-Id: 474HmD6ts2z4295 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ximalas.info header.s=default header.b=mhIn/Hx5; dmarc=pass (policy=none) header.from=ximalas.info; spf=pass (mx1.freebsd.org: domain of trond.endrestol@ximalas.info designates 2001:700:1100:1::8 as permitted sender) smtp.mailfrom=trond.endrestol@ximalas.info X-Spamd-Result: default: False [-5.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[ximalas.info:s=default]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; HAS_XAW(0.00)[]; DKIM_TRACE(0.00)[ximalas.info:+]; DMARC_POLICY_ALLOW(-0.50)[ximalas.info,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:224, ipnet:2001:700::/32, country:NO]; IP_SCORE(-2.00)[ip: (-8.12), ipnet: 2001:700::/32(-1.21), asn: 224(-0.65), country: NO(-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:02:06 -0000 On Fri, 1 Nov 2019 10:49+0100, Polytropon wrote: > 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. :-) I use Alpine for email, and my ~/.mimes.types contains text/plain adb ads c cc conf cpp cs d dat diff erl fdi fragment go h hh hpp hrl local log patch rb rc rs sh sql txt to ensure the attachments are marked as plain text when they are in fact such beasts. -- Trond.