Re[2]: Some questions about 1.36

1999-10-14 Thread Oliver Sturm

Hi HAVOK,

On Donnerstag, 14. Oktober 1999 at 1:40:44 you wrote:

>> Does  anyone have an idea how I could get The Bat! to show me lines
>> starting  with  "Iquotedis:" (or whatever) as quotes in the message
>> viewer? Again, I mean, using the red and bold style.

H> You mean something like %REGEXPQUOTES="Iquotedis:"?

Exactly, but where would I be supposed to put this? That would be some
kind  of option for the message viewer, so I can't put it in any of my
templates?!



Oliver Sturm

--
Oliver Sturm / <[EMAIL PROTECTED]>

Key ID: 71D86996
Fingerprint: 8085 5C52 60B8 EFBD DAD0  78B8 CE7F 38D7 71D8 6996

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-13 Thread HAVOK

On Wed, Oct 13, 1999 at 09:30:54PM +0200, Oliver Sturm wrote:
> 
> On Mittwoch, 13. Oktober 1999 at 9:48:18 you wrote:
> >>
> >> >> 1) What do I do with %REGEXPTEXT & %REGEXPQUOTES macros ?
> >> 

[my try at an explanation for %REGEXPQUOTES]

> Wow, now I get a first idea what all this might be about!! So you mean
> you  can  specify  what  parts of a received message the mailer should
> quote when writing a reply. 

Could be, but i didn't mean it.

> Or what parts of a message should be shown
> in  some special style (like red and bold ;) when viewing the message.
> SO.

This is what I meant.

(little offtopic) My current mailer can color each quote different. I
can color the quotes just as this example:
> > > > green
> > > red
> > blue
> yellow
black

(I don't know if The Bat! supports this currently.)

> Does  anyone  have  an  idea how I could get The Bat! to show me lines
> starting  with  "Iquotedis:"  (or  whatever)  as quotes in the message
> viewer? Again, I mean, using the red and bold style.

You mean something like %REGEXPQUOTES="Iquotedis:"?

> Anyway, what is %REGEXPTEXT for? Or is it just complementary?

Don't know. I still haven't tried my idea (still have to install 1.36 on
a windows machine :) 

> Oliver Sturm

Cya,
 Olav
-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-13 Thread Paula Ford

On Wednesday, October 13, 1999, Oleg Zalyalov wrote:

> When  I  was  a  programmer, I used regular expressions for search and
> replace  widely,  and  I can at least imagine what it is. But I cannot
> understand  how  regexps can be applied to inserting quoted text. That
> is  why  I  need  documentation  about  that,  or at least any working
> example.

It is becoming really ridiculous when the users are having to go around
and around on a mailing list, drawing inferences from other contexts and
even quoting from manuals from other programs, trying to figure out how
a new feature or capability is used.

-- 
Paula Ford
The Bat! 1.35 (reg)
Windows 95 4.0 Build 950

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re[2]: Some questions about 1.36

1999-10-13 Thread Oliver Sturm

Hi HAVOK,

On Mittwoch, 13. Oktober 1999 at 9:48:18 you wrote:
>>
>> >> 1) What do I do with %REGEXPTEXT & %REGEXPQUOTES macros ?
>> 

H> The default setting for this option is "^([ \t]*[>|#:}])+". This means:
H>  - Zero or more spaces/tabs (tab, space, tab, tab is valid);
H>  - Followed by the symbol >, |, #, : or }
H>  - And the 2 lines above will be matched one or more times

H> Note that this default does not match the use of names before the
H> quote-character (like ``HAVOK> Paula> Andrew> ''). Using this example
H> you can easily test if The Bat! %REGEXPQUOTES is the same as my
H> quote_regexp.

H> (I have changed quote_regexp to "^([ \t]*[a-zA-Z]*[>#|])+".)

Wow, now I get a first idea what all this might be about!! So you mean
you  can  specify  what  parts of a received message the mailer should
quote when writing a reply. Or what parts of a message should be shown
in  some special style (like red and bold ;) when viewing the message.
SO.

Does  anyone  have  an  idea how I could get The Bat! to show me lines
starting  with  "Iquotedis:"  (or  whatever)  as quotes in the message
viewer? Again, I mean, using the red and bold style.

Anyway, what is %REGEXPTEXT for? Or is it just complementary?

Oliver Sturm

--
Oliver Sturm / <[EMAIL PROTECTED]>

