Re: RegExp question
Hi Peter, on Thu, 4 Oct 2001 13:37:01 +0200 GMT (which was Thursday, October 04, 2001, 13:37 where I live) Peter Meyns wrote: > Hi there, > since I moved my english lists to another email account the reply regexp > doesn't work as it did. It doesn't display the sender's time correctly. I have had the same problems! Try this one, which I got from Januk: %WRAPPED='on %SETPATTREGEXP="(?m-s)^Date\:\s*((.*?[\d]{4})\s*([\d]{0,2}\: [\d]{0,2})\s*(.*))"%REGEXPMATCH="%HEADERS" GMT (which was %ODateEn, %OTime where I live) %OFromName wrote:' For me, it is now o.K.! > Example: > On Thu, 04 Oct 2001 12:09:36 +0200GMT (which was 12:06 +0200GMT where I > live), Marck D Pearlstone presented us with these thoughts about "Filter on > Extension -- Follow up...": > should be: > On Thu, 04 Oct 2001 11:06:00 +0100GMT (which was 12:06 +0200GMT ... > Do different providers set the headers differently? As I understand, that's > where the regexp gets the information, so this could explain it. But I'm > only guessing... -- Best regards, Roland mailto: [EMAIL PROTECTED] PGP-Key: 0x0D023C45 Homepage: http://www.rolandburger.de I use The Bat! v1.53t under Windows 98 4.10 Build A ! -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: RegExp question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 4 Oct 2001 15:31:54 -0700GMT (which was 00:31 +0200GMT where I live), Januk Aggarwal wrote this about "RegExp question": JA> You just need to add one character to your regular expression Hello Januk, thanks ever so much. It's amazing how easy it can be when you know the solution! :o) - -- Cheers Peter -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) - GnuPGshell v1.91 Comment: GnuPG for better authentication. Key-ID: 0xE10774CE Comment: Key available at http://www.meynsweb.com/public-key.txt iD8DBQE7vT+MAzZSBuEHdM4RAskUAJ4+YU8TOU6AdafuFaaHMluGXEtnzACg5Ooa 6stu90uDv6/s97MASUZguYI= =liCF -END PGP SIGNATURE- -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: RegExp question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Januk, On 04 October 2001 at 15:31:54 -0700 (which was 23:31 where I live) Januk Aggarwal wrote to Peter Meyns and made these points: JA> This was asked previously, so perhaps the version of this macro on the JA> FAQ website should be updated. Point taken ... and acted upon ;-). - -- Cheers -- .\\arck D. Pearlstone -- List moderator and fellow end user ~~~ \ BrainStorm - free thinking - www: http://www.brainstormsw.com / \ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com / ' SB! v1.54/9/iKey1000-55238-48F0B on Windows NT 5.0.2195 Service Pack 2 ' -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) Comment: GPG Sealed for freshness iD8DBQE7vPGhOeQkq5KdzaARAh/6AJ9DTX1e/HyLCf1Tir2xrncTKLYFGACeMa+o Glsr8ddhjccoqj143shpP8o= =InLI -END PGP SIGNATURE- -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: RegExp question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Januk, On 04 October 2001 at 15:31:54 -0700 (which was 23:31 where I live) Januk Aggarwal wrote to Peter Meyns and made these points: JA> Personally, given the way you're using the macro, I'd use a simpler JA> regular expression: JA> On %SETPATTREGEXP="(?i)^Date\:\s*(.*)$"%REGEXPMATCH="%HEADERS"GMT (which was %ODateShort, %OTime +0200GMT JA> where I live), %OFROMNAME wrote this about "%OSUBJ": Or even (making use of some of the newfangled techno macros): %wrapped='On %SETPATTREGEXP="(?m-s)^Date\:\s*((.*?[\d]{4})\s*([\d]{0,2}\:[\d]{0,2})\s*(.*))"%- %REGEXPMATCH="%HEADERS"GMT (which was %ODateShort, %OTime +0200GMT%- where I live), %OFROMNAME wrote this about "%OSUBJ":' - -- Cheers -- .\\arck D. Pearlstone -- List moderator and fellow end user ~~~ \ BrainStorm - free thinking - www: http://www.brainstormsw.com / \ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com / ' SB! v1.54/9/iKey1000-55238-48F0B on Windows NT 5.0.2195 Service Pack 2 ' -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) Comment: GPG Sealed for freshness iD8DBQE7vO6UOeQkq5KdzaARAgrcAJwIJAvGFHFQwNSe88lgrOnvVDCC6wCfdaBN fJgmkmkPQCa1sht2vTsGsEk= =1poI -END PGP SIGNATURE- -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: RegExp question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Peter, On 04 October 2001 at 22:51:11 +0200 (which was 21:51 where I live) Peter Meyns wrote to Januk Aggarwal and made these points: PM> On%SETPATTREGEXP="(?m-s)Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2})\s*?(.*))"%REGEXPMATCH="%HEADERS"GMT (which was %ODateShort, %OTime +0200GMT PM> where I live), %OFROMNAME wrote this about "%OSUBJ": PM> So the exact date/time is given, but the regexp takes "Delivery-date" PM> instead of "Date". As I can see from messages to my GMX account, the GMX PM> server doesn't add a "Delivery-date" ... And it doesn't "Envelope-to" PM> (whatever again that means...) %SETPATTREGEXP="(?m-s)^Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2})\s*?(.*))"%- %REGEXPMATCH="%HEADERS"GMT (which was %ODateShort, %OTime +0200GMT%- where I live), %OFROMNAME wrote this about "%OSUBJ": That should tidy it up for you (anchoring the "Date" with a ^ prefix to indicate that it should start a line). - -- Cheers -- .\\arck D. Pearlstone -- List moderator and fellow end user ~~~ \ BrainStorm - free thinking - www: http://www.brainstormsw.com / \ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com / ' SB! v1.54/9/iKey1000-55238-48F0B on Windows NT 5.0.2195 Service Pack 2 ' -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) Comment: GPG Sealed for freshness iD8DBQE7vO4BOeQkq5KdzaARAnp/AJ9qwGrc8OlpsB3StK0fHyRzhpoQ7gCg8eyb b4WcdnxwnWvoXJGXb0Mm+8U= =Hp7C -END PGP SIGNATURE- -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: RegExp question
Hello Peter, It was foretold that on Thursday, October 4, 2001 at 22:51 GMT +0200, Peter Meyns [PM] would type: PM> On%SETPATTREGEXP="(?m-s)Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2})\s*?(.*))"%REGEXPMATCH="%HEADERS"GMT (which was %ODateShort, %OTime +0200GMT PM> where I live), %OFROMNAME wrote this about "%OSUBJ": PM> So the exact date/time is given, but the regexp takes "Delivery-date" PM> instead of "Date". This was asked previously, so perhaps the version of this macro on the FAQ website should be updated. You just need to add one character to your regular expression so it becomes: On %SETPATTREGEXP="(?m-s)^Date\:\s*((.*?[\d]{4})\s*([\d]{0,2}\:[\d]{0,2})\s*(.*))"%REGEXPMATCH="%HEADERS"GMT (which was %ODateShort, %OTime +0200GMT where I live), %OFROMNAME wrote this about "%OSUBJ": Personally, given the way you're using the macro, I'd use a simpler regular expression: On %SETPATTREGEXP="(?i)^Date\:\s*(.*)$"%REGEXPMATCH="%HEADERS"GMT (which was %ODateShort, %OTime +0200GMT where I live), %OFROMNAME wrote this about "%OSUBJ": -- Thanks for writing, Januk Aggarwal Using The Bat! 1.54 Beta/8 under Windows 98 4.10 Build A Is it OK to use the AM radio after noon? -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: RegExp question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 04 Oct 2001 21:50:54 +0200GMT (which was 04.10.2001, 21:49 +0200GMT where I live), Januk Aggarwal wrote this about "RegExp question": PM>> since I moved my english lists to another email account the reply regexp PM>> doesn't work as it did. It doesn't display the sender's time correctly. JA> Can you please paste in your current macro/template that generates JA> these lines? Also, please paste in the Date: header from the problem JA> message. Hi Januk, I was hoping on you. :o) I have it as a quick template and it works well with my GMX-received messages. But not with Puretec. It's the same one I used here with your msg... Here it is: On%SETPATTREGEXP="(?m-s)Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2})\s*?(.*))"%REGEXPMATCH="%HEADERS"GMT (which was %ODateShort, %OTime +0200GMT where I live), %OFROMNAME wrote this about "%OSUBJ": This is the excerpt from the headers regarding time: Return-path: <[EMAIL PROTECTED]> Envelope-to: [EMAIL PROTECTED] Delivery-date: Thu, 04 Oct 2001 12:09:36 +0200 Received: from [203.130.233.9] (helo=home.worldless.net) by mxng01.kundenserver.de with esmtp (Exim 3.22 #2) id 15p5Ra-0003Bf-00; Thu, 04 Oct 2001 12:09:31 +0200 Received: from localhost ([127.0.0.1] helo=thebat.dutaint.com) by home.worldless.net with esmtp (Exim 3.33 #2001) id 15p5JE-Ec-00; Thu, 04 Oct 2001 17:00:52 +0700 Received: from [62.172.35.210] (helo=silverstones.com) by home.worldless.net with esmtp (Exim 3.33 #2001) id 15p5JC-ES-00 for [EMAIL PROTECTED]; Thu, 04 Oct 2001 17:00:51 +0700 Received: from SILVERASUS.silverstones.com [192.168.4.2] by silverstones.com [127.0.0.1] with SMTP (MDaemon.v3.6.0a.R) for <[EMAIL PROTECTED]>; Thu, 04 Oct 2001 11:08:58 +0100 Date: Thu, 4 Oct 2001 11:06:00 +0100 From: Marck D Pearlstone <[EMAIL PROTECTED]> X-Mailer: Ritlabs SecureBat! (v1.54/9/iKey1000) ... etc. So the exact date/time is given, but the regexp takes "Delivery-date" instead of "Date". As I can see from messages to my GMX account, the GMX server doesn't add a "Delivery-date" ... And it doesn't "Envelope-to" (whatever again that means...) I'm very glad about your concern - thus I can hope for a solution. :o)) - -- Cheers Peter -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) - GnuPGshell v1.91 Comment: GnuPG for better authentication. Key-ID: 0xE10774CE Comment: Key available at http://www.meynsweb.com/public-key.txt iD8DBQE7vMrpAzZSBuEHdM4RArW9AJ0Q3Uw8lurkTD/RgpHCtZsQItE85gCeJVSA CP3kEGsDYLvm8qJbu8S2X94= =WPna -END PGP SIGNATURE- -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: RegExp question
Hello Peter, An archeological dig discovered that on Thursday, October 4, 2001 at 13:37 GMT +0200, Peter Meyns [PM] typed the following: PM> Hi there, PM> since I moved my english lists to another email account the reply regexp PM> doesn't work as it did. It doesn't display the sender's time correctly. Can you please paste in your current macro/template that generates these lines? Also, please paste in the Date: header from the problem message. -- Thanks for writing, Januk Aggarwal Using The Bat! 1.54 Beta/8 under Windows 98 4.10 Build A Personal Plan: To avoid sanity, lucidity and wit at all costs. -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
RegExp question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, since I moved my english lists to another email account the reply regexp doesn't work as it did. It doesn't display the sender's time correctly. Example: On Thu, 04 Oct 2001 12:09:36 +0200GMT (which was 12:06 +0200GMT where I live), Marck D Pearlstone presented us with these thoughts about "Filter on Extension -- Follow up...": should be: On Thu, 04 Oct 2001 11:06:00 +0100GMT (which was 12:06 +0200GMT ... Do different providers set the headers differently? As I understand, that's where the regexp gets the information, so this could explain it. But I'm only guessing... - -- Cheers Peter -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) - GnuPGshell v1.91 Comment: GnuPG for better authentication. Key-ID: 0xE10774CE Comment: Key available at http://www.meynsweb.com/public-key.txt iD8DBQE7vElXAzZSBuEHdM4RAo8qAKCmKNnyyXmQWpLklDz2RCfOrXnfewCgxbMU j7FNbNojdpxExZXUyBihJUo= =pPUU -END PGP SIGNATURE- -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]