I'd like to create a custom toolbar button that creates a new message from a template.
I haven't seen a script listed that does this, but am wondering if anyone has a script that will do this for me?
Moderators: Eric, Tomas, robin, Michael
/perform/newmessage/TEMPLATE_NAME/
{ Filename : AddReturnReciptHeader.poc
{ Version : 1.0.0.1
{ Date : 15Oct2002
{ Status : Release
{ Solution : Turn on the "Return receipt" header as the default.
{ Language : PocoScript
{ Platform : x86
{ Target O/S's : Win
{ Dependencies : PocoMail v2.63
{ Modes : This script can only be run against outgoing messages
{ or via one of the following Poco events:
{ - OnCompose, onBounceEdit, onForwardAttEdit, OnForwardEdit,
{ OnReplyAllEdit, OnReplyEdit
{ : Running the script on outgoing events will cause the header to be added
{ to all messages. You can control this to a degree by
{ by configuring filters to decide when to run the script.
{ : See www.jdfsoftware.com/pocofaq/events.html for how to setup the events.
{ Author : Michael Motek
{ Company : Juan de Fuca Software
{ Company website: www.jdfsoftware.com
{ Restriction : Will not change the receipt delivery address if the account is changed.
{ Add a Return-Receipt-To: header to outgoing messages.
{ Modifications:
{ 16Oct2002 - M.Motek - Allow script to be run against outgoing messages.
If #PocoScriptMode = 2 Then AddHdr
If #PocoScriptMode < 100 Then WrongMode
:AddHdr
ReadEMail $id
AddHeader %message "Disposition-Notification-To:" $id
Exit
:WrongMode
AddStrings $Msg "The " $PocoScriptName " script is only designed to be run on outgoing messages or used with Poco's event triggers."
MessageBox $Msg
Return to PocoScript Help and How-To
Users browsing this forum: No registered users and 1 guest