gmail2bbdb will import name and email from Gmail contacts into BBDB file. So you can auto-complete email address in Emacs.
Please note the BBDB file only contains name and email address. I remove useless BBDB features to minimize the maintaining cost.
- Easy to use. Only one command.
- Robust. It has NO dependency.
- Long term support. I will maintain it in next 10 years.
Download gmail2bbdb.el and place it somewhere (say ~/.emacs/lisp). Add below code into your .emacs:
(add-to-list 'load-path "~/.emacs.d/lisp/")
(autoload 'gmail2bbdb-import-file "gmail2bbdb" nil t nil)
- Install latest BBDB from melpa
- At Gmail contacts page, click “More -> Export -> vCard format -> Export”, the file “contacts.vcf” will be downloaded.
- Run command “M-x gmail2bbdb-import-file” and select contacts.vcf. “$HOME/.bbdb” will be created.
You can specify a different path of output file,
(setq gmail2bbdb-bbdb-file "~/.emacs.d/.bbdb")
You can specify the email excluded patterns. Email address matching one of the patterns will be excluded.
(add-to-list 'gmail2bbdb-excluded-email-regex-list "[email protected]")
See my BBDB setup.
Check https://github.com/redguardtoo/gmail2bbdb
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.