Help - exec on delivery.

Discussion for developers using MailEnable.
Post Reply
jadon1979
Posts: 5
Joined: Mon May 16, 2005 8:40 pm

Help - exec on delivery.

Post by jadon1979 »

I am creating mailboxes on-the-fly.

Everything is peachy minus 1 little issue.......

I need to be able to tell the mailbox to call a script "ON DELIVERY".

MailEnable has the option in the server console...this won't work for what I need to do.

Basically I need to parse any email coming into these dynamically created boxes.... I need to do it as soon as the email hits....

Is there an undocumented property that I can set for what script I want to call?

OwenD
Posts: 39
Joined: Wed Sep 22, 2004 7:33 am
Location: Gladstone - Australia

Re: Help - exec on delivery.

Post by OwenD »

jadon1979 wrote:I am creating mailboxes on-the-fly.

Everything is peachy minus 1 little issue.......

I need to be able to tell the mailbox to call a script "ON DELIVERY".

MailEnable has the option in the server console...this won't work for what I need to do.

Basically I need to parse any email coming into these dynamically created boxes.... I need to do it as soon as the email hits....

Is there an undocumented property that I can set for what script I want to call?
You can use the "enable delivery event" which is available for each mailbox. right click -->properties --> actions

Either that or grab it at the MTA level, while it's still in the queue.

Depends on what you are trying to achieve.

jadon1979
Posts: 5
Joined: Mon May 16, 2005 8:40 pm

Post by jadon1979 »

negative.

I'm dynamically creating the mailboxes through a script. I need to be able to set the ONDELIVERY script per each dynamically created box on-the-fly.

OwenD
Posts: 39
Joined: Wed Sep 22, 2004 7:33 am
Location: Gladstone - Australia

Post by OwenD »

jadon1979 wrote:negative.

I'm dynamically creating the mailboxes through a script. I need to be able to set the ONDELIVERY script per each dynamically created box on-the-fly.
OK, sorry I wasn't following exactly what you are trying to do.
When you create the mailbox, you need to create a file called "username".sys
Assuming you have a default install it'll be in
C:\Program Files\Mail Enable\Config\Postoffices\**POSTOFFICENAME**\MAILBOXES\

The file needs to look like this
[General]
ReplyAddress=user@domain.com.au
MailBox-DropEventStatus=1
MailBox-DropEvent=PathToFile.exe

hope this is helpful.
cheers,
Owen

Post Reply