MTA Pickup Event Deletes MAI before I can process

Discussion for developers using MailEnable.
Post Reply
cocrc
Posts: 16
Joined: Sat Apr 09, 2011 12:50 am

MTA Pickup Event Deletes MAI before I can process

Post by cocrc »

I've created a VB console application that will monitor the MTA and look for an email sent by a particular user. It then modifies the "reply-to" address (long story) before the messages gets delivered to an outside recipient. For debugging purposes I'm writing to the windows application log. This tells me that my application is running on the pickup event and also that ME is passing the message info via command line arguments. What happens though is that ME appears to delete the message before my application can process it because I get a "file does not exist" error when I try to open the message. What am I missing here? The ME docs say that it "shells" to the application specified for the pickup event so I assume that it is a synchronous operation.

cocrc
Posts: 16
Joined: Sat Apr 09, 2011 12:50 am

SOLVED: MTA Pickup Event Deletes MAI before I can process

Post by cocrc »

We'll I figured out what I was doing wrong. I finally traced a message through ME and found it was arriving at Inbound not Outgoing. Once I changed that both the Console and Forms application worked in VB 2008. I 'think' the example had Outgoing and I got mixed up as to what I needed. Hope this will help someone else.

me1234
Posts: 1
Joined: Thu Jun 09, 2011 4:21 am

Re: MTA Pickup Event Deletes MAI before I can process

Post by me1234 »

THANKS

garsonharlan
Posts: 1
Joined: Fri Sep 02, 2011 12:15 pm
Location: San Diego

Re: MTA Pickup Event Deletes MAI before I can process

Post by garsonharlan »

ok that great if you can figured out what happened there !

Garson Harlan
Los Angeles , USA
30 second smile | procera avh

Post Reply