Hello,
with the help of the auto replay script which came with Poco I created a few years ago about a dozen scripts for specific needs and all of them work fine.
Now I get a email, for which I havn't been able to find the solution I need.

The email I have to answer brings within the body after a first
"E-Mail: " my mail address
and only after the 2nd E-Mail: comes the mail address needed.

The code I posted is a demonstration of a way to find a line that contains "Email: " but not "xxxx@xxx-xxxx.ch". I was hoping that you could modify your existing script to incorporate the demonstrated ideas. If you want help with that, please post the script here.

For an explanation of $userfile1, see PocoScript Help under "External."

Last edited by MarkB on Sun May 04, 2008 7:15 am, edited 1 time in total.

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.2 - 2008.05.04 - Roger Leemann / GÃƒÂ¶tz Perll and{ the help of MarkB and making use 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.

And this is what it does. When I get an email to which I want send an answer but where in FROM: is not the address of the people to which I want to send the mail, it looks in the body for the address to use.Since in the body is mentioned not only my clients E-Mail address, but also my address (xxxx@xxx-xxxx.ch) and also the one of the company from which I received the mail (xxxx@xxx-xxxx.com) the part of the script which starts with

LineCount #i $b

and ends with

:ExitFindLoop

keeps the script from selecting these two addresses, which are not needed, and selects the one to which I wish to send my confirmation.

Furthermore some standard text in which I say thank you for the order and recomand my own homepage. etc. is enteredwith

External $userfile1 "Create body template" "ZvabStdRpl.txt"

And at several place some of the text transmitted from ZVAB to me, which my client does not need to see and/or takes only lots of paper when printed, is deleted with this: