Results 1 to 3 of 3

Thread: modify saved messages

  1. #1
    jocx is offline Active Member
    Join Date
    Nov 2007
    Location
    Columbus, Ohio
    Posts
    33
    Rep Power
    7

    Default modify saved messages

    Hello.

    I'm running 5.0.18_GA_3011.UBUNTU8.

    I'd like to be able to run a script against message files
    for a particular user or perhaps set of users. Or a procedure
    to, in effect, allow message body modification.

    For example, If we have performed an imapsync for a user,
    and wish to add a content-type line to the body (html is
    displaying from a eudora user) to some 50% of their stored
    messages, I'd like to apply a script to
    (in effect) the zimbra store messages. I expect modifying
    the body text (and possibly length) from the OS editor of a
    /opt/zimbra/store/{hash}/{mailbox-id}/msg/{hash}/{item}.msg
    stored message is in bad form.

    I'm wondering what would be a good procedure to modify
    one or more zimbra stored messages and replace it with the modified form.
    Let's assume I don't tinker with the message id of the message.

    thanks,
    John

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    Why not use sed ?

  3. #3
    jocx is offline Active Member
    Join Date
    Nov 2007
    Location
    Columbus, Ohio
    Posts
    33
    Rep Power
    7

    Default

    Quote Originally Posted by uxbod View Post
    Why not use sed ?
    I could use sed to take action on the script, sure. Or perl, python, etc.
    Or use a favorite editor to hand edit any message storage file that
    I find. But I expect just modifying the underlying message storage
    file might damage associations with meta data in data store and
    index table.
    I'm thinking there's probably a best practices
    method of export, edit, and replace-import, perhaps
    with a re-catalog the message zmcommand
    which would re-build the data and index store. Knowing what's
    most useful to others could assist me here.

    thanks,
    John

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Re-creating the spam training e-mail account
    By richard-hdd in forum Administrators
    Replies: 21
    Last Post: 03-20-2012, 07:34 AM
  2. Spam Assasin Questions
    By Almfg in forum Administrators
    Replies: 1
    Last Post: 05-13-2009, 01:17 PM
  3. Replies: 3
    Last Post: 07-28-2008, 12:20 AM
  4. New messages not showing up in outlook
    By bersrker in forum Zimbra Connector for Outlook
    Replies: 4
    Last Post: 01-16-2007, 08:17 AM
  5. Spam assassain not traiing properly!
    By Mike T in forum Administrators
    Replies: 1
    Last Post: 10-09-2006, 01:34 PM

Posting Permissions

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