On 07 Apr 2001, Jack Twilley yowled:
> One of the posters to one of my favorite newsgroups has an annoying
> approach to antispam. Here's his bbdb record:
>
> Dan Birchall
> net: [EMAIL PROTECTED], [EMAIL PROTECTED],
>[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
>[EMAIL PROTECTED], [EMAIL PROTECTED]
> creation-date: 27 Mar 2001
> timestamp: 27 Mar 2001
> newsgroups: alt.sysadmin.recovery
>
> Now, I know there's a way to set bbdb such that I don't get asked any
> more about djb@*.scream.org if I set net to [EMAIL PROTECTED] but I can't
> see how. That's not the bug, although if someone would like to
> mention how, I'd really appreciate it.
I use this:
(setq bbdb-canonicalize-net-hook
#'(lambda (addr)
(cond ((string-match "djb@[^.]*\\.scream\\.org
(concat (substring addr (match-beginning 1) (match-end 1))
(substring addr (match-beginning 2) (match-end 2))))
(t addr)))))
(with loads more things in the cond to deal with other asr regulars with
magic morphing addresses; Athanasius and Kai first among them).
(disclaimer: heavily edited and untested after editing, but something
like that should work.)
--
`I tried to get rid of it... and oh my god the dragons.' --- Zack Weinberg
on -iprefix
_______________________________________________
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/