Re: A useful macro that I thought I'd share.
Hello Lars, On Monday, November 19, 2001 at 08:56 GMT +0100, a creature mimicking Lars Geiger [LG] wrote: snip, moved to end LG But if I test the following QT (in a reply, of course) it outputs an LG error *** Error: range out of order in character class *** Problem is you're trying to use the wrong syntax for the X-Mailer or User-Agent choice. The square brackets mark a list of characters you want to choose from. In this context, the '-' character indicates a range of characters. Since 'X' is after 'M' and 'r' is after 'A', you are specifying invalid ranges. To correct it, you must use something like: %SETPATTREGEXP=(?im-s)^(X-Mailer|User-Agent)\:.*(Bat!|Becky|Gnus) LG Anyway, I just tried to track down the mistake in my logic and I just LG seem to be unable to see the point. IIRC, %SETPATTREGEXP defines a LG pattern and %REGEXPMATCH will return the first matched subpattern. %REGEXPMATCH will return subpattern 1 if it isn't empty, otherwise it will return subpattern 0. So even if the match doesn't detect one of the three mailers, the overall pattern should return something. In my corrected expression above, the subpattern of interest is subpattern 2. That means the final corrected version should be: %IF:'%- %SETPATTREGEXP=(?im-s)^(X-Mailer|User-Agent)\:.*(Bat!|Becky|Gnus)%- %REGEXPBLINDMATCH=Headers%- %SUBPATT=2%- '='':'None':'I' -- Thanks for writing, Januk Aggarwal Using The Bat! 1.54/10 under Windows 98 4.10 Build A I was the next door kid's imaginary friend. -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: A useful macro that I thought I'd share.
Hi Januk, On Monday, November 19, 2001 at 00:38:32 [GMT -0800], you wrote: Problem is you're trying to use the wrong syntax for the X-Mailer or User-Agent choice. The square brackets mark a list of characters you want to choose from. In this context, the '-' character indicates a range of characters. Since 'X' is after 'M' and 'r' is after 'A', you are specifying invalid ranges. To correct it, you must use something like: %SETPATTREGEXP=(?im-s)^(X-Mailer|User-Agent)\:.*(Bat!|Becky|Gnus) Ah, I see. I thought of [] as a possibility to group several alternatives without defining a subpattern. -- Regards, Lars The Bat! 1.54/10 on Windows NT 5.0 Build 2195 Service Pack 2 |Lars Geiger | mailto:[EMAIL PROTECTED]| -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: A useful macro that I thought I'd share.
Hi Januk, On Monday, November 19, 2001 at 00:38:32 [GMT -0800], you wrote: 2. That means the final corrected version should be: %IF:'%- %SETPATTREGEXP=(?im-s)^(X-Mailer|User-Agent)\:.*(Bat!|Becky|Gnus)%- %REGEXPBLINDMATCH=Headers%- %SUBPATT=2%- '='':'None':'I' Unfortunately, that doesn't work either... (see above). If I try only the RegExp in a QT, both subpattern 1 and 2 are returned empty. And the message definitely contains X-Mailer: The Bat! (v1.54/10). And even subpattern 0 is empty. (???) Maybe I should intensify my studies on regular expressions. :-) -- Regards, Lars The Bat! 1.54/10 on Windows NT 5.0 Build 2195 Service Pack 2 |Lars Geiger | mailto:[EMAIL PROTECTED]| -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: A useful macro that I thought I'd share.
Hello Lars, Historians believe that Monday, November 19, 2001 at 10:09 GMT +0100 was when, Lars Geiger [LG] typed the following: LG Hi Januk, LG On Monday, November 19, 2001 at 00:38:32 [GMT -0800], you wrote: 2. That means the final corrected version should be: %IF:'%- %SETPATTREGEXP=(?im-s)^(X-Mailer|User-Agent)\:.*(Bat!|Becky|Gnus)%- %REGEXPBLINDMATCH=Headers%- %SUBPATT=2%- '='':'None':'I' LG Unfortunately, that doesn't work either... (see above). If I try only LG the RegExp in a QT, both subpattern 1 and 2 are returned empty. And the LG message definitely contains X-Mailer: The Bat! (v1.54/10). And even LG subpattern 0 is empty. (???) It works on my machine. When you're testing the regexp, remember to remove the %IF macro. Otherwise you won't see the subpatterns. Copying from above, you can test the following: ,- [ test QT ] | %SETPATTREGEXP=(?im-s)^(X-Mailer|User-Agent)\:.*(Bat!|Becky|Gnus)%- | %REGEXPBLINDMATCH=Headers%- | %SUBPATT=2%- | | SubPatt 0 = %SUBPATT=0 | 1 = %SUBPATT=1 | 2 = %SUBPATT=2 | 3 = %SUBPATT=3 '- -- Thanks for writing, Januk Aggarwal Using The Bat! 1.54/10 under Windows 98 4.10 Build A OK, I'm weird! But I'm saving up to become eccentric. -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Be careful with 1.53 (was: Update Questions)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello CaLViN! On Montag, 19. November 2001 at 18:23:50 you wrote: Can not confirm. Using 1.53d and everything concerning QTs is fine. Like it always was for me... I assume that the original poster did work out his QT's with beta 10e and then tried them in 1.53. There seems to be a problem with the format. When I reverted to 10 (shortly) the QT's I edited in 10e were not listed. Perhaps there is something more to it ...? - -- Dierk Haasis http://www.Write4U.de PGP keys available: mailto:[EMAIL PROTECTED]?Subject=SendMyPGPkeys The Bat 1.54/10e on Windows 95 4.0 67306684 C You can't please everyone, so you've got to please yourself. (Ricky Nelson) -BEGIN PGP SIGNATURE- Version: PGP 6.5.8ckt Comment: Privacy is the core element to Freedom! iQA/AwUBO/k6ofTo1oA8g8dLEQL/LACfYZNx+cBxc/66RZkuJFtfRavTtOwAn0dx QNS0jE1HtR3b8Lfr11l8mgHb =rbKX -END PGP SIGNATURE- -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Be careful with 1.53
Hi CaLViN, [ Boxquotes ] for some reason the QTs _don't_ work on TB! 1.53. I don't know why. They are usable with 1.54 betas. Can not confirm. Using 1.53d and everything concerning QTs is fine. Like it always was for me... I was talking about the QTs I posted earlier in this thread (Boxquotes). Sorry for the misunderstanding. QTs in general are okay... -- Best regards, Carsten The Bat! (v1.54/10e) Business Windows NT 5.0 (Build 2195) Service Pack 2 -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Update Questions (was: Boxquotes à la KorrNews and new quotestyle)
Hello Allie. At 7:54 PM on Monday, November 19, 2001 you wrote the following on the posted subject 'Update Questions (was: Boxquotes à la KorrNews and new quotestyle)': AM This one is great but I had to change the last two AM lines of the template to: Allie This problem was as a result of strange application Allie interactions. [...] WindowBlinds which I've decided Allie to stop running [...] With WindowBlinds disabled, the Allie macro now works as advertised. This is interesting to me because I thought I was going a little crazy. I've been playing around w Windowblinds, too, noticed some strange goings_on particularly in the editor. But I think I've also found that it depends on the skin. Some seem to be more stable than others (if that's possible) I'm using Windowblinds v3, enhanced. But I have to admit I haven't tried it with the particular macro which I will try to do tomorrow. -- Jan Rifkinson Ridgefield, CT USA TB! V1.54/10/W2K_SP2/PGP Key ID: 0x3F14A060 ICQ 41116329 -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Update Questions (was: Boxquotes à la KorrNews and new quotestyle)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 @ 21:01:00 -0500 [ Mon, 19 Nov 2001], Jan Rifkinson [JR] thoughtfully wrote the following: ... JR This is interesting to me because I thought I was going a little JR crazy. I've been playing around w Windowblinds, too, noticed JR some strange goings_on particularly in the editor. But I think JR I've also found that it depends on the skin. Some seem to be more JR stable than others (if that's possible) Anything seems to be possible with WindowBlinds. It causes problems where you least expect it to be and you end up creating false alarms. For example, I was having a problem with GPG Shell and not only did I have to disable Windowblinds. I also had to log off and on to get rid of the messy interaction. JR I'm using Windowblinds v3, enhanced. Same here. JR But I have to admit I haven't tried it with the particular macro JR which I will try to do tomorrow. You'll see problems elsewhere. :-( I much prefer stability to eye candy, so away it goes. - -- ©Allie C Martin -- List Moderator and fellow end-user PGPKey - mailto:[EMAIL PROTECTED]?Subject=PGPPubKey1 [MUA: TB! v1.54/10e (*) OS: Win2K SP 2] __ -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) Comment: Sealed for Security iEYEARECAAYFAjv5v8cACgkQV8nrYCsHF+KGIwCeJKppCwFmLJSJCwLmSiAGMCZh VZgAnibEXhIlZ9rpntsojWOqjAYM9cge =t/21 -END PGP SIGNATURE- -- __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]