From: Emanuel Berg <incal@dataswamp.org>
To: ding@gnus.org
Subject: Re: Automatically strip text from emails
Date: Wed, 15 Nov 2023 21:48:40 +0100 [thread overview]
Message-ID: <8734x6eo9j.fsf@dataswamp.org> (raw)
In-Reply-To: <87jzqkxlwq.fsf@igel.home>
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
next prev parent reply other threads:[~2023-11-15 20:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-14 11:02 John Haman
2023-11-14 17:52 ` Andreas Schwab
2023-11-14 23:54 ` Dan Christensen
2023-11-15 20:48 ` Emanuel Berg [this message]
2023-12-19 5:32 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734x6eo9j.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).