"mark" == Mark Warren <[EMAIL PROTECTED]> writes:
mark> Does anyone have code for bbdb that would try to extract
mark> information from peoples' signatures? Seems like this would be
mark> a real boon.
And a real fun set of regexps too, eh? Just a few comments:
1) This would probably be a bit much for an auto function, so it could
probably just be a region command instead of a .sig reader. I mean,
who really wants a few megs of postal addresses and phone numbers
they'll never use? Much more useful would be a
bbdb-get-info-in-region function or something. That way you could
just add the extra fluff for the people you want it for.
2) At a minimum, it should be able to read a bbdb record as printed
in an emacs window (i.e. finds addresses, phone numbers, net, etc.).
This would make exchanging bbdb information easy for people who
want to pass an address of a mutual friend to another bbdb user.
3) The hard part about reading this stuff out of .sigs is this kind of
thing:
-----
Joe Internet User work: (111) 555-9999
666 My Address St. #007 123-456-7890 (h)
Some Town, OZ 99999 FAX 100.200.3000
[EMAIL PROTECTED] "my favorite quote"
Pretty simple to parse visually, but a heinous set of regexps to
get all the info out of that. You have to deal with both the
rectangle problem AND the different formatting conventions. Not
fun. And we haven't even gotten out of the US yet. ;-)
it's an opinion,
Michael
[EMAIL PROTECTED]