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 » Fri May 20, 2005 12:22 am

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 » Sat May 21, 2005 10:41 pm

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 » Mon May 23, 2005 10:10 am

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 » Tue May 24, 2005 6:49 am

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