On Mon, Jul 25, 2011 at 05:39:53PM +0200, Raphaël wrote:

> Anyway, I'm coming with this patch which aims to:
> 1) make the abook output format more configurable (command line)
> 2) allow to setup the output format not only with --convert but also
> with --mutt-query.
> It also moves mutt-format-specific function to filters.c for
> consistency.

pushed.
please post about any regression which may be encountered (hopefully none)


examples:

# custom format: all from addressbook
abook --convert --outformat=custom --outformatstr="{nick} / {name} : {phone}" < 
addressbook
# custom format from vcf: only those whose neither name nor mobile is NULL
abook --convert --informat=vcard --infile=phone.vcf --outformat=custom 
--outformatstr="!{name} : {mobile}"
# all matching *chris* and having their anniversary specified in the addressbook
abook --mutt-query="chris" --outformat=custom --outformatstr="!{nick} 
{anniversary}"

Think about --mutt-query as if it were named --query (kept for backward 
compatibility)
--mutt-query=X is short for:
   --mutt-query=X --outformat=muttq
--outformat=muttq is (kind of) short for:
   --outformat=custom --outformatstr="{email}\t{name}"



best regards

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Abook-devel mailing list
Abook-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abook-devel

Reply via email to