Hei,
Stuart Tares wrote:
> Unless I am missing something
Hm, seems like ;-)
AFAICS, you take the header and extract the information needed from the
header. In that special case, a moderator of a mailing list forwards (not
redirects) a message from a moderated member to the list. Therefore, not
the original information of the headers should be taken (because it will
be moderators name and the date of forwarding) but the data given in the
_body_ of the mail.
Another person asked for a similar solution: He gets data from a web form
in the body of an email.
I now managed to extract the mail address from this form (well, this is
not too hard actually ;-)). Now he wants (similar to the above problem I
think) to take some information from the form (here: the name) and put it
somewhere else in the body (to start the mail with "Dear Mister XXX" where
the XXX should be extracted from the original body of the mail).
So both problems have in common that one needs to take the body text,
extract some information (this should not be hard) and put it somewhere
else in the reply (but _not_ in one of the header fields - and this is
maybe a bit complicated).
>
>%SETPATTREGEXP="(?m-s)Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2}\:[\d]{0,2})\s*?(.*))
^^^^^^
Can you please tell me what that means?
> I don't know why the %TEXT didn't work but the above does for me. I
> think that the linefeed comes from the fact that when you edit a
> template, the editor wraps the text whenever you add/delete text.
> Always make sure that the line is on a single line.
Yes, this was the case in the formula I've posted. Maybe one needs some
\b, $, \z to set a boundary in the SetPattRegExp?
Thank you for your quick reply and sorry that I didn't express clearly
what I wanted.
--
Regards, G�nther
German TB! faq, and cut.exe - delete ads in mails
http://www.guenther-eisele.de/bat/
TheBat! 1.52f, Windows NT 5.0
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>
You are subscribed as : [email protected]