From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46356 Path: main.gmane.org!not-for-mail From: Nevin Kapur Newsgroups: gmane.emacs.gnus.general Subject: Re: bbdb-search problem Date: Tue, 03 Sep 2002 09:19:31 -0400 Organization: Mathematical Sciences, The Johns Hopkins University Sender: owner-ding@hpc.uh.edu Message-ID: References: <87n0qza5hr.fsf@pale.loc> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031059187 6468 127.0.0.1 (3 Sep 2002 13:19:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Sep 2002 13:19:47 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17mDar-0001gA-00 for ; Tue, 03 Sep 2002 15:19:46 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17mDaz-0008Tb-00; Tue, 03 Sep 2002 08:19:53 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 03 Sep 2002 08:20:28 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id IAA25368 for ; Tue, 3 Sep 2002 08:20:16 -0500 (CDT) Original-Received: (qmail 27998 invoked by alias); 3 Sep 2002 13:19:34 -0000 Original-Received: (qmail 27993 invoked from network); 3 Sep 2002 13:19:34 -0000 Original-Received: from main.gmane.org (80.91.224.249) by gnus.org with SMTP; 3 Sep 2002 13:19:34 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17mDZ3-0001bb-00 for ; Tue, 03 Sep 2002 15:17:53 +0200 Original-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17mDZ3-0001bS-00 for ; Tue, 03 Sep 2002 15:17:53 +0200 Original-Path: not-for-mail Original-Lines: 25 Original-NNTP-Posting-Host: fermat.mts.jhu.edu Original-X-Trace: main.gmane.org 1031059073 5213 128.220.17.18 (3 Sep 2002 13:17:53 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Tue, 3 Sep 2002 13:17:53 +0000 (UTC) X-Face: #i!d%y+1tilG}1ua9z&9waMLqE>H+;pUwWFetZe]4uWiv;VE:GHLnT1\Gj]>l^(]R#}sD@E"(@?vMv,yb@`?32;i~D$6x6m*%!3gPyp-rb$}.%QpxZ!3Y+jESN5[s7SL_68Sc`Aek)A$M|h++b/2VjR.k+Tw4X+0a%:K-kcUeMZ(rs?}v\eG({5J&IPS Mail-Copies-To: never User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Informed Management, i686-pc-linux) Cancel-Lock: sha1:90W25z0Lw9cr4xpOX2UgVknYQJw= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46356 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46356 Alexander Kotelnikov writes: > I have a function, which checks if incoming mail is from someone who > is in my ~/.bbdb: [...] > (if (bbdb-search (bbdb-records) nil nil who) [...] > And I got spam mail with From: that looks like > From: "Bullseye Stock Profiles" > > and bbdb-search fails due to '[' presence in the address: [...] > Probably, addresses should be quotted to avoid troubles like this. You can use regexp-quote in your function to make sure that the email you are searching for gets quoted properly: change who to (regexp-quote who) above. -Nevin