|
From: Fabio Z. <fab...@fa...> - 2012-09-24 06:50:07
|
On Sun, Sep 23, 2012 at 11:39:50PM +0200, Raphaël wrote: > But I got more mixed results on the input filter side (unrelated to the > use of -addr): Note that I only parse the -group option of the mutt "alias" file, i.e. something like: alias -group XX nick name surname address I do *not* parse "group" commands themselves, such as (un)group -group XX address because they are not supposed to be in the alias file at all. Moreover, they use regexps which are impossible to translate into reasonable abook searches. > Were you able to grab the "group" fields using the "abook" export ? eg: > $ ./abook --convert --informat=mutt --outformat=abook < ~/mutt.alias > > What mutt command-line do you use to benefit from the feature ? Yes, that line or, alternatively and equivalently, the following ./abook --convert --informat mutt --outformat abook --infile ~/mutt.alias An example follows. The muttalias file to be parsed (only 1 entry for simplicity): alias -group XX -group YY given.surname Given Surname <em...@do...> and the above call spits out to stdout: # abook addressbook file [format] program=abook version=0.6.0pre2 [0] name=Given Surname ema...@do... nick=given.surname groups=XX,YY as expected. To show it, my abookrc has the following line view OTHER = ..., groups where ... are other fields to be displayed. > > It may worth to add the "groups" field to the "allcvs" export filter > to ease such testing and results validation. I did not think of this, I'll have a look and let you know. Cheers, thanks. Fabio |