>>>>> "Ian" == Ian Flanigan <[EMAIL PROTECTED]> writes:

Ian> When I want it to return:
Ian> ("Ian Flanigan" "xstacy::foo")

How about ("Ian Flanigan" "[EMAIL PROTECTED]") ?

  (setq
   bbdb-canonicalize-net-hook
   '(lambda (addr)
      (cond ((string-match "\\`\\([^:.]+\\)::\\([^@]+\\)" addr)
             (concat (substring addr (match-beginning 2) (match-end 2))
                     "@"
                     (substring addr (match-beginning 1) (match-end 1))
                     ".enet.dec.com"))
            (t addr)))
   )

Works when picking up addresses from messages.  In bbdb v1.49
bbdb-create does not call bbdb-canonicalize-address, perhaps it
does in v1.50.  If it does not, then addresses entered with
bbdb-create will not be canonicalized.
--
 ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
( Kimmo Suominen                         "That's what I think" )
( Trans-Atlantic Communications              [EMAIL PROTECTED] )
 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Reply via email to