Results 1 to 2 of 2

Thread: [SOLVED] How modify in-store email blobs?

  1. #1
    nite is offline Starter Member
    Join Date
    Aug 2009
    Posts
    2
    Rep Power
    5

    Default [SOLVED] How modify in-store email blobs?

    Hi,

    I have encountered a rather interesting situation, where after migrating ~130GB of data to ZCS 5.0.18 on RHEL 5.3 I have discovered that Outlook really does not like the fact that the email messages have mixed CRLFs. E.g. the message headers are correctly terminated, but message bodies use just LFs. The Zimbra Webmail, Thunderbird and legacy Squirrel all work happily with this inconsistency, but outlook just assumes that the entire message contains CRLFs and happily goes on to misparse it.

    Since I would really hate to reinject all that data again, I figured that doing the following:
    - bring ZCS down
    - run a sed script over mailstore
    - rebuild metadata (really just blobsize/checksum/quota info)
    would fix the issue rather easily without having to do a whole lot of processing.

    Obviously, I can do the first two items but I have not figured out how to do the final step. Detecting which blobs are affected is easy either by saving their names while running sed, or by zmblobchk.

    What I am missing is a way to fix up the metadata. Any idea how to do that?

    Thanks

  2. #2
    nite is offline Starter Member
    Join Date
    Aug 2009
    Posts
    2
    Rep Power
    5

    Default The solution

    The attached python script fixes the corruption. The final sql update part may not work, but you can fixup the database quite easily with the logs provided.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] mailboxmanager does not start
    By jrefl5 in forum Administrators
    Replies: 18
    Last Post: 01-30-2012, 11:40 PM
  2. [SOLVED] Moving Zimbra to a new server
    By krolen in forum Administrators
    Replies: 109
    Last Post: 02-05-2009, 11:38 AM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  4. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 03:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •