[BBDB] ChangeLog 2022-03-26 (increase version number, snarf vCards)
Roland Winkler <[email protected]> Sat, 26 Mar 2022 23:45:29 -0500
| Newsgroups | gmane.emacs.bbdb.user |
|---|---|
| Message-ID | <[email protected]> |
I have pushed several changes for BBDB, see the ChangeLog below. - BBDB now uses user-error where appropriate - For Gnus bbdb-message-header now considers the parent summary buffer (Bug#54423). - I have increased the version number to 3.2.2 so that recent changes including the above become visible in GNU Elpa - I have added yet experimental code for snarfing vCards. Recently I had to import the content of several vCards into BBDB. I could spent my time either by doing this "by hand" or trying to automate this. So I did the latter. Yet my real-world examples for testing the code were limited. It is my understanding that RFC 6350 is one thing and implementations of the vCard standard by other applications is a separate story. So I tried to make the snarfing code as fault-tolerant and flexible as possible (based on the limited set of vCards with which I could test the code). Currently the code snarfs the n, fn, adr, nickname, email, tel, org, uid, url, and note properties, and it considers the pref and type parameters. The parsing of vCards happens in bbdb-snarf-vcard-property. It can still be improved. The remaining functions then use it to populate the BBDB record. The modular design of snarfing rules should help with customizing and extending this. The user commands for this are bbdb-snarf-vcard and bbdb-snarf-vcard-buffer. Also, I added a new function bbdb-snarf-sanity-check to all snarfing rules. Probably, it can likewise still be improved. Suggestions and comments welcome! 2022-03-26 Roland Winkler <[email protected]> Support snarfing vCards. * lisp/bbdb.el (bbdb-utilities-vcard): New custom group. * lisp/bbdb-snarf.el (bbdb-snarf-rule-alist): New rule vcard. (bbdb-snarf-vcard, bbdb-snarf-ignore-mail-re): New user variables. (bbdb-snarf-sanity-check, bbdb-snarf-vcard-property) (bbdb-snarf-vcard-name, bbdb-snarf-vcard-adr) (bbdb-snarf-vcard-nickname, bbdb-snarf-vcard-email) (bbdb-snarf-vcard-tel, bbdb-snarf-vcard-org, bbdb-snarf-vcard-uid) (bbdb-snarf-vcard-url, bbdb-snarf-vcard-note): New functions. (bbdb-snarf-vcard, bbdb-snarf-vcard-buffer): New commands. (bbdb-snarf-paragraph, bbdb-snarf-yank, bbdb-snarf): New optional arg no-display. (bbdb-snarf): Discard record if it does not have a name or mail. (bbdb-snarf-mail-address): Make it more robust. 2022-03-26 Roland Winkler <[email protected]> * lisp/bbdb.el, configure.ac: Increase version number to 3.2.2. 2022-03-26 Sam Steingold <[email protected]> * lisp/bbdb-mua.el (bbdb-message-header): For Gnus consider the parent summary buffer. (Bug#54423) 2022-03-26 Roland Winkler <[email protected]> * lisp/bbdb.el, lisp/bbdb-site.el.in, lisp/bbdb-com.el, lisp/bbdb-mua.el, lisp/bbdb-tex.el: Use user-error where appropriate.