Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Global Address Book Entry

Quote Reply
Global Address Book Entry
I had one address in the global address book. Then I ran consistency.pl, which reported one inconsistency in the address book. After fixing the inconsistency, the global address book entry is gone.

Bug?

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Global Address Book Entry In reply to
Yes, that's a bug in inconsistency.pl. The check on the address table is now not needed since global address book entries have a userid of 0. That means it's thinking that every global address book entry is inconsistent. Just comment out the chunk of code around line ~153:
Code:
--- consistency.pl 5 Mar 2004 00:56:41 -0000 1.13
+++ consistency.pl 5 Mar 2004 18:12:06 -0000
@@ -153,16 +153,18 @@
}
}

+# Global address book uses userid of 0 to indicate a global address, so this
+# check is now unnecessary.
# address => users
- $rel = $DB->table('address', 'users');
- $sth = $rel->select('left_join', 'distinct(address_userid)', { userid => undef });
- print "address table inconsistencies: ", $sth->rows + 0, "\n";
- if ($fix) {
- my $tb = $DB->table('address');
- while (my $row = $sth->fetchrow_hashref) {
- $tb->delete({ address_userid => $row->{address_userid} });
- }
- }
+# $rel = $DB->table('address', 'users');
+# $sth = $rel->select('left_join', 'distinct(address_userid)', { userid => undef });
+# print "address table inconsistencies: ", $sth->rows + 0, "\n";
+# if ($fix) {
+# my $tb = $DB->table('address');
+# while (my $row = $sth->fetchrow_hashref) {
+# $tb->delete({ address_userid => $row->{address_userid} });
+# }
+# }

# filter => users
$rel = $DB->table('filter', 'users');

Adrian
Quote Reply
Re: [brewt] Global Address Book Entry In reply to
Thanks a lot.

Ivan
-----
Iyengar Yoga Resources / GT Plugins