Community Discussions and Support
Invoking Daemons

Since there doesn't seem to be any changes I'll ask another question:

DAEMONEXPORT short daemon (void *job, M_INTERFACE *mi, char *address)

{
        void *blank;
        mi->logstring (20100, LOG_NORMAL, "TEST DAEMON: Daemon function called");
        blank = mi->ji_create_job(JT_GENERAL, "u.d@o.com", NULL);
        mi->ji_add_element(blank, "Joshua.Arner@ATIMetals.com");
        mi->ji_add_data(blank, "Subject:This is it");
        mi->ji_close_job(blank);
        mi->ji_close_job(job);
        return 0;


}

 

When

I run this as part of the code for daemon1.dll in the DDK the message

triggers the daemon and create the message just fine.  However, the

triggering message is marked with a retry flag and repeats the entire

process on the next poll cycle.  Am I doing something wrong or is there a

way to reset this flag?

 

My only solution is to try to copy the message and have the daemon return 1 to delete the message, I'd rather not do that.

<p>Since there doesn't seem to be any changes I'll ask another question:</p><p>DAEMONEXPORT short daemon (void *job, M_INTERFACE *mi, char *address)</p><p>{         void *blank;         mi->logstring (20100, LOG_NORMAL, "TEST DAEMON: Daemon function called");         blank = mi->ji_create_job(JT_GENERAL, "u.d@o.com", NULL);         mi->ji_add_element(blank, "Joshua.Arner@ATIMetals.com");         mi->ji_add_data(blank, "Subject:This is it");         mi->ji_close_job(blank);         mi->ji_close_job(job);         return 0;</p><p> }</p><p> </p><p>When I run this as part of the code for daemon1.dll in the DDK the message triggers the daemon and create the message just fine.  However, the triggering message is marked with a retry flag and repeats the entire process on the next poll cycle.  Am I doing something wrong or is there a way to reset this flag?</p><p> </p><p>My only solution is to try to copy the message and have the daemon return 1 to delete the message, I'd rather not do that. </p>

Just wondering if any progress has been made on this thread: http://community.pmail.com/forums/thread/10220.aspx

 

In summary it is asking how to use the "Invoke a daemon" option from the rules and not much of a solution existing at the time of writing.  Has this changed after so many versions or is the "Invoke a daemon" option still non-functional.

 

-Or am I reading it all wrong?

<p>Just wondering if any progress has been made on this thread: http://community.pmail.com/forums/thread/10220.aspx</p><p> </p><p>In summary it is asking how to use the "Invoke a daemon" option from the rules and not much of a solution existing at the time of writing.  Has this changed after so many versions or is the "Invoke a daemon" option still non-functional.</p><p> </p><p>-Or am I reading it all wrong? </p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft