Results 1 to 5 of 5

Thread: [SOLVED] Accessing Message Body

  1. #1
    Join Date
    Jul 2007
    Posts
    7
    Rep Power
    8

    Default [SOLVED] Accessing Message Body

    Is there any way that Zimlets can modify the contents of the e-mail body? I don't think this was the intention for Zimlets, in which case is the only way to acheive this, to modify the source?

    I basically just need the ability to replace all the text in the content with a preset string when an option in a Zimlet context menu is clicked.

  2. #2
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Quote Originally Posted by henrythacker View Post
    Is there any way that Zimlets can modify the contents of the e-mail body? I don't think this was the intention for Zimlets, in which case is the only way to acheive this, to modify the source?

    I basically just need the ability to replace all the text in the content with a preset string when an option in a Zimlet context menu is clicked.
    For a message that is being composed, or a message that already exists? For compose, no problem. For a message that already exists, it's much more dicey since it also involves re-indexing the message, etc.

    For a message that is being composed, you should be able to grab the div that represents the edit element and replace it there.

  3. #3
    Join Date
    Jan 2007
    Posts
    26
    Rep Power
    8

    Default

    If you find the spell checking code, then you'll see how the content of a composed message is accessed.

  4. #4
    Join Date
    Jul 2007
    Posts
    7
    Rep Power
    8

    Default

    Cheers guys - I am doing this to try and set up some kind of Signatures or Email templates system. If I get anything good out of this - will probably release this. You wouldn't have a link to the spell check demo would you?
    Last edited by henrythacker; 08-24-2007 at 08:26 AM.

  5. #5
    Join Date
    Jan 2007
    Posts
    26
    Rep Power
    8

    Default

    ZimbraWebClient/WebRoot/js/zimbraMail/share/view/htmlEditor/ZmHtmlEditor.js

    That's your pot of gold, I think.

Similar Threads

  1. Replies: 3
    Last Post: 07-19-2007, 02:00 AM
  2. Zimlet interaction with message body
    By flindiakos in forum Zimlets
    Replies: 1
    Last Post: 07-18-2007, 01:26 PM
  3. Message body missing in Outlook
    By kdunphy in forum Zimbra Connector for Outlook
    Replies: 4
    Last Post: 04-24-2007, 06:15 AM
  4. Replies: 5
    Last Post: 03-24-2007, 11:52 AM
  5. message body Encoding.
    By mmt in forum Developers
    Replies: 0
    Last Post: 10-26-2005, 07:08 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
  •