Poco Composing FAQ - Making "Return receipt" the default option

Q: I was wondering how to make "Return Receipt" set as a default? I tried to set it than save as a template but that did not work.
 
A: The only way to do this is with a script that reacts to the event triggers that were introduced in Poco 2.61.

The script code would be:

ReadEMail $id
AddHeader %message "Disposition-Notification-To:" $id

To implement this follow the steps outlined below:

  1. Copy the above code and paste it into a new script. Save the script as "RequestReceipt".
  2. Open the events form (Ctrl+F9) and configure the script to run as an application wide event in response to the following events:
    • OnCompose
    • OnForwardAttEdit
    • OnForwardEdit
    • OnReplyAllEdit
    • OnReplyEdit

  1. Copy the above code and paste it into a new script. Save the script as "RequestReceipt".
  2. Shutdown Poco and configure the script to run in response to the appropriate events.

    I would advise making this an application wide event. The events you will want to use are:

    • OnCompose
    • OnForwardAttEdit
    • OnForwardEdit
    • OnReplyAllEdit
    • OnReplyEdit

    To do this you will need to add the following lines to the bottom of your poco.ini file. Open the file in notepad, move to the bottom and paste the lines:

    [Events]
    OnCompose_Scripts=RequestReceipt
    OnForwardAttEdit_Scripts=RequestReceipt
    OnForwardEdit_Scripts=RequestReceipt
    OnReplyAllEdit_Scripts=RequestReceipt
    OnReplyEdit_Scripts=RequestReceipt
    

 
 Notes:
  1. Only paste the above lines into the Poco.ini file if it does not already contain an "[Events]" line. If it does contain one please post a note to the Poco help forum and someone will provide instructions on how to implement this.
  2. The script does not work if configured for the "pre-edit" events. I don't know why this is and have not taken the time to research it.
  3. I did not include the "OnBounceEdit" event, it seems inconsistent with bouncing a message . You may decide you want to add that event.