;- 
; Filter file example        _
;                           |_)                                    
;                           | KTSecretary                          
; (c) CvB                                                    v1.40 
;
;
; -
; Some general parameters
; -
; Send me the LOGFile of the  filtering process, if at least 10 mails
; have arrived:
;
Send_LOG = 10
;
; Send me the statistics of what was filtered, if at least 1  message
; was filtered at all:
;
Send_Stats = -1
;
; -
; Move EchoMail messages addressed to a person into a seperate area
; -
Crit_Name   = Messages for me
       Area = !"NetMail"
     action = Copy MyMail
    options = NoCase, Info
   look_for = TO+TXT:"*Christian von Busse*"
   look_for = TXT:"*Cvb>*"
   look_for = "*CvB*"
;
; This  criterion finds all messages to an about Christian  von Busse
; as well as those, in which he is being quoted ("*CvB>*"). PKTSec is
; looking in all areas except for the netmail.
; Found messages will then be copied into the area  MyMail.  Further,
; an info line will  be  added  to  the copied messages stating their
; original area.
;
; -
; Nothing but new offers in FLEA.* areas
; -
crit_name   = Only offers in FLEA.*
       area = "FLEA.*"
     action = KILL
   look_for = !"O:*"
   look_for = ISREPLY
;
; !"O:*" and ISREPLY are specified in to look_for lines. This results
: in a logical OR combination: First, all messages not starting  with
; O: in  the  subject  will  be  deleted,  then  all messages will be
; deleted, that are replies to other messages and  therefore  no  new
; offers. That is: Delete  all  messages  that don't start with O: OR
; that are replies.
;
; -
; Killing twit mails
; -
crit_name   = no Bill Gates no more
       area = !"NetMail"
     action = KILL
   look_for = FROM:"Bill Gates@*"
;
; Remember the format of the  FROM field: name@address. By adding the
; * at the end of the <description>, all addresses of Bill Gates will
; be filtered.
;
; -
; A small NetMail robot
; -
crit_name   = send the faq to cs
       area = "NetMail"
     action = write CSFILTER.FAQ;;CS FAQ (1/2), reply CSFILTER.FA2;;CS FAQ (2/2)
   look_for = "*send*faq*cs*"
; Incoming netmails with the subject "SEND FAQ CS" shall be  answered
; with the FAQ to the program CS. The FAQ consists of two parts, both
; of which shall  be  sent  as  response  using  the subjects "CS FAQ
; (1/2)" and "CS FAQ (2/2)". The reply texts  can  be  found  in  the
; files CSFILTER.FAQ and CSFILTER.FA2  in  the PKTSec directory or in
; the specified user directory.
;
; -
; A small NetMail robot, part 2
; -
crit_name   = Welcome all new users to area CROSSPOINT.GER
       area = "CROSSPOINT.GER"
     action = write WELCOME.TXT;;Welcome!
       once = WELCADR.TXT
   look_for = TO:"*"
; This robot also answers messages via NetMail. It uses the text from
; WELCOME.TXT. Basically, the text will be sent to all writers in the
; area CROSSPOINT.GER.
; But there is on  restriction  defined  via ONCE: Every user who has
; received a NetMail will be listed in WELCADR.TXT. He will not again
; receive a reply until his address is deleted from the file  or  the
; whole file is deleted.
; So, in fact, every user only receives the reply once.
;
; -
; Removing kludges
; -
crit_name   = remove PID and TID
       area = ALL
     action = del_kludge PID, del_kludge TID
   look_for = ALL
; This will remove the PID and TID kludges from all incoming MSGs.
;
; -
; Automatically sending a PGP key
; -
crit_name   = PGPKEY
       area = "NetMail"
     action = WRITE PGPKEY.ASC;;PGPKEY 1024/7BE69B79
     action = kill
   look_for = SUBJ:"*SEND*PGPKEY*"
;
; This criterion will reply to all netmails  (subject:  send  pgpkey)
; with  your  public  PGP key. The pgp key has to be inside  the file
; PGPKEY.ASC, which must reside in  the user's user directory, if one
; is specified, otherwise in the PKTSec directory.
; If the key request shall not be automatically deleted,  the  second
; action line has to be removed.
;
; -
; Creating a mailing list
; -
crit_name   = my little mailing list
   area     = "NetMail"
   action   = write MAILING.TXT;@MAILING.ADR;;mailinglist@2:240/2188
   action   = kill
   look_for = TO:"mailinglist@2:240/2188"
;
; This way, you can create  a  mailing list under the address mailing
; list, 2:240/2188. Messages to this address  will  automatically  be
; forwarded to all users in the file MAILING.ADR.
; Then the original message will be deleted.
;
; MAILING.TXT contains the reply text and might look this way:
; 
;  forwarded via my little mailing list
;  originally by $FROM$, $FR_ADR$
;
; $TXT$
; <eof>
;
; -
; Send a copy of incoming NetMails to another user
; -
crit_name   = Copy to SysopPoint
   area     = "NetMail"
   options  = NoCase, Break
   action   = Write ;Christian Rohweder@168:4900/501.1
   look_for = TO:"Christian Rohweder@168:4900/501.0"
; This criterion  takes  all  NetMails  being  addressed  to the node
; 168:4900/501 named Christian Rohweder and sends a copy to his sysop
; point aka.
;
; -
; Move incoming NetMails to a special *.MSG directory
; -
crit_name   = BBS-User NetMails
   area     = "NetMail"
   options  = NoCase, Break
   action   = Write ;$TO$;;$FROM$;;Z:\XENIA\MSG\BBSNET
   action   = Kill
   look_for = TO:"*@2:240/2188.4711"
; This  criterion looks for all NetMails addressed to 2:240/2188.4711
; and writes them into the specified directory.
; The original messages is killed then.
;
; -
; Moving FileAttaches
; -
crit_name   = Move FileAttaches
   area     = "NetMail"
   action   = Write ;$TO$;MoveFile Z:\OUTBOUND.FA;$FROM$;LCL+K/S+FA
   action   = Kill
   look_for = TO:!"*2:240/2188.0", ATTR:"FA"
; This criterion  looks  for  fileattaches  not  being  addressed  to
; 2:240/2188.0.
; The files belonging to those FileAttaches will then be moved to the
; specified directory. Together with  this,  a new message is created
; as *.MSG, being identical to the original message but  pointing  to
; the moved file.
; The original message is then killed.
; Files not meant for  2:240/2188  do  not remain in the inbound this
; way.
;
; -
; Forwarding new messages from one area into another
; -
crit_name   = New jokes
   area     = "TALK.BIZARRE.FUNNY"
   action   = write ;area:LOCAL.TALK:*.*@2:240/2188;;autoforward@2:240/2188
   look_for = !ISREPLY
   look_for = & !QUOTE>10
;
; This criterion looks for messages that  do not have a reply linkage
; and that do not contain more than 10% quote, i.e. it is looking for
; new messages.
; If a match is found, the original message text (the <txt> field  is
; not  specified  in  the  action  line)  if  posted into LOCAL.TALK,
; addressed to *.*.
; Since it is an echomail reply, the message will  be  created  as  a
; PKT. The PKT will be  addressed  to 2:240/2188. As PKT password the
; password configured for the current  user  in  PKTSEC.CFG  will  be
; used.
; The forward keeps its  original subject. The sender is autoforward,
; 2:240/2188
;
; -
; Running external programs
; -
crit_name   = archive new jokes
   area     = "TALK.BIZARRE.FUNNY"
   action   = EXE ARCHIVE.BAT
   action   = Write \archive\jokes.txt;john doe@1:234/567.8;current collection
   look_for = !ISREPLY
   look_for = & !QUOTE>10
; As before, this criterion looks for new jokes. If it found some, it
; will launch ARCHIVE.BAT and put the MSGText available  via the file
; MSGTEXT.TXT in the PKTSec home directory.
;
; ARCHIVE.BAT might look like this:
; @ECHO OFF
; CD \MAILER\PKTSEC
; REM Append the message text to JOKES.TXT in \ARCHIVE:
; TYPE MSGTEXT.TXT >>\ARCHIVE\JOKES.TXT
;
; Afterwards, PKTSec will post  the complete Jokes Collection to John
; Doe, 1:234/567.8.
;
; BTW: JOKES.TXT looks much better,  if  you  create  an  EXECUTE.CTL
;      file in the PKTSec home directory looking like this:
; $TXT$
; (Yes,  just  one  line  with 5 characters.  PKTSec will cut off all
; SEEN-BYs etc. from the message text before putting it into the file
; MSGTEXT.TXT.)
;
; -
; Detecting NetMail loops
; -
crit_name  = move loop mails into BAD
  area     = "NetMail"
  options  = NoCase, Break
  action   = Write ;$TO$;;$FROM$;;Z:\XENIA\MSG\BAD
  action   = Kill
  look_for = VIA:"*2:240/2188"
;
; You can detect  loop  mail  by  checking  the via lines of incoming
; NetMail. Those, who already contain your AKA in the via lines,  are
; loop mails, which have already been processed by your system.
; Loop mails are being  written  into  the BADMail directory and then
; killed.
;
; -
; Bounce messages to unlisted users
; -
crit_name  = bounce unlisted
  area     = "NetMail"
  options  = NoCase, Break
  action   = Write BOUNCE.TXT;;bounced;SysOp@2:240/2188
  action   = Kill
  look_for = To:!Listed
;
; PKTSec looks for netmails, the recipient of which is not listed  in
; a  nodelist ("!Listed" is the opposite of "Listed").  The sender of
; such a netmail gets a reply stored in BOUNCE.TXT. Then the original
; message is deleted.
; You should specify the  name  and  the  address of the addressee in
; BOUNCE.TXT, maybe also the text, so the sender can search  for  the
; correct address and then resend the message.
; BOUNCE.TXT could look like this:
;
; Hi $FROM$,
;
; Your message...
; ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8<
; To:    $EMP$, $EMPADR$
; Subj.: $BET$
; MID:   $MID$
; ---- >8 ---- >8 ---- >8 ---- >8 ---- >8 ---- >8 ---- >8 ---- >8
; $QTXT$
;
; could  not  be delivered to the addressee,  because he is unlisted.
; Please check the address and resend your message.
;
; end of the filter file
