{"id":1450,"date":"2019-11-22T22:21:28","date_gmt":"2019-11-23T04:21:28","guid":{"rendered":"http:\/\/russellstinnett.com\/?p=1450"},"modified":"2019-11-22T22:21:28","modified_gmt":"2019-11-23T04:21:28","slug":"import-google-contacts-into-abook","status":"publish","type":"post","link":"https:\/\/russellstinnett.com\/?p=1450","title":{"rendered":"Import Google contacts into abook"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"408\" src=\"https:\/\/russellstinnett.com\/wp-content\/uploads\/2019\/11\/abook_000.jpg\" alt=\"abook screenshot\" class=\"wp-image-1452\" srcset=\"https:\/\/russellstinnett.com\/wp-content\/uploads\/2019\/11\/abook_000.jpg 640w, https:\/\/russellstinnett.com\/wp-content\/uploads\/2019\/11\/abook_000-300x191.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption>Abook is simple text based address book that works well with Mutt<\/figcaption><\/figure>\n\n\n\n<p>I&#8217;ve been trying to figure out how to import Google contacts into <a href=\"http:\/\/abook.sourceforge.net\/\">abook<\/a> for awhile. I was repeatedly disappointed that I couldn&#8217;t find any useful and up-to-date instructions or scripts. It turns out that abook is way more powerful and configurable than I thought. The answer was right in front of me the whole time.<\/p>\n\n\n\n<p>One article that I read was about importing your Outlook contacts into abook format and short Ruby script and a couple of terminal commands. It didn&#8217;t work properly for me, but it reminded me of something I <em>should<\/em> have checked first. That&#8217;s right. The man page. Duh.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ man abook<\/code><\/pre>\n\n\n\n<p>That told me that I could use abook itself to import from several common contact file types including .vcf. Aha! Google contacts will let you export directly to the standardized vCard format! Go to contacts.google.com, select the contacts that you would like to export, click Export on the left and save to a .vcf file. Then, at the command line, enter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ abook --convert --informat vcard --infile ~\/Downloads\/contacts.vcf --outformat abook --outfile addressbook1<\/code><\/pre>\n\n\n\n<p>I saved the new addressbook file to addressbook1 because I already had a small addressbook and didn&#8217;t want to overwrite it. Unfortunately, I didn&#8217;t readily find a was to merge the files since the format includes an &#8220;id&#8221; number. That&#8217;s pretty much it to import Google contacts into abook. Super easy. It&#8217;s no wonder it was difficult to find specific instructions and\/or scripts. Abook already does it!<\/p>\n\n\n\n<p>To further customize abook, copy the example config from \/usr\/share\/doc\/abook to ~\/.abook\/abookrc and play around. I added a Note field on the Other tab to include notes about how I know the person. Anyway, I hope this simple guide helps and reminds you not to forget about man pages!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been trying to figure out how to import Google contacts into abook for awhile. I was repeatedly disappointed that I couldn&#8217;t find any useful and up-to-date instructions or scripts. It turns out that abook is way more powerful and configurable than I thought. The answer was right in front of me the whole time&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[26,52,59],"class_list":["post-1450","post","type-post","status-publish","format-standard","hentry","category-linux","tag-abook","tag-linux","tag-neomutt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Import Google contacts into abook - A Commonplace Blog<\/title>\n<meta name=\"description\" content=\"It&#039;s super easy to import Google contacts to abook. Abook is a handy text based address book that can import several file formats on it&#039;s own.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/russellstinnett.com\/?p=1450\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Import Google contacts into abook - A Commonplace Blog\" \/>\n<meta property=\"og:description\" content=\"It&#039;s super easy to import Google contacts to abook. Abook is a handy text based address book that can import several file formats on it&#039;s own.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/russellstinnett.com\/?p=1450\" \/>\n<meta property=\"og:site_name\" content=\"A Commonplace Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-23T04:21:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/russellstinnett.com\/wp-content\/uploads\/2019\/11\/abook_000.jpg\" \/>\n<meta name=\"author\" content=\"russell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"russell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450\"},\"author\":{\"name\":\"russell\",\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/#\\\/schema\\\/person\\\/056f15a8cb83837a561f105dc1475ce8\"},\"headline\":\"Import Google contacts into abook\",\"datePublished\":\"2019-11-23T04:21:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450\"},\"wordCount\":311,\"image\":{\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/russellstinnett.com\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/abook_000.jpg\",\"keywords\":[\"abook\",\"linux\",\"neomutt\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450\",\"url\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450\",\"name\":\"Import Google contacts into abook - A Commonplace Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/russellstinnett.com\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/abook_000.jpg\",\"datePublished\":\"2019-11-23T04:21:28+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/#\\\/schema\\\/person\\\/056f15a8cb83837a561f105dc1475ce8\"},\"description\":\"It's super easy to import Google contacts to abook. Abook is a handy text based address book that can import several file formats on it's own.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/russellstinnett.com\\\/?p=1450\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450#primaryimage\",\"url\":\"https:\\\/\\\/russellstinnett.com\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/abook_000.jpg\",\"contentUrl\":\"https:\\\/\\\/russellstinnett.com\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/abook_000.jpg\",\"width\":640,\"height\":408},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/?p=1450#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/russellstinnett.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Import Google contacts into abook\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/#website\",\"url\":\"https:\\\/\\\/russellstinnett.com\\\/\",\"name\":\"A Commonplace Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/russellstinnett.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/russellstinnett.com\\\/#\\\/schema\\\/person\\\/056f15a8cb83837a561f105dc1475ce8\",\"name\":\"russell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b1fb12238c00e45c4820005d8619303e4635df76f75ef14a958d79ef08e2ce00?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b1fb12238c00e45c4820005d8619303e4635df76f75ef14a958d79ef08e2ce00?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b1fb12238c00e45c4820005d8619303e4635df76f75ef14a958d79ef08e2ce00?s=96&d=mm&r=g\",\"caption\":\"russell\"},\"sameAs\":[\"https:\\\/\\\/russellstinnett.com\"],\"url\":\"https:\\\/\\\/russellstinnett.com\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Import Google contacts into abook - A Commonplace Blog","description":"It's super easy to import Google contacts to abook. Abook is a handy text based address book that can import several file formats on it's own.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/russellstinnett.com\/?p=1450","og_locale":"en_US","og_type":"article","og_title":"Import Google contacts into abook - A Commonplace Blog","og_description":"It's super easy to import Google contacts to abook. Abook is a handy text based address book that can import several file formats on it's own.","og_url":"https:\/\/russellstinnett.com\/?p=1450","og_site_name":"A Commonplace Blog","article_published_time":"2019-11-23T04:21:28+00:00","og_image":[{"url":"https:\/\/russellstinnett.com\/wp-content\/uploads\/2019\/11\/abook_000.jpg","type":"","width":"","height":""}],"author":"russell","twitter_card":"summary_large_image","twitter_misc":{"Written by":"russell","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/russellstinnett.com\/?p=1450#article","isPartOf":{"@id":"https:\/\/russellstinnett.com\/?p=1450"},"author":{"name":"russell","@id":"https:\/\/russellstinnett.com\/#\/schema\/person\/056f15a8cb83837a561f105dc1475ce8"},"headline":"Import Google contacts into abook","datePublished":"2019-11-23T04:21:28+00:00","mainEntityOfPage":{"@id":"https:\/\/russellstinnett.com\/?p=1450"},"wordCount":311,"image":{"@id":"https:\/\/russellstinnett.com\/?p=1450#primaryimage"},"thumbnailUrl":"https:\/\/russellstinnett.com\/wp-content\/uploads\/2019\/11\/abook_000.jpg","keywords":["abook","linux","neomutt"],"articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/russellstinnett.com\/?p=1450","url":"https:\/\/russellstinnett.com\/?p=1450","name":"Import Google contacts into abook - A Commonplace Blog","isPartOf":{"@id":"https:\/\/russellstinnett.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/russellstinnett.com\/?p=1450#primaryimage"},"image":{"@id":"https:\/\/russellstinnett.com\/?p=1450#primaryimage"},"thumbnailUrl":"https:\/\/russellstinnett.com\/wp-content\/uploads\/2019\/11\/abook_000.jpg","datePublished":"2019-11-23T04:21:28+00:00","author":{"@id":"https:\/\/russellstinnett.com\/#\/schema\/person\/056f15a8cb83837a561f105dc1475ce8"},"description":"It's super easy to import Google contacts to abook. Abook is a handy text based address book that can import several file formats on it's own.","breadcrumb":{"@id":"https:\/\/russellstinnett.com\/?p=1450#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/russellstinnett.com\/?p=1450"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/russellstinnett.com\/?p=1450#primaryimage","url":"https:\/\/russellstinnett.com\/wp-content\/uploads\/2019\/11\/abook_000.jpg","contentUrl":"https:\/\/russellstinnett.com\/wp-content\/uploads\/2019\/11\/abook_000.jpg","width":640,"height":408},{"@type":"BreadcrumbList","@id":"https:\/\/russellstinnett.com\/?p=1450#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/russellstinnett.com\/"},{"@type":"ListItem","position":2,"name":"Import Google contacts into abook"}]},{"@type":"WebSite","@id":"https:\/\/russellstinnett.com\/#website","url":"https:\/\/russellstinnett.com\/","name":"A Commonplace Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/russellstinnett.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/russellstinnett.com\/#\/schema\/person\/056f15a8cb83837a561f105dc1475ce8","name":"russell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b1fb12238c00e45c4820005d8619303e4635df76f75ef14a958d79ef08e2ce00?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b1fb12238c00e45c4820005d8619303e4635df76f75ef14a958d79ef08e2ce00?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b1fb12238c00e45c4820005d8619303e4635df76f75ef14a958d79ef08e2ce00?s=96&d=mm&r=g","caption":"russell"},"sameAs":["https:\/\/russellstinnett.com"],"url":"https:\/\/russellstinnett.com\/?author=1"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/russellstinnett.com\/index.php?rest_route=\/wp\/v2\/posts\/1450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/russellstinnett.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/russellstinnett.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/russellstinnett.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/russellstinnett.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1450"}],"version-history":[{"count":0,"href":"https:\/\/russellstinnett.com\/index.php?rest_route=\/wp\/v2\/posts\/1450\/revisions"}],"wp:attachment":[{"href":"https:\/\/russellstinnett.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/russellstinnett.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/russellstinnett.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}