On Friday, July 25, 2003 at 17:08:41, Robert P. Goldman wrote:
> >>>>> "RF" == Robert Fenk <[EMAIL PROTECTED]> writes:
> 
>     RF> On Tuesday, July 15, 2003 at 15:00:51, Robert P. Goldman
>     RF> wrote:
>     >>  The following defun in bbdb-sc.el seems buggy:
>     >> 
>     >> (defun bbdb/sc-consult-attr (from) "Extract citing
>     >> information from BBDB using sc-consult where FROM is user
>     >> e-mail address to look for in BBDB."  ;; if logged in user
>     >> sent this, use recipients.  (let ((check (if (or (null from)
>     >> (string-match (bbdb-user-mail-names) from)) (car (cdr
>     >> (mail-extract-address-components (or (sc-mail-field "to")
>     >> from)))) from))) (if from (let ((record (bbdb-search-simple
>     >> nil from))) (and record (bbdb-record-getprop record
>     >> bbdb/sc-attribution-field))))))
>     >> 
>     >> 
>     >> If you look at the call to STRING-MATCH, the first argument
>     >> is supposed to be a REGEXP and the second a STRING.  But
>     >> (bbdb-user-mail-names) returns a LIST.
> 
>     RF> IMHO it should not return a list unless you had been setting
>     RF> `bbdb-user-mail-names' to an list.
> 
>     RF> Thus I rejected making this change unless convinced of the
>     RF> opposite ...
> 
> You are right.  I am wrong.  I will fix and follow-up with a
> suggestion, if you don't mind.  I'd like to see bbdb-user-mail-names
> variable able to take a list of addresses and have
> (bbdb-user-mail-names) function automagically turn them into
> disjunctive regexp, which seems significantly more
> user-friendly. Does that seem acceptable?  Also, perhaps the
> function should puke if the variable's value isn't a string?

Either use

(setq bbdb-user-mail-names (regexp-opt '("bla" "cla")))

or learn how to write REGEXPs

Robert in bad mood today ...



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to