Re: how to use bbdb-snarf to capture addresses from point
"Roland Winkler" <[email protected]> Mon, 27 Jan 2020 08:39:35 -0600
| Newsgroups | gmane.emacs.bbdb.user |
|---|---|
| Message-ID | <[email protected]> |
On Sun Jan 26 2020 Bob Newell wrote: > bbdb-snarf seems to work anywhere. A good way is this. Put point on > the email you want to snarf and evaluate > > (bbdb-snarf (thing-at-point 'email)) thing-at-point only returns the email address itself, not the name that may go with it. Therefore, it is probably cleaner to put point and mark around the region you want to snarf. Also, if you define a command, it is probably cleaner to spell out the snarfing rule you want to use (which is 'mail for the above). To refresh my memories how snarfing works, I picked two test cases included at the end of bbdb-snarf.el. The 1st one for "Maja Musterfrau" works with rule 'eu; the 2nd one with rule 'mail. Put point and mark around them. Then M-x bbdb-snarf does the job. Maja Musterfrau Strasse 15 12345 Ort +49 12345 phon: (110) 123 456 mobile: (123) 456 789 [email protected] http://www.xxx.xx notes bla bla bla z test person <[email protected]>