Hello tbtech,

  Ok, this is probably pretty simple, but I'm just not sure how to get
  it right in a reasonable amount of time.

  From a Lyris Listmanager I run here at work, I receive moderation
  requests from various lists. It looks like this:

,------ [  ]
| The attached message destined for this_list has been received. This
| message requires your approval before it will be sent to the list.
| ---
| 
| To approve this message, send the following two line message to
| [EMAIL PROTECTED]
| 
|    login (enter your password here)
|    moderate approve 4
| 
| ---
| 
| To reject this message, send the following two line message to
| [EMAIL PROTECTED]
| 
|    login (enter your password here)
|    moderate reject 4
`----------

The important part is the # on the line "moderate approve #".

What I want to do (as I figure I'll be approving more than denying),
is to set my folder reply template so that it contains only the two
lines: 

login password
moderate approve #

Where # is the number in the original message.

Then I want a quick template called LDENY that will do the same as
above, but put only the following two lines:

login password
moderate deny #

Since the number is the same regardless of the approval or
disapproval, I don't need to regexp them differently. i.e. I can use
the number from the "moderate approve #" line for both instances.

Here's what I got so far. Don't laugh! <grin> It doesn't work, at
least it doesn't put the number after the word "approve".


%SETPATTREGEXP="moderat(\w+)\s(\w+)\s(\d+)"
%CLEAR
login password
moderate approve %SUBPATT="3"  



Any help would be great! Thanks.


Tagline of the day:
I went to a general store. They wouldn't let me buy anything specific.



-- 
Leif (TB list moderator and fellow end user).

Using The Bat! 2.00 under Windows 2000 5.0
Build 2195 Service Pack 3 on a Pentium 4 2GHz with 512MB







________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to