Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #21 (permalink)  
Old 01-22-2010, 01:15 AM
Elite Member
 
Posts: 469
Default

Thank you.

I can see that there is metadata stored in there under my original userid

myaccount@zimbra.company.country

However, when I make the same select using my up-to-date userid

myaccount@mycompany.country

I get no data returned.

1. Is that because the mailbox record got set up originally with the zimbra. userid, and that was populated into the comment field ? The account is still the same - its Domain name just changed - but the comment never got changed when I renamed the domain - Is that right ?

2. I can see the old format addresses in the metadata. Is there a way to safely delete them ? Can I delete the contents of the a.metadata column, and if I do will it just start fresh collecting data again ?

Thanks,
Vincent
Reply With Quote
  #22 (permalink)  
Old 02-04-2010, 03:26 PM
Outstanding Member
 
Posts: 708
Default

The root cause of this was found in Bug 40081 - Unable to get rid of emailed contact which per Bug 43772 - Autocomplete / Emailed contacts error only became public on January 8th.

There is a workaround; see last comment to 40081.
Reply With Quote
  #23 (permalink)  
Old 02-27-2010, 07:50 PM
Senior Member
 
Posts: 58
Default

Quote:
Originally Posted by Rich Graves View Post
The root cause of this was found in Bug 40081 - Unable to get rid of emailed contact which per Bug 43772 - Autocomplete / Emailed contacts error only became public on January 8th.

There is a workaround; see last comment to 40081.
Can you mention which comment you are referring to? That bug has a lot of action going on.
Reply With Quote
  #24 (permalink)  
Old 02-27-2010, 11:41 PM
Zimbra Consultant & Moderator
 
Posts: 20,319
Default

Quote:
Originally Posted by jurness View Post
Can you mention which comment you are referring to? That bug has a lot of action going on.
I would have thought it was this:
Quote:
Originally Posted by Rich Graves View Post
There is a workaround; see last comment to 40081.
__________________
Regards


Bill
Reply With Quote
  #25 (permalink)  
Old 03-02-2010, 08:24 AM
Loyal Member
 
Posts: 96
Default

There is more info about this problem found here:
Old display names in autocomplete

The quick answer is to set this for a few days (two weeks?):
zmprov ma user@domain.com zimbraContactRankingTableSize 0
After the phantom accounts are gone from autocompelte set it back to 40.
Reply With Quote
  #26 (permalink)  
Old 03-02-2010, 11:54 AM
Senior Member
 
Posts: 58
Default

Quote:
Originally Posted by cayaraa View Post
There is more info about this problem found here:
Old display names in autocomplete

The quick answer is to set this for a few days (two weeks?):
zmprov ma user@domain.com zimbraContactRankingTableSize 0
After the phantom accounts are gone from autocompelte set it back to 40.
In the bug report it mentions 2 days to clear out the caching but after waiting 48 hours I am still seeing old email addresses in the webclient. I verified that none of the email addresses were in my zimbra account calendars and obviously this is not coming from the GAL since this is all about a zimbra domainname change from a test to production domain name.

Bummer that I need to wait two weeks. Is there anything more definitive here than two days or two weeks? (which is kinda not that definitive...)
Reply With Quote
  #27 (permalink)  
Old 11-29-2010, 06:43 PM
Senior Member
 
Posts: 50
Default

Following the closure of Bug 40081 – Unable to get rid of emailed contact this is still happening for us on 6.0.9 NE despite the entry not being in the address book. Perhaps due to a corrupt entry in the metadata field:
(sanitized)
Quote:
...ntag1:ri69e1:ti1290662525228ee19:sss@domain.ac. jpd1:n122r. Michael SSS", aaa@domain.ac.jp, ggg@domain.ac.jp, "Alexander GGG" <ggg@domain.ac.jp>, "Edda KKK1:ri12e1:ti1290668940981ee36:taka...
This produces the following JSON AutoCompleteResponse when autocompleting 'sz':
Quote:
"Dr. Michael SSS", aaa@domain.ac.jp, ggg@domain.ac.jp, "Alexander GGG" <ggg@domain.ac.jp>, "Edda KKKKKK" <sss@domain.ac.jp>
Clicking the 'Remove' link results in a message saying:
The ranking of address ggg@domain.ac.jp has been reset. Addresses are ranked based on how often you have sent to them.

However it is sss@domain.ac.jp that needs to be removed!

We have set:
Code:
zmprov ma problem_account zimbraContactRankingTableSize 0
for four days now without the metadata being cleared out.

I wish to clear this up quickly so I need to confirm the correct mysql UPDATE command to zero out the metadata field.

From comment 11 in Bug 43772 - Autocomplete / Emailed contacts error the table structure is:

Code:
*************************** 1. row ***************************
  Field: mailbox_id
   Type: int(10) unsigned
   Null: NO
    Key: PRI
Default: 0
  Extra: 
*************************** 2. row ***************************
  Field: section
   Type: varchar(64)
   Null: NO
    Key: PRI
Default: 
  Extra: 
*************************** 3. row ***************************
  Field: metadata
   Type: mediumtext
   Null: YES
    Key: 
Default: NULL
  Extra:
The SELECT command is:
Code:
su - zimbra
mysql
SELECT metadata FROM zimbra.mailbox_metadata WHERE mailbox_id=44 AND section='CONTACT_RANKINGS';
After some testing on a test server, the following seems to work:
Code:
UPDATE zimbra.mailbox_metadata SET metadata='' WHERE mailbox_id=44 AND section='CONTACT_RANKINGS';
Of course the mailbox_id needs to match the id of the problem mailbox. The mailbox_id can be found with:
Code:
zmprov gmi problem_child@domain.com
This does seem to zero out the appropriate data in the rankings and new data seems to be correctly added to it upon subsequent email sending.

However, I am concerned about any possible side effects (i.e. indexes out of sync) of directly modifying the data. Can anyone comment?
Reply With Quote
  #28 (permalink)  
Old 12-01-2010, 04:42 PM
Senior Member
 
Posts: 50
Default

6 days now after setting zimbraContactRankingTableSize to zero and the ranking table has not been reset...
zmprov ma problem_account zimbraContactRankingTableSize 0
Reply With Quote
  #29 (permalink)  
Old 12-09-2010, 11:47 AM
Loyal Member
 
Posts: 96
Default

Quote:
Originally Posted by John Munro View Post
6 days now after setting zimbraContactRankingTableSize to zero and the ranking table has not been reset...
zmprov ma problem_account zimbraContactRankingTableSize 0
Back when I used the 0 table size it took two weeks to clear it out. I hadn't had to think about this because we've been on 6.0.7 which didn't have the ranking table....upgraded to 6.0.9 and now I'm seeing it again.....and this new forget link doesn't seem to be removing anything from the ranking table. I guess it just moves it so that its at the bottom of the list?

I love having an un-editable "address book"....
Reply With Quote
  #30 (permalink)  
Old 12-09-2010, 11:29 PM
Senior Member
 
Posts: 50
Default

It's been two weeks and the data still hasn't been cleared out of the ranking table so I have bitten the bullet and implemented my hack above. Will keep all informed if I come across any side-effects.
Code:
su - zimbra
zmprov gmi problem_child@domain.com  # to get <zimbra_id>
mysql
UPDATE zimbra.mailbox_metadata SET metadata='' WHERE mailbox_id=<zimbra_id> AND section='CONTACT_RANKINGS';
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.