gmail2bbdb icon indicating copy to clipboard operation
gmail2bbdb copied to clipboard

convert gmail contacts to BBDB file, easy to use, robust, no dependency

  • gmail2bbdb (v0.0.6)

[[http://melpa.org/#/gmail2bbdb][file:http://melpa.org/packages/gmail2bbdb-badge.svg]] [[http://stable.melpa.org/#/gmail2bbdb][file:http://stable.melpa.org/packages/gmail2bbdb-badge.svg]]

gmail2bbdb will import name and email from [[https://www.google.com/contacts/][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.

  • Why
  • Easy to use. Only one command.
  • Robust. It has NO dependency.
  • Long term support. I will maintain it in next 10 years.
  • Install Download gmail2bbdb.el and place it somewhere (say ~/.emacs/lisp). Add below code into your .emacs: #+BEGIN_SRC lisp (add-to-list 'load-path "~/.emacs.d/lisp/") (autoload 'gmail2bbdb-import-file "gmail2bbdb" nil t nil) #+END_SRC

  • Usage

  • Install [[https://melpa.org/#/bbdb][latest BBDB from melpa]]
  • At [[https://www.google.com/contacts][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, #+BEGIN_SRC elisp (setq gmail2bbdb-bbdb-file "~/.emacs.d/.bbdb") #+END_SRC

You can specify the email excluded patterns. Email address matching one of the patterns will be excluded. #+BEGIN_SRC elisp (add-to-list 'gmail2bbdb-excluded-email-regex-list "[email protected]") #+END_SRC

  • Tips (OPTIONAL) See [[https://github.com/redguardtoo/emacs.d/blob/master/lisp/init-bbdb.el][my BBDB setup]].

  • Bug Report Check [[https://github.com/redguardtoo/gmail2bbdb]]

  • License 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/]].