Results 1 to 2 of 2

Thread: Filtering addresses on outgoing messages

  1. #1
    Join Date
    Jan 2009
    Posts
    11
    Rep Power
    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

  2. #2
    Join Date
    Jan 2009
    Posts
    11
    Rep Power
    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

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, 08:34 AM
  2. Outgoing messages not be received by intended recipient
    By arrowheadsolutionsllc in forum Administrators
    Replies: 5
    Last Post: 04-08-2011, 07:46 AM
  3. Outgoing messages marked as spam
    By jimramsey in forum Administrators
    Replies: 5
    Last Post: 01-10-2008, 03:18 PM
  4. [SOLVED] Block outgoing messages
    By tommy in forum Administrators
    Replies: 5
    Last Post: 08-01-2007, 07:26 PM
  5. Keep a copy of all incoming and outgoing messages
    By bjquinn in forum Administrators
    Replies: 2
    Last Post: 12-18-2006, 12:37 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
  •