Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-27-2011, 10:08 AM
Junior Member
 
Posts: 6
Default Filtering addresses on outgoing messages

Hi all,
I'd like to write a zimlet to filter outgoing messages. When the user click on the "send" button, before the message in sent I'd like:
1 - catch the addresses
2 - for each address {
if (the address is in a specific address book) { it' ok!}
else {delete it!}
}
3 - if the message still have one or more addresses we can send the mail

Where I can start from?
thanks
Reply With Quote
  #2 (permalink)  
Old 06-30-2011, 09:44 AM
Junior Member
 
Posts: 6
Default

ok,
I started here:
Code:
mynameZimlet.prototype.emailErrorCheck =
function(mail, boolAndErrorMsgArray) {
    mail.clearAddresses();
    var errParams = {
        hasError:true,
        errorMsg: "NO!",
        zimletName:AttachAlertZimlet.ZIMLET_NAME
    };
    return boolAndErrorMsgArray.push(errParams);
}
It shoud clear the address and stop the mail, but it's not working...
What I miss?

Thanks
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.