Key ID: 71D86996
Fingerprint: 8085 5C52 60B8 EFBD DAD0  78B8 CE7F 38D7 71D8 6996

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re[3]: Some questions about 1.36

1999-10-13 Thread tracer

Hello Oleg,

Wednesday, Wednesday, October 13, 1999, you wrote:

Oleg Zalyalov> Hello, the Bat! list recipients,

Oleg Zalyalov> Tuesday, October 12, 1999, Steve Lamb wrote about
Oleg Zalyalov> Some questions about 1.36:

SL>> Also  something  that  you  may be overlooking is that the regexps
SL>> aren't only implemented in the filters and the macros but also the
SL>> search strings.

Oleg Zalyalov> When  I  was  a  programmer, I used regular expressions for search and
Oleg Zalyalov> replace  widely,  and  I can at least imagine what it is. But I cannot
Oleg Zalyalov> understand  how  regexps can be applied to inserting quoted text. That
Oleg Zalyalov> is  why  I  need  documentation  about  that,  or at least any working
Oleg Zalyalov> example.


100% agreed, its not in the help file, and its no good referring to
regular expressions unless specifically it mentioned what and how
they are supported.
I wanted to use the, to get rid of spam and cannot find anything
except that my help file is out of date...

Best regards,
 
tracer

mail to: [EMAIL PROTECTED] 
NOTE: 1 MAILRUN PER DAY ONLY



-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, click below and send the generated message.
   <mailto:[EMAIL PROTECTED]>
--




Re: Some questions about 1.36

1999-10-12 Thread HAVOK

On Mon, Oct 11, 1999 at 11:34:41AM -0400, Paula Ford wrote:

> On Monday, October 11, 1999, Andrew K. Lovetski wrote:
> 
> >> 1) What do I do with %REGEXPTEXT & %REGEXPQUOTES macros ?
> 
> > Steve Lamb already answered this.
> 
> He didn't really explain what they do or what they might be used for.
> Anyone else?

The emailprogram that I currently use has also support for regular
expressions. I think that %REGEXPQUOTES is the same as the option
``quote_regexp'' with my mailer.

This is what it means: (from the manual)

: A regular expression used in the internal-pager to determine quoted
: sections of text in the body of a message.

The default setting for this option is "^([ \t]*[>|#:}])+". This means:
 - Zero or more spaces/tabs (tab, space, tab, tab is valid);
 - Followed by the symbol >, |, #, : or }
 - And the 2 lines above will be matched one or more times

Note that this default does not match the use of names before the
quote-character (like ``HAVOK> Paula> Andrew> ''). Using this example
you can easily test if The Bat! %REGEXPQUOTES is the same as my
quote_regexp.

(I have changed quote_regexp to "^([ \t]*[a-zA-Z]*[>#|])+".)

Hope this helps.

Cya,
 Olav

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re[2]: Some questions about 1.36

1999-10-12 Thread Oleg Zalyalov

Hello, the Bat! list recipients,

Tuesday, October 12, 1999, Steve Lamb wrote about
Some questions about 1.36:

SL> Also  something  that  you  may be overlooking is that the regexps
SL> aren't only implemented in the filters and the macros but also the
SL> search strings.

When  I  was  a  programmer, I used regular expressions for search and
replace  widely,  and  I can at least imagine what it is. But I cannot
understand  how  regexps can be applied to inserting quoted text. That
is  why  I  need  documentation  about  that,  or at least any working
example.

-- 
Best regards,
Oleg Zalyalov. mailto:[EMAIL PROTECTED]

  Using The Bat! version 1.36
  under Windows NT 4.0 Build 1381 Service Pack 5, RC 1.1

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, click below and send the generated message.
   <mailto:[EMAIL PROTECTED]>
--




Re: Some questions about 1.36

1999-10-12 Thread Steve Lamb

Tuesday, October 12, 1999, 10:45:18 AM, Oliver wrote:
> Ok, you might say, just don't use them. I was just wondering... I know you
> can do a LOT of nice things with regexps, so I'd really like to use them in
> some way ;)

In 'merica we have a saying for this.  "Give a child a hammer and
everything looks like a nail."  Not all problems are solved with a particular
tool.  Also something that you may be overlooking is that the regexps aren't
only implemented in the filters and the macros but also the search strings.
For someone, like me, who keeps large databases of mail, having regexps to
search through that is yet another good example of regexps (YAGEOR).  I don't
know if you have such a database, but if you do then you may, from time to
time, have use for it.

-- 
 Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
 ICQ: 5107343  | main connection to the switchboard of souls.
---+-

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re[2]: Some questions about 1.36

1999-10-12 Thread Oliver Sturm

Hi Steve Lamb,

On Dienstag, 12. Oktober 1999 at 17:47:00 you wrote:

SL> Tuesday, October 12, 1999, 2:20:53 AM, Oleg wrote:
>> I believe it can be very useful if you are answering a standard letter,
>> where it is easy to select a text which have to be quoted. Anyway, did
>> anybody try this already and can provide an example?

SL> Another good example would be to automatically remove quoted material in
SL> your quote by excluding any line that starts with >>.  :)


Hm.  Nice.  ;)  I  think those are good examples of how to use regular
expressions...  but  since  hearing  about them in The Bat!, I've been
thinking  about  what exactly to do with them. I don't usually receive
mail that is so very standardized that I could use regular expressions
to  filter  the quotation... Ok, you might say, just don't use them. I
was  just  wondering...  I  know  you can do a LOT of nice things with
regexps, so I'd really like to use them in some way ;)

Oliver Sturm

--
Oliver Sturm / <[EMAIL PROTECTED]>

Key ID: 71D86996
Fingerprint: 8085 5C52 60B8 EFBD DAD0  78B8 CE7F 38D7 71D8 6996

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-12 Thread Steve Lamb

Tuesday, October 12, 1999, 2:20:53 AM, Oleg wrote:
> I believe it can be very useful if you are answering a standard letter,
> where it is easy to select a text which have to be quoted. Anyway, did
> anybody try this already and can provide an example?

Another good example would be to automatically remove quoted material in
your quote by excluding any line that starts with >>.  :)

-- 
 Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
 ICQ: 5107343  | main connection to the switchboard of souls.
---+-

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re[3]: Some questions about 1.36

1999-10-12 Thread Oleg Zalyalov

Hello, the Bat! list recipients,

Monday, October 11, 1999, Oliver Sturm wrote about
Some questions about 1.36:

OS> Well,  I know something about regular expressions and I'd sure like to
OS> use them (actually got them to work in the inbox filters), but I still
OS> can't imagine what exactly these macros might be for.

Correct me, if I wrong:

Now you can define which part of text should be quoted in reply and to
do it you should specify a RegExp pattern as a parameter string.

I  believe  it  can  be  very  useful  if you are answering a standard
letter,  where  it  is  easy to select a text which have to be quoted.
Anyway, did anybody try this already and can provide an example?

-- 
Best regards,
Oleg Zalyalov. mailto:[EMAIL PROTECTED]

  Using The Bat! version 1.36
  under Windows NT 4.0 Build 1381 Service Pack 5, RC 1.1

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, click below and send the generated message.
   <mailto:[EMAIL PROTECTED]>
--




Re[2]: Some questions about 1.36

1999-10-11 Thread Oliver Sturm

Hi Andrew K. Lovetski,

On Montag, 11. Oktober 1999 at 13:15:53 you wrote:

>> 2) If I create a new message, enter some text and close the window,
>> why  is  that  question  asking  me  whether to trash my changes in
>> russian (or some other language I can't read)?

AKL> If you have International Pack installed, then update your .LNG file -
AKL> download it from http://www.ritlabs.com/the_bat/beta.html An old LNG
AKL> file is often the cause of such troubles. If you don't have any .LNG
AKL> file in The Bat! directory, then I cannot imagine any cause for the
AKL> behavior described.

Well,  I  had  the  newest  language pack installed already, but after
reinstalling  it (after the update to 1.36), the russian (or whatever)
message vanished.

>> 4) Why does it say "Entering an _indexed_ folder is 2-4 times faster"?
>>I  didn't  know  yet  there was something like an indexed folder as
>>opposed to a non-indexed folder?!

AKL> Oleg Zalyalov wrote:
>> I  did  understand that phrase as follows: now folders are indexed and
>> that  makes TB! to open them 2-4 times faster. I don't know whether it
>> is  a  real  fact or a result of suggestion, but it seems to me really
>> working faster.

They  do  work  faster. I have some folders containing several hundred
messages and they definitely open faster. Thank god for that!!! ;)


Oliver Sturm

--
Oliver Sturm / <[EMAIL PROTECTED]>

Key ID: 71D86996
Fingerprint: 8085 5C52 60B8 EFBD DAD0  78B8 CE7F 38D7 71D8 6996

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re[2]: Some questions about 1.36

1999-10-11 Thread Oliver Sturm

Hi Steve Lamb,

On Montag, 11. Oktober 1999 at 10:07:04 you wrote:

SL> Monday, October 11, 1999, 1:01:26 AM, Ali wrote:
OS 1) What do I do with %REGEXPTEXT & %REGEXPQUOTES macros ?
>>> I  do  suspect  that  these  macros  should change the quoting prefix,
>>> although I didn't check it myself.

>> I tried them and can't seem to get them to do change the quote prefix.
>> Probably they're for some other mysterious purpose but I'd sure like to
>> know since I may find use for them.

SL> The answer is in the changes log.  They have added Perl style regular
SL> expressions to certain areas of TB!.  Regular expressions (regexp) are
SL> patterns that match against text and allow for the inclusion or exclusion of
SL> said text in a very powerful manner.  Anyone who has done any work on unix
SL> with either grep, perl or sed will know what regexps do and will most likely
SL> be doing the jig next to their keyboard when they find out they are in TB!.

Well,  I know something about regular expressions and I'd sure like to
use them (actually got them to work in the inbox filters), but I still
can't imagine what exactly these macros might be for.

Oliver Sturm

--
Oliver Sturm / <[EMAIL PROTECTED]>

Key ID: 71D86996
Fingerprint: 8085 5C52 60B8 EFBD DAD0  78B8 CE7F 38D7 71D8 6996

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-11 Thread Steve Lamb

Monday, October 11, 1999, 8:34:41 AM, Paula wrote:
> He didn't really explain what they do or what they might be used for.
> Anyone else?

Well, not those specifically.  If I were to guess you would put a regexp
expression into the macro and it would either copy (test) or quote (quote) the
matched text into the body of the message.

-- 
 Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
 ICQ: 5107343  | main connection to the switchboard of souls.
---+-

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-11 Thread Paula Ford

On Monday, October 11, 1999, Andrew K. Lovetski wrote:

> Hello, The Bat Users!

>> 1) What do I do with %REGEXPTEXT & %REGEXPQUOTES macros ?

> Steve Lamb already answered this.

He didn't really explain what they do or what they might be used for.
Anyone else?

-- 
Paula Ford
The Bat! 1.35 (reg)
Windows 95 4.0 Build 950

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-11 Thread Alexander V. Kiselev

Hi there!

On 11 Oct 99, at 3:51, Ali Martin wrote
about "Re: Some questions about 1.36":

Btw, for all interested: www.perl.com --- the Regular Expression 
syntax is all there:-)

> > The answer is in the changes log.  They have added Perl style regular
> > expressions to certain areas of TB!.  Regular expressions (regexp) are
> > patterns that match against text and allow for the inclusion or exclusion of
> > said text in a very powerful manner.  Anyone who has done any work on unix
> > with either grep, perl or sed will know what regexps do and will most likely
> > be doing the jig next to their keyboard when they find out they are in TB!.
> > 
> > BTW, it is something that I've been trying to get into PMMail for years.
> 
> Well, I don't expect any details from you but the lack of
> documentation by Ritlabs would indicate to me that they wish to leave
> the 'jigging' to those who already are familiar with regexp and how to
> use them.
> 
> Should I take it to mean then that only those who are already familiar
> with it would have use for it?


SY, Alex
(St.Petersburg, Russia)
-- 
Thought for the day:
  Any system or problem, however complicated, if looked at
  in exactly the right way, will become even more complicated.

--- 
PGP public keys on keyservers:
0xA2194BF9 (RSA);   0x214135A2 (DH/DSS)
fingerprints:
F222 4AEF EC9F 5FA6  7515 910A 2429 9CB1 (RSA)
A677 81C9 48CF 16D1 B589  9D33 E7D5 675F 2141 35A2 (DH/DSS) 
--- 

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, click below and send the generated message.
   <mailto:[EMAIL PROTECTED]>
--




Re: Some questions about 1.36

1999-10-11 Thread Ali Martin

Hi all,

On Monday, October 11, 1999, 4:22:37 AM (-5 GMT), Steve scribbled:

> Well, no.  Regexps are one of those features where you don't know you'd
> use it until you learn it and use it.  Once you do then whenever you find
> yourself in a situation that would be solved nicely and neatly with them and
> they are not present it is like missing a limb.  Sure, you can get the job
> done another way but it takes a while to do it.  ;)

 well done explanation

> Again, that is but a simplistic example of what regexps could do.  I guess
> what I'm trying to say in my long-winded style is that regexps are an
> excellent tool for manipulating text and email, being a text-based medium, is
> an application exceptionally suited for their use.

Thanks very much Steve for spending the time to sensitize me to this
whole thing. After writing that reply to your initial message I
decided to type 'regexp' into a 'google' search and did come up with
quite a bit of info and as you said, it is complex. But it's indeed
interesting and I'll continue looking at it and familiarizing myself
with it. Thanks again. :)


-- 
Regards,
 -=Ali=-   

   >>> BREAKFAST.COM Halted - Cereal port not responding. <<<
*---*
 Using The Bat! 1.36 on Windows NT 4.0 (Service Pack 5)
*---*

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re[2]: Some questions about 1.36

1999-10-11 Thread Nick Danger

In Reference to "Some questions about 1.36" From Steve Lamb:


SL>  Anyone who has done any work on unix with either grep, perl or
SL> sed will know what regexps do and will most likely be doing the
SL> jig next to their keyboard when they find out they are in TB!.

  So that's what that infernal racket is that I've been hearing down
the hall! I though Michael Flatley has stopped by  :-)


-- 
- Nick

Nick Danger's Complimentary Curse <(©¿©)>:
May 1,024 unemployed opera singers urinate in your trousers.

Using The Bat! 1.36
 under Windows 98 4.10 Build 1998  



-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, click below and send the generated message.
   <mailto:[EMAIL PROTECTED]>
--




Re: Some questions about 1.36

1999-10-11 Thread Andrew K. Lovetski

Hello, The Bat Users!

> 1) What do I do with %REGEXPTEXT & %REGEXPQUOTES macros ?

Steve Lamb already answered this. What I want to add is the
description of these macroses on the Macros Popup menu (Text submenu):

%REGEXPTEXT - RegExp subpattern of %TEXT
%REGEXPQUOTES - Quoted RegExp subpattern of %TEXT

> 2)  If  I  create a new message, enter some text and close the window,
> why  is  that  question  asking  me whether to trash my changes in
> russian (or some other language I can't read)?

If you have International Pack installed, then update your .LNG file -
download it from http://www.ritlabs.com/the_bat/beta.html An old LNG
file is often the cause of such troubles. If you don't have any .LNG
file in The Bat! directory, then I cannot imagine any cause for the
behavior described.

> 4) Why does it say "Entering an _indexed_ folder is 2-4 times faster"?
>I  didn't  know  yet  there was something like an indexed folder as
>opposed to a non-indexed folder?!

Oleg Zalyalov wrote:
> I  did  understand that phrase as follows: now folders are indexed and
> that  makes TB! to open them 2-4 times faster. I don't know whether it
> is  a  real  fact or a result of suggestion, but it seems to me really
> working faster.

It seemed to me that the folders _were_ indexed before. The phrase
means (IMHO) that now TB uses indexes in a more optimized way. May be
it does not reindexes the folders every time it is started...

> 5)  Why don't the new macros %CCLIST, %BCCLIST and so on appear in the
> formatting window for print setup? They do work there, I tried.

They forgot to insert the macroses there. Just a minor bug. Already
reported :)

-- 
Best regards,
Andrewmailto:[EMAIL PROTECTED]

Using The Bat! 1.36 S/N E9230B5C
under Russian Windows 98 4.10 Build 1998  
on an AMD-K5-133 with 32Mb EDO 60ns RAM and 
   Samsung WNR-31601A 1.6Gb hard disk

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-11 Thread Steve Lamb

Monday, October 11, 1999, 1:51:23 AM, Ali wrote:
> Should I take it to mean then that only those who are already familiar
> with it would have use for it?

Well, no.  Regexps are one of those features where you don't know you'd
use it until you learn it and use it.  Once you do then whenever you find
yourself in a situation that would be solved nicely and neatly with them and
they are not present it is like missing a limb.  Sure, you can get the job
done another way but it takes a while to do it.  ;)

Regexps are somewhat complex.  In fact, O'Reilly has a book out on just
using regexps in various incarnations.

Just a quick off the cuff example of regexps, perl style.  Say you wanted
to search lines in a text file for an ip address notation, reverse it, then
stuff it into another variable.  The short perl script would be:

while(<>){
  if ($_ =~ /(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/){
$reversedip = "$4.$3.$2.$1";
  }
}

The regexp is this:
/(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/

That is a pattern which means "Any digit with 1-3 characters, dot, any digit
with 1-3 characters, dot, any digit with 1-3 characters, dot, any digit with
1-3 characters."  The parents around the "\d{1,3}" tells the regexp engine to
stick that into what I call a "register" which can be used later on in the
expression or later on in the language.  In this case, the first match is put
into register 1, the second into register 2 and so on.  Then on the line
inside the if I just assigned the registered in a reverse order to another
variable.

That is a simplistic view.  Regexps can match strings at the beginning of
the line, end of the line, have different subsets that they can match against
(\w for alphanumeric, \d for digit, \s for whitespace, etc), match single
characters (\s), none-to-any(\s*), one-or-more(\s+), a specific number or range
of characters(\s{1}, \s{1,4}, etc.  Add to that the substitution and translation
that some variations allow and it gets even more powerful.

Anyway, to get back to TB!, here is the changes entry that explains the
regexps:

[!] Perl-compatible Regular Expressions string matching when searching text in
Message Viewer (Find Text), Message Editor (Find Text / Replace Text), Message
Finder (see Advanced Tab), Sorting/Office filters (see Options Tab).

[+] %REGEXPTEXT & %REGEXPQUOTES macros.

I'd have to play with it to see exactly how it works, but for me the most
obvious use of regexps in an email client would be to develop filters around
them and then use the registers from the filter to tell the program where to
sort the mail to.

For example, the mailing lists I run always have the following line in the
headers...

X-list: swprivateer

...so if I had regexp I could construct one like this...

/^X-list: (.*)/

...which tells it to match any string which starts with "X-list: " and
then place the remainder of the string in the first register.  Run against the
above line the first register would contain the word "swprivateer".  Now, tell
it to move the message to ".\Mailing Lists\$1" (example, I dunno if or how TB!
uses registers) and the mail is filed to ".\Mailing Lists\swprivateer".

But here is the important part.  That one filter will now match *ANY*
message sent from a list server that uses X-List and file it into a separate
folder.  I no longer need to add a filter for each mailing list, now it is
just for each mailing list software.  After covering Majordomo and LISTSERV,
the two most common mailing list servers out there) a majority of mailing
lists will be filtered automatically with no intervention from the user.

Again, that is but a simplistic example of what regexps could do.  I guess
what I'm trying to say in my long-winded style is that regexps are an
excellent tool for manipulating text and email, being a text-based medium, is
an application exceptionally suited for their use.

-- 
 Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
 ICQ: 5107343  | main connection to the switchboard of souls.
---+-

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-11 Thread Ali Martin

Hi all,

On Monday, October 11, 1999, 3:07:04 AM (-5 GMT), Steve scribbled:

>> I tried them and can't seem to get them to do change the quote prefix.
>> Probably they're for some other mysterious purpose but I'd sure like to
>> know since I may find use for them.
> 
> The answer is in the changes log.  They have added Perl style regular
> expressions to certain areas of TB!.  Regular expressions (regexp) are
> patterns that match against text and allow for the inclusion or exclusion of
> said text in a very powerful manner.  Anyone who has done any work on unix
> with either grep, perl or sed will know what regexps do and will most likely
> be doing the jig next to their keyboard when they find out they are in TB!.
> 
> BTW, it is something that I've been trying to get into PMMail for years.

Well, I don't expect any details from you but the lack of
documentation by Ritlabs would indicate to me that they wish to leave
the 'jigging' to those who already are familiar with regexp and how to
use them.

Should I take it to mean then that only those who are already familiar
with it would have use for it?

-- 
Regards,
 -=Ali=-   

   >>> Don't thank me for insulting you. It was my pleasure... <<<
*---*
 Using The Bat! 1.36 on Windows NT 4.0 (Service Pack 5)
*---*

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-11 Thread Steve Lamb

Monday, October 11, 1999, 1:01:26 AM, Ali wrote:
OS>>> 1) What do I do with %REGEXPTEXT & %REGEXPQUOTES macros ?
>> I  do  suspect  that  these  macros  should change the quoting prefix,
>> although I didn't check it myself.

> I tried them and can't seem to get them to do change the quote prefix.
> Probably they're for some other mysterious purpose but I'd sure like to
> know since I may find use for them.

The answer is in the changes log.  They have added Perl style regular
expressions to certain areas of TB!.  Regular expressions (regexp) are
patterns that match against text and allow for the inclusion or exclusion of
said text in a very powerful manner.  Anyone who has done any work on unix
with either grep, perl or sed will know what regexps do and will most likely
be doing the jig next to their keyboard when they find out they are in TB!.

BTW, it is something that I've been trying to get into PMMail for years.

-- 
 Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
 ICQ: 5107343  | main connection to the switchboard of souls.
---+-

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-11 Thread Ali Martin

Hi all,

On Monday, October 11, 1999, 2:23:46 AM (-5 GMT), Oleg scribbled:

OS>> 1) What do I do with %REGEXPTEXT & %REGEXPQUOTES macros ?
> I  do  suspect  that  these  macros  should change the quoting prefix,
> although I didn't check it myself.

I tried them and can't seem to get them to do change the quote prefix.
Probably they're for some other mysterious purpose but I'd sure like to
know since I may find use for them.


-- 
Regards,
 -=Ali=-   

   >>> The cigarette does the smoking, YOU'RE just the sucker!! <<<
*---*
 Using The Bat! 1.36 on Windows NT 4.0 (Service Pack 5)
*---*

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--




Re: Some questions about 1.36

1999-10-10 Thread Oleg Zalyalov

Hello, the Bat! list recipients,

Sunday, October 10, 1999, Oliver Sturm wrote about
Some questions about 1.36:

OS> 1) What do I do with %REGEXPTEXT & %REGEXPQUOTES macros ?
I  do  suspect  that  these  macros  should change the quoting prefix,
although I didn't check it myself.

OS> 2)  If  I  create a new message, enter some text and close the window,
OS> why  is  that  question  asking  me whether to trash my changes in
OS> russian (or some other language I can't read)?
Not a case here. I don't have intpack installed.

OS> 4) Why does it say "Entering an _indexed_ folder is 2-4 times faster"?
OS>I  didn't  know  yet  there was something like an indexed folder as
OS>opposed to a non-indexed folder?!
I  did  understand that phrase as follows: now folders are indexed and
that  makes TB! to open them 2-4 times faster. I don't know whether it
is  a  real  fact or a result of suggestion, but it seems to me really
working faster.

OS> 5)  Why don't the new macros %CCLIST, %BCCLIST and so on appear in the
OS> formatting window for print setup? They do work there, I tried.
I think they just forgot to enlist them. They do work and this make me
almost happy. And another thing is that after selecting a message from
MailTicker  by double-click a folder view window becomes active. I was
intending to request it from authors, but they have outstripped me.

OS> 6)  What  would the rest of you think about some option for formatting
OS> text  as  a  block  in  the  editor but keeping the start of a new
OS> paragraph  intact?  Look  at the left border of my message and you
OS> see what I mean.
It would be great to have an option to make lists with hanging indent,
but I can't see how it can be done.


-- 
Best regards,
Oleg Zalyalov. mailto:[EMAIL PROTECTED]

  Using The Bat! version 1.36
  under Windows NT 4.0 Build 1381 Service Pack 5, RC 1.1

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, click below and send the generated message.
   <mailto:[EMAIL PROTECTED]>
--




Some questions about 1.36

1999-10-10 Thread Oliver Sturm

Hi there,

1) What do I do with %REGEXPTEXT & %REGEXPQUOTES macros ?
2)  If  I  create a new message, enter some text and close the window,
why  is  that  question  asking  me whether to trash my changes in
russian (or some other language I can't read)?
3) What exactly does Auto-Format do?
4) Why does it say "Entering an _indexed_ folder is 2-4 times faster"?
   I  didn't  know  yet  there was something like an indexed folder as
   opposed to a non-indexed folder?!
5)  Why don't the new macros %CCLIST, %BCCLIST and so on appear in the
formatting window for print setup? They do work there, I tried.
6)  What  would the rest of you think about some option for formatting
text  as  a  block  in  the  editor but keeping the start of a new
paragraph  intact?  Look  at the left border of my message and you
see what I mean.


Thanks!

Oliver Sturm

--
Oliver Sturm / <[EMAIL PROTECTED]>

Key ID: 71D86996
Fingerprint: 8085 5C52 60B8 EFBD DAD0  78B8 CE7F 38D7 71D8 6996

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   
To Unsubscribe from TBUDL, click below and send the generated message.
   
--