On Wednesday, March 14, 2001 at 17:51:12 +0100 André Engelhardt wrote:
> here's how I put it into my template:
>
>%SETPATTREGEXP="(?m-s)Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2}\:[\d]{0,2})\s*?(.*))"%REGEXPBLINDMATCH="%HEADERS"
> On %ODATE at %SUBPATT="3"GMT%SUBPATT="4" (which was %OTIME where I live) you wrote:
> Here's a header of a brazilian sender (also displays GMT+0100 when I
> reply to it):
> -------------
> Delivery-date: Wed, 14 Mar 2001 14:32:23 +0100
This is the cause of the problem. The RegExp caught this instead of
this:
> Date: Wed, 14 Mar 2001 13:31:30 -0000
which is what you really want. That also explains the 5-min
difference you got in your original example as quoted below:
> On Wednesday, March 14, 2001 at 14:32:23GMT +0100 (which was 5:31
> AM where I live) you wrote:
The "14:32:23GMT +0100" time was taken from the "Delivery-date"
field, while the "5:31" was taken from the "Date:" field.
This is the first time I've ever seen this "Delivery-date" header,
and I guess the model macro wasn't designed with it in mind. To
remedy it, add a "^" between "(?m-s)" and "Date", like this
%SETPATTREGEXP="(?m-s)^Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2}\:[\d]{0,2})\s*?(.*))"%REGEXPBLINDMATCH="%HEADERS"
On %ODATE at %SUBPATT="3"GMT%SUBPATT="4" (which was %OTIME where I live) you wrote:
It works here.
--
Best regards,
Ming-Li
The Bat! 1.52 Beta/1 | Win2k SP1
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>