From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21279 invoked from network); 14 Nov 2023 23:55:13 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 14 Nov 2023 23:55:13 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1r33FN-0027yT-2K for ml@inbox.vuxu.org; Tue, 14 Nov 2023 17:55:09 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96.2) (envelope-from ) id 1r33FF-001D4Y-0u for ml@inbox.vuxu.org; Tue, 14 Nov 2023 17:55:01 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96.2) (envelope-from ) id 1r33F7-001D4P-1H for ding@lists.math.uh.edu; Tue, 14 Nov 2023 17:54:58 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1r33Er-002HsK-1o for ding@lists.math.uh.edu; Tue, 14 Nov 2023 17:54:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OP6YojUVo2ngDmmXqcmJTkxS1ZR/ueaepo3u73EyyNM=; b=aojM7ADuZ2sIvrPFvcI14Awj0z xdHdWSVbd+QZcWmupLS9zW+a6LOlpM3qBkwOGB/BQMToWUG/MibZPHWivTmkc2gs0bpoPhGx3te3Y bdKfB4p6NQn+mgoCZlnXEFpQKwGXDaJxNUcwpIUjTnoKprJBxN3TefekNNFgiC7LZhsI=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r33Ej-0001xn-RA for ding@gnus.org; Wed, 15 Nov 2023 00:54:32 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1r33Eh-0000MN-PE for ding@gnus.org; Wed, 15 Nov 2023 00:54:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Dan Christensen Subject: Re: Automatically strip text from emails Date: Tue, 14 Nov 2023 18:54:20 -0500 Message-ID: <87wmuj28nn.fsf@uwo.ca> References: <87jzqkxlwq.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:U+jTmao3yjMMTLqfPm9+j00U/OU= Mail-Copies-To: never List-ID: Precedence: bulk On Nov 14, 2023, Andreas Schwab wrote: > On Nov 14 2023, John Haman wrote: > >> How can I automatically scrub this text from all emails I receive? > > See article-strip-banner. I'm trying to strip those annoying banners that Office365 adds to incoming messages: "You don't often get mail from..." I've got it working for plain text parts, but many messages are html, and the banner is a table. Does anyone know how to strip a banner from html? Do you match against the html itself? After decoding the part, I assume? So far my attempts have failed. Dan