Aaron Stone wrote: > On Tue, 2006-06-06 at 10:15 +0200, Paul J Stevens wrote: > >> I'd like to rewrite dbmail_message_get_header_repeated to use the >> existing GRelation/GTuples infrastructure for getting at this data. >> >> Any objections? > > If it ends up shorter and/or faster and/or more elegant, sure go for it!
*Much* shorter, and easier on the eye (mine at least). > > Just note that however elegant the GTuples are, libSieve still takes a > NULL-terminated char ** array ;-) I've taken that into account, of course. Mapping tuples to char** is now done locally in sortsieve.c, for the time being (3-lines). But please take a look, and see if I've broken anything in the sieve's sort_getheader code. -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl
