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=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 13661 invoked from network); 15 Nov 2023 20:49:18 -0000 Received: from mx2.math.uh.edu (129.7.128.33) by inbox.vuxu.org with ESMTPUTF8; 15 Nov 2023 20:49:18 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1r3Mou-002yxF-1T for ml@inbox.vuxu.org; Wed, 15 Nov 2023 14:49:12 -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 1r3Mot-001Hsw-3D for ml@inbox.vuxu.org; Wed, 15 Nov 2023 14:49:08 -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 1r3Mos-001Hsq-1z for ding@lists.math.uh.edu; Wed, 15 Nov 2023 14:49:06 -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 1r3Moo-002ywo-1j for ding@lists.math.uh.edu; Wed, 15 Nov 2023 14:49:06 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc: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=J3Lj5ZUWawFD5xleEDmIe0go/eJM+VWz11X2Q/gaJkM=; b=tsdad8O/+HKRULFn2UvXW35Ktd 0IWEw3dx9MvKfHnMFhYB6FwAhLxLIMUNh50j8zETVfzGpslcf7oygt2yteKt38Ie2Vc8V74OAHK9E ERtC4dYUVyE+TG1+VcZsGq8hw0yYFBoXWx3dpKlIg9aF9wF9Fc8yC1TNR+C0oOHow97Y=; 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 1r3Moh-0005GH-Q8 for ding@gnus.org; Wed, 15 Nov 2023 21:48:58 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1r3Moh-00073P-Ff for ding@gnus.org; Wed, 15 Nov 2023 21:48:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Emanuel Berg Subject: Re: Automatically strip text from emails Date: Wed, 15 Nov 2023 21:48:40 +0100 Message-ID: <8734x6eo9j.fsf@dataswamp.org> References: <87jzqkxlwq.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:cD95iV5B411tq7aH8gr9rMCEtB4= Mail-Copies-To: never List-ID: Precedence: bulk Andreas Schwab wrote: >> How can I automatically scrub this text from all emails >> I receive? > > See article-strip-banner. Please share if you got it to work. I have the below function to do additional article washing but the `article-strip-banner' method seems better in this case since it only applies for an individual user. Of the below stuff I don't know if any of it can be removed using options instead, probably that would be preferable if so. (defun gnus-article-wash-more () (article-translate-strings '( ("#+begin_quote\n" "") ("#+end_quote\n" "") ("#+begin_src emacs-lisp\n" "") ("#+begin_src r\n" "") ("#+end_src\n" "") ("--8<---------------cut" "") ("here---------------end--------------->8---" "") ("here---------------start------------->8---" "") ("Sendt fra min iPad" "") ("Sent using Zoho Mail" "") ("Skickades från E-post för Windows 10" "") ("Skickat från Yahoo Mail för iPhone" "") ("naïve" "naive") ("ʼ" "'") ("⇒" "→") ("➜" "→") ("⟦" "[") ("⟧" "]") ("> > > >" ">>>>") ("> > >" ">>>") ("> >" ">>") ("colour" "color") ("⛔" "!") (" " " ") ("・" "·") ("I’m" "I'm") ("doesn’t" "doesn't") )) (gnus-article-strip-multiple-blank-lines) ) -- underground experts united https://dataswamp.org/~incal