TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Gert Koefoed Andersen
from: Michael Dukelsky
date: 2009-10-26 18:00:04
subject: Hpt manage empty netmails

Hello Gert,

26 Oct 09, Gert Koefoed Andersen wrote to Michael Dukelsky:

 MD>> You may use a code like this in sub filter {...} in your filter.pl

 MD>>    if($fromaddr eq "2:123/456" && $fromname
eq "Inter-lord" &&
 MD>>       $toaddr eq "2:236/150" && $attr =~ /att/i)
 MD>>    {
 MD>>        $kill = 1;
 MD>>        return "";
 MD>>    }

 MD>> It will delete all messages from 2:123/456 sent from name
 MD>> Inter-lord to the node 2:236/150 that have 'Att' attribute.

 GA> Then could my script file for hpt look a kind of this:
 GA>  --mail-in.sh
 GA> Hpt toss
 GA> perl filter.pl
 GA> sqpack netmailarea
 GA>  ----

No. You should not call filter.pl explicitly. Hpt calls it internally. You
will see in hpt.log that a message was killed.

Michael

... dukelsky (at) aha (dot) ru
--- GoldED+/LNX 1.1.5-b20061116
* Origin: Moscow, Russia (2:5020/1042)
SEEN-BY: 10/1 11/200 201 331 34/999 120/228 128/2 187 140/1 222/2 226/0
SEEN-BY: 236/150 249/303 250/306 261/20 38 100 1404 1406 1418 266/1413
SEEN-BY: 280/1027 320/119 393/68 396/45 633/104 260 267 285 712/848 800/432
SEEN-BY: 801/161 189 2222/700 2320/100 105 5030/1256
@PATH: 5020/1042 140/1 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.