Simon Josefsson <[EMAIL PROTECTED]> writes:

> Ronan Waide <[EMAIL PROTECTED]> writes:
>
>> On October 30, [EMAIL PROTECTED] said:
>>> It seems as if BBDB doesn't like addresses with + in them:
>>> 
>>> (bbdb-extract-address-components "[EMAIL PROTECTED]")
>>> 
>>> Is this somehow intentional?  How can I fix it?
>>
>> What version of BBDB? What version of Emacs?
>
> Oops, sorry -- this is Emacs 21.1 and latest BBDB in CVS.  Thanks.

This fixes it, though perhaps other characters should be allowed as
well (*=!%, etc. etc.).  In fact, perhaps all non-whitespace should be
allowed there -- or at least every character that doesn't require
quoting.

--- lisp/bbdb-snarf.el  2001/08/03 20:31:09     1.29
+++ lisp/bbdb-snarf.el  2001/10/31 23:31:12
@@ -426,10 +426,10 @@
       ("\\b\\(\\([^@]+\\.[^@]+\\)@[0-9a-z._-]+\\)\\b"
        (bbdb-clean-username (match-string 2 adstring)) 1)
       ;; user@host
-      ("\\b\\(\\([0-9a-z._-]+\\)@[0-9a-z._-]+\\)\\b"
+      ("\\b\\(\\([0-9a-z._+-]+\\)@[0-9a-z._-]+\\)\\b"
        nil 1)
       ;; local address
-      ("\\b\\([0-9a-z._-]+\\)\\b"
+      ("\\b\\([0-9a-z._+-]+\\)\\b"
        nil 1)
       )
     "*List of regexps matching headers.


_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to