Skip to content

A small perl script to use with mutt's query command and vCard files

Notifications You must be signed in to change notification settings

john-at-charpa/vcardsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

vcardsearch

lbdb is all kinds of broken for vCard parsing and Contacts.app (macOS) access. This can be used with the mutt query command to do roughly the same function.

requires

  • perl
  • Text::vCard::Addressbook
  • utf-8
  • a vCard file

usage

   Search a vCard format file and return data formatted for mutt

   usage: vcardsearch.pl [-h] [-c] [-f vcf file] [-s search term]
     -h        : this help message
     -c        : check for CJK names and return LASTFIRST
     -f        : the vCard file to parse
     -s        : the search term (UTF-8 compliant)

   example: 
   vcardsearch.pl -f /home/ca/.mutt/vcards.vcf -s guenther
   vcardsearch:    1 match(es)
   [email protected]      Philip Guenther

Configure mutt

set query_command="vcardsearch.pl -f $HOME/.mutt/vCards.vcf -c -s '%s'"

Export vCards

You can use the provided exportvcards.scpt to quickly export all Contacts to Documents/vCards.vcf. Thanks to SPiFF for the fixes.

Usage:

osascript exportvcards.scpt

About

A small perl script to use with mutt's query command and vCard files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published