Setting delivery event for mailbox programattically

AcidRaZor
Posts: 33
Joined: Fri Nov 25, 2005 12:58 pm

Setting delivery event for mailbox programattically

Postby AcidRaZor » Tue Feb 28, 2006 9:51 pm

I have several users (hundreds to be a *bit* more accurate)

I would like to add a delivery event for all the mail boxes. rather than going through each via the Mail Enable Console, I was wondering if there were a programattic way of doing things.

Please help!

xicast
Posts: 2
Joined: Fri Mar 31, 2006 2:47 pm

Setting delivery event for mailbox programattically

Postby xicast » Fri Mar 31, 2006 2:49 pm

Did you ever get a response about this? I'm trying to do the exact same thing. Not only on existing accounts but to set the value on new mailboxes when they are created.

Any ideas?

someone_else
Posts: 302
Joined: Tue Jul 19, 2005 1:12 pm
Location: 404

via automation, not API

Postby someone_else » Fri Mar 31, 2006 8:38 pm

I don't think there is currently any API property for mailbox delivery events (I could be wrong, though, as the MailEnable API guide is quite outdated) so the process actually involves editing certain config files.You can create a script to automate it all, but it will have to do it the hard way (without much API help, that is)...
MailEnable plugins:
DKeyEvent - DomainKeys/DKIM
MESpamC - SpamAssassin integration

MailEnable
Site Admin
Posts: 4434
Joined: Tue Jun 25, 2002 3:03 am
Location: Melbourne, Victoria Australia

Postby MailEnable » Fri Mar 31, 2006 9:58 pm

You can use the system option provider to do this, specifically, the MEAOSO object or the MEWebmail.Options class. The current api guide does not document this however (or at least the one on the web site)

Example:
set oFeatures = CreateObject("MEWebmail.Options")
ChangeResult = oFeatures.SetSystemOption(2,"YourPostoffice" & "/" & "YourMailbox","OptionName","OptionValue")

You can inspect the mailboxname.sys file under the config dir to get the names of the options. ie: configure one mbx how you would like and examine the values.
Regards, Andrew

xicast
Posts: 2
Joined: Fri Mar 31, 2006 2:47 pm

Setting delivery event for mailbox programattically

Postby xicast » Fri Mar 31, 2006 11:14 pm

Thank you! Thank you! Thank you!

This worked really well! I am now able to enable a delivery event and set the path of the event dynamically when the account is created.

Works great, too!

Any chance the API documentation is going to be updated any time soon?

silencedmessage
Posts: 2
Joined: Thu May 19, 2016 2:22 am

Re: Setting delivery event for mailbox programattically

Postby silencedmessage » Thu May 19, 2016 2:23 am

Quite a few years later, and I'm currently looking for something like this. Any update on it?

silencedmessage
Posts: 2
Joined: Thu May 19, 2016 2:22 am

Re: Setting delivery event for mailbox programattically

Postby silencedmessage » Thu May 19, 2016 2:44 am

Several years later and I'm still hoping for this option. Any update? The API Docs have proven to be rather unreliable. :(

Who is online

Users browsing this forum: No registered users and 1 guest