| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | hpt-based forward/copy |
Hello Eric,
Monday July 22 2019, Eric Renfro wrote to All:
ER> So, this ended up working.
[...skipped...]
ER> if (!defined $toarea && $toaddr eq "1:135/300"
&& $toname eq "Eric
ER> Renfro")
AFAIK there is no such thing as $toarea in filter.pl. So if you did not
define $toarea using $area, 'defined $toarea' is always false. You have to
use $area here.
Here is an excerpt from doc/perlhooks.rus:
filter() is called when tossing new messages
The following variables are defined:
variable alias
$fromname $sfrom - the sender's name
$fromaddr $from - the sender's address
$toname $sto - the recipient's name
$toaddr $to - the recipient's address for netmail or undef
$area - area for echomail, otherwise - undef
$secure - current message has been received via SecureInbound
$subject $subj - the message subject
$text - the message text (with kludges)
$date - the date of the message, the variable has two types:
if used as a number, unixtime
if used as a string, the format is fts-1
$attr - attributes as a number
$pktfrom - from whom the current pkt has been received
Return:
$kill = 1 - delete the message
$change = 1 - change fields in accordance with the variables
listed above (including changing kludges automatically)
(except for $area, $secure, $pktfrom :)
If a non-empty string is returned, the message is placed in the badArea
It is not recommended to use attributes and date / time in a string form.
Michael
... node (at) f1042 (dot) ru
--- GoldED+/LNX 1.1.5-b20170303
* Origin: Moscow, Russia (2:5020/1042)SEEN-BY: 3/50 14/5 15/0 16/101 19/36 20/4609 34/999 90/1 104/57 106/201 116/18 SEEN-BY: 123/140 128/2 153/7715 218/700 222/2 230/150 152 240/1120 250/1 SEEN-BY: 261/38 100 266/512 267/155 275/100 280/464 282/1031 1056 291/1 111 SEEN-BY: 320/219 340/400 396/45 633/267 280 640/1384 712/848 770/1 801/161 189 SEEN-BY: 3634/12 5020/1042 @PATH: 5020/1042 261/38 712/848 633/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™.