Re: clean subject QT

2004-07-09 Thread Marck D Pearlstone
Dear Michael,

@9-Jul-2004, 08:49 -0700 (09-Jul 16:49 UK time) Michael L. Wilson
said to The:

... snip
 Any ideas or better ways to clean the subject line would be
 appreciated.

Here's what I use:

,--/ New version of subject cleaner \--
%___%REM=clean subject - by daniel hahler%%-
%_oldSubj=%OSubj%-
%Subject=%-
%SetPattRegExp='(?ix)\A:?
( [([]+ .*? [)\]]+ )*\s* # save topic/listname
(?:
  (?:
   (?:aw|antw|antwort|betrifft|fw|fwd|forw|
forward|ha|rcpt|re\^?\d*|sv|vs|wg|wtr)(?:\[\d*\])?:
  )
  |\s+
)*
(.*?)  # the subject
\s*
( 
 ([(\[]+
  ( (wa[rs][:; ] | pgp | s/mime ).*
   | fwd
  )
  [)\]]*\s*
 )*
)\z'%-
%RegExpBlindMatch='%OSubj'%-
%IF:#%SubPatt='1'###:#%SubPatt='1' #%-
Re: %SubPatt='2'
%___
`--\ End /--

-- 
Cheers -- //.arck D Pearlstone --List moderator and fellow end user
TB! v2.12 Beta/8 on Windows XP 5.1.2600 Service Pack 1
'

pgpkX67xL9yTX.pgp
Description: PGP signature

Current version is 2.11.02 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Re: clean subject QT

2004-07-09 Thread Bill McCarthy
On Fri 9-Jul-04 10:49am -0400, Michael L. Wilson wrote:

 I am using the QT FIXSUBJ from the silverstones library.  I repeat it
 for clarification:

 More often than not, these days, it simply reduces my subject to RE:
 with nothing else.  I did not modify this at all.  Any ideas or better
 ways to clean the subject line would be appreciated.

I've been using the following for some time now.  Change it to your
taste:


%Subject=Re: %-
%SetPattRegExp='(?ix)   # CaseLess  Extended PCRE
  \A# Start at beginning
  (?: \s*
(?:
  \[.*?\]   # Dump [list-name]
  |
  \(.*?\)   # Dump (list-name)
  |
  (?: re|rcpt|fwd|fw )  # Dump Re:, Fw:, etc.
(?:
  (?: \[\d*\] ) #   and Re[n]:, etc.
  |
  (?: \(\d*\) ) #   or Re(n):, etc.
)?:
)
  )*
  \s* ( .*? )   # The Clean Subject
  (?: \s*
(?:
  \[was:.*?\]   # Dump [was: comment]
  |
  \(was:.*?\)   # Dump (was: comment)
)
  )*
  \z'%-
%RegExpBlindMatch='%OFullSubj'%-
%SubPatt='1'%-


-- 
Best regards,
Bill




Current version is 2.11.02 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html