On Tue, Jul 01, 2014 at 10:56:48AM +0200, Carlos Franke wrote: > Roger wrote: > >>* (Say I have a list with people to send holiday greetings, one with > >people > >>to invite to parties, one with people that share a certain hobby – these > >>lists will most probably overlap.) > > > >So you want to tag people into multiple categories? (ie. By > >'send_holiday_greetings', 'party_people', ...) > > Yes, "tagging" is a better word. Plus querying for tags. > > >Either a separate text file, yes redundant, but still simple and I'll bet > >dummy > >proof > > I might end up doing this. If the names on the list match their > corresponding abook entries, I can easily generate a list of up-to-date > email addresses from it by looping over the names with "abook --mutt-query". > Thank you for giving me this idea. > > >Another probably better option, enter the custom field with your standard > >tag > >item name (ie. holiday_cards, party_people, ...) and then use awk/gawk to > >search for contacts having those tags. Once a contact is found with a > >matching > >tag name, selecting that contact and send to stdout. > > Sounds good, but only as good as the best awk (or other) script I can come > up with or find. > > Carlos
Hello, another idea: you might want to keep your contacts in a yaml file and then generate your abook datafiles dynamically from those using whatever scripting language you are most comfortable with (I personally would prefer perl over awk). This procedure has the nice side effect that you might as well generate the rc files of your mail user agent (for example, and in my case: mutt) dynamically. Like this you can achieve for example different highlighting colours for different groups of email contacts. In this case, you would define different contact groups with your yaml/perl[WHATEVER OTHER SCRIPTING LANGUAGE] and then dynamically generate the corresponding abook datafiles. I did exactly this many years ago and never had to touch my rc files again. However, somehow I lost track of this. Your email has brought me back on the track again. Gabriel ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Abook-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/abook-devel
