Results 1 to 2 of 2

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

  1. #1
    Join Date
    Aug 2009
    Rep Power

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


    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?


  2. #2
    Join Date
    Aug 2009
    Rep Power

    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

Similar Threads

  1. [SOLVED] mailboxmanager does not start
    By jrefl5 in forum Administrators
    Replies: 18
    Last Post: 01-30-2012, 10:40 PM
  2. [SOLVED] Moving Zimbra to a new server
    By krolen in forum Administrators
    Replies: 109
    Last Post: 02-05-2009, 10: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, 02: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