Re: [Evolution] Empty contacts / messing with the database



first I want to thank you for your excellent work. Evolution is the best
email client I've ever seen. :-)

Yeah, baby, yeah! :-)  Although there is room for some enhancements...
;-)


My issue: I like the idea of having one central, CVS archived Contact
system. Evolution is quite easy here, because it uses vCard as native
format, as do I. My problem is that if I try writing directly to the
database (through perls DB_File or BerkeleyDB modules) I create beside
my contacts a whole lot of empty and undeleteable entries. As long as I
can tell there is not additional information in the addressbook.db file
and all versions are fine. Even the \0 termination for all entries is in
there. 
But Ev keeps believing that there is something wrong. I've been through
your mailing list archives and bugzilla but haven't found anything that
might help me with this topic.
Before I start reading the source I thought maybe someone on this list
has a clue what might be the reason for these ghost-entries.

Not sure, but that sounds kinda familiar to what I just came across:
http://lists.ximian.com/archives/public/evolution-hackers/2003-April/000253.html

Chris Toshok wrote:
[...] I suggest you don't create/modify
addressbook.db entries using straight perl modifying the file's
internals.  Going through the wombat is really the better way to do
this, since you'll get notification if things have changed [...]

...guenther


-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]