Results 1 to 2 of 2

Thread: How does Content Object -> match Method work properly

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    The Hague -- The Netherlands
    Posts
    214
    Rep Power
    6

    Default How does Content Object -> match Method work properly

    In the zimlet definition file there is an easy hook to put a regex match to an email body:

    <matchOn>
    <regex attrs="ig">lab|user|remodel</regex> <!-- matches lab or user or remodel -->
    </matchOn>

    Two questions, whenever a mail is opened the .match event fires like 30 times.

    Is there an event that fires only once? If not what is the proper attribute to check if there was a match AND how to get the matched content.

    I cannot find it in the documentation, or examples.

    Thanks, Barry!!

  2. #2
    Join Date
    Aug 2009
    Location
    The Hague -- The Netherlands
    Posts
    214
    Rep Power
    6

    Default

    In retrospect
    It looks like object match was developed for things like the phone highlighter or the emoticons from yahoo

    I cannot seem to match a regex for more than one line.... and it looks like the regex is not applied to the email message source
    but on the message body after Zimbra inject html code for display in browser

    AND match method fires events in ALL cases (match or no match in regex) so that is poor for perfomance of client

Similar Threads

  1. Search In Different Language not work properly
    By thameera in forum Administrators
    Replies: 0
    Last Post: 11-05-2013, 09:47 PM
  2. Would this Backup Method work?
    By nosebreaker in forum Administrators
    Replies: 0
    Last Post: 12-15-2011, 09:44 AM
  3. [SOLVED] Spell checker does not work properly.
    By deco5003 in forum General Questions
    Replies: 0
    Last Post: 09-15-2010, 05:39 PM
  4. Forwarding doesnt seems to work properly
    By lutierigb in forum Users
    Replies: 0
    Last Post: 11-19-2009, 12:20 PM
  5. Mail filters do not work properly
    By c.bossola in forum General Questions
    Replies: 2
    Last Post: 07-10-2009, 05:20 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
  •