[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Poco Forums • View topic - Pocoscript for "Follow-Up" message, (like Resend b

Pocoscript for "Follow-Up" message, (like Resend b

Scripting questions and ideas

Moderators: Eric, Tomas, robin, Michael

Pocoscript for "Follow-Up" message, (like Resend b

Postby Tomas » Mon Feb 26, 2007 12:58 pm

Pocoscript for "Follow-Up" message, (like Resend but quoted)

This script is authored by wb198, W A Bradbury. Due to posting problems, I'm posting here for the author (with thanks for sharing the script):

This Script is useful if you have written to someone, but they have not replied yet, and you decide there is something more you want to add but you don't want to lose the "conversation" - the last message you wrote you want quoted beneath the new message.
Most people do this by selecting the message they last sent, clicking "forward", and then copying and pasting the email address of the person into the To: field.
This Script does it automatically. You can assign the Script to a button on your toolbar - Select the message you sent, and then click the button. The message is labelled "FU:" (Follow-Up) in the subject line, rather than "FW:"
Okay, I'm no expert in PocoScript - I "adapted" this script from other scripts I found, - but it works (for single recipients, anyway).


{### FollowUp
{ For sending a second message to the same person, before they have replied
{ Your last message is quoted below so the conversation is not lost
{ Run as a user defined button on selected message

{ Get some original info
{
ReadHeader $To To %message
ReadHeader $From From %message
ReadHeader $Cc Cc %message
ReadHeader $Subject_old Subject %message
ReadHeader $Date Date %message
ReadHeader $MessageId Message-ID %message
ReadHeader $ReplyFrom Received %message

{
{ Compose the subject, stripping off any existing Re:
{ and adding our own
{
ReadHeader $subject_tmp Subject %message
Trim $subject

:StripRe
StringPos #n "Re:" $subject_tmp
If #n ! 1 then DoneStripRe
SubStrings $subject_tmp "Re:"
Trim $subject_tmp
Goto StripRe
:DoneStripRe
Tomas
Tomas
Pillar of the Community
 
Posts: 1418
Joined: Sun Jul 25, 2004 1:34 am

Return to PocoScript Help and How-To

Who is online

Users browsing this forum: No registered users and 2 guests

cron