unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* blacklisting a contact
@ 2022-07-01  8:05 erik colson
  2022-07-01  8:31 ` inwit
  0 siblings, 1 reply; 2+ messages in thread
From: erik colson @ 2022-07-01  8:05 UTC (permalink / raw)
  To: notmuch

Hello,

I use notmuch from emacs and would like to automatically add senders
email adresses to a blacklist list.  The wanted behavior is as follows:

- I add a tag 'blacklist' to mails received from undesired persons
- somehow add mail senders in 'blacklist' tagged mails to a database of
  undesirable contacts
- notmuch automatically tags emails received from those senders as
  'undesirable'

Has somebody already coded something like this?

best
-- 
erik colson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: blacklisting a contact
  2022-07-01  8:05 blacklisting a contact erik colson
@ 2022-07-01  8:31 ` inwit
  0 siblings, 0 replies; 2+ messages in thread
From: inwit @ 2022-07-01  8:31 UTC (permalink / raw)
  To: erik colson, notmuch

On Fri Jul 1, 2022 at 10:05 AM CEST, erik colson wrote:
> Has somebody already coded something like this?
Indeed: https://gist.github.com/vedang/26a94c459c46e45bc3a9ec935457c80f

See the comments for some improvements over the original.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-01  8:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-01  8:05 blacklisting a contact erik colson
2022-07-01  8:31 ` inwit

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).