Hello MarkB
many years ago you helped me with a script I had created using a script coming with pocomail for answering mail when absent. I use it together with a incoming filter for moving it afterwards into the specific folder:
External $userdata1 "Choose a character to quote message with:" ">"
External $userdata1 "Choose a character to quote message with:" ">"
External $userdata1 "Choose a character to quote message with:" ">"
{### Reply to Mail from ZVAB with Template
{----------
{v1.0 - 2002.02.11 - Roger Leemann / Götz Perll
{ Copy of "Reply with Template"
{----------
{ This script will reply to a message from a saved template
{ Usage: not suitable for automatic use; use only on demand.
{ Initialize user settings: }
External $userdata1 "Choose a character to quote message with:" ">"
External $userfile1 "Create body template" "Zvab_ErstbestellerVorausrechnungRpl.txt"
CreateMessage %m
ReadHeader $a Subject %message
AddStrings $subject "Bestätigung mit Voraus-Rechnung für die "
AddStrings $subject $a
SetHeader %m Subject $subject
OpenBody $Body $userfile1
ReadHeader $From From %message
AddTo %m $From
{ If template file exists load it }
FileExists &F $userfile1
if &F then UseBody
{ Otherwise, use a blank template }
Set $a "MESSAGE BODY TEMPLATE CURRENTLY NOT SET"
AppendBody $a " "
AppendBody $a " "
AppendBody $a "To use this script, please setup a default message body template:"
AppendBody $a " "
AppendBody $a " press F9 to open Filters and Scripts window, then click on Setup Script."
AppendBody $a " From the drop down box select script \"Reply with Template\"."
AppendBody $a " Click on the Create Body Template button to create a template."
AppendBody $a " When done, just click on File, Save."
goto Edit
:UseBody
set $a $Body
:Edit
ReadBody $b %message
{v1.0 delete certain lines with information that the adresseee shouldn't see
set #ll -1
LocateLine #ll "Diese Bestellung wurde vom ZVAB" $b
if #ll > -1 then DL1
goto FL2
:DL1
DeleteLine $b #ll 1
:FL2
set #l -1
LocateLine #ll "Zum Bearbeiten bzw. Reaktivieren dieser Bestellung" $b
if #ll > -1 then DL2
goto FL3
:DL2
DeleteLine $b #ll 2
:FL3
set #ll -1
LocateLine #ll "Die ZVAB-Mitgliedsnummer Ihres Antiquariats lautet" $b
if #ll > -1 then DL3
goto CONT
:DL3
DeleteLine $b #ll 1
:CONT
QuoteBody $b $UserData1
AppendBody $a " "
AppendBody $a $b
AssignBody %m $a
EditMessage %m
MarkMessage %message 8
:EXIT
This are the incoming filter settings:
bestellung@zvab.com,From,script,Bestellungsdruck,0,0,ABC,or,1,"Bestellung via Abebooks:",Subject,move,Korrespondenz\ABC\BestellEingang,0,0,or,0,"(via CGI)",Subject,print,"this message",0,0,or,0,"antiquariat.de-Bestellung vo",Subject,move,In,0,0,or,0,bestellung,Subject,move,In,0,0,,0,,,move,In,0,0,1,0
...and a few years ago you created for me a script which adds a BC address to every outgoing mail. It is run by a filter in outgoing.
Code:
AddBCC %message "goetz.perll@orange.fr"
This are the outgoing filter settings:
perll@abc-buch.ch,From,script,AddBC,0,0,,,1,,,move,Sicherheit\SicherheitAusgang,0,0,,0,,,move,In,0,0,,0,,,move,In,0,0,,0,,,move,In,0,0,,0,,,move,In,0,0,0,0
Only now I realised, that, when I use addBCC, the other script doesn't work anymore the way it ought to.
My question: Can I merge them into 1 script?