[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add sender without mail if mail is in some ignored-list?
From: |
Pieter van Oostrum |
Subject: |
Re: add sender without mail if mail is in some ignored-list? |
Date: |
Fri, 27 Mar 2020 15:24:59 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (darwin) |
Kevin Brubeck Unhammer <address@hidden> writes:
> I tried
>
> (setq
> my-bbdb-ignore-senders (regexp-opt '("address@hidden"))
> bbdb-ignore-redundant-mails (defun my-bbdb-ignore-redundant-mails (record
> mail)
> (if (string-match-p my-bbdb-ignore-senders
> mail)
> (progn
> (message "returning t so we ignore %s
> for %s" mail record)
> t)
> 1)))
>
>
> and then when I hit `:' on a mail from github with a previously unknown
> sender, my *Messages* say
>
> returning t so we ignore address@hidden for [Some Name nil nil nil nil nil
> nil nil nil nil nil [Some Name Name, Some nil nil nil nil]]
> created Some Name’s record with address "address@hidden"
>
> and it adds the e-mail anyway. (My old value for that variable was `1'.)
>
> Should the function return something other than `t' to ignore the e-mail
> address?
bbdb-ignore-redundant-mails is only used if there is already an email address
in the record.
And, by the way, you shouldn't use the value of a defun, because its value is
undefined.
--
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
- add sender without mail if mail is in some ignored-list?, Kevin Brubeck Unhammer, 2020/03/26
- add sender without mail if mail is in some ignored-list?, Kevin Brubeck Unhammer, 2020/03/26
- Re: add sender without mail if mail is in some ignored-list?, Roland Winkler, 2020/03/27
- Re: add sender without mail if mail is in some ignored-list?, Michael Richardson, 2020/03/27
- Re: add sender without mail if mail is in some ignored-list?, Roland Winkler, 2020/03/27
- Re: add sender without mail if mail is in some ignored-list?, Greg Troxel, 2020/03/27
- Re: add sender without mail if mail is in some ignored-list?, Kevin Brubeck Unhammer, 2020/03/27
- Re: add sender without mail if mail is in some ignored-list?, Eric Abrahamsen, 2020/03/27
- Re: add sender without mail if mail is in some ignored-list?, Kevin Brubeck Unhammer, 2020/03/27
- Re: add sender without mail if mail is in some ignored-list?, Eric Abrahamsen, 2020/03/27