[PREVIOUS CHAPTER]
[______TOC_______]
3 Pager calling pre-filter
Here we introduce a pre-processing program which converts Japanese to
codes recognized by a pager. Please do not ask me the detail around
between an operating system and a modem. The details depend on your
pager, modems and so on.
3.1 euc2jiskuten.pl
ftp://ftp.iij.ad.jp/pub/IIJ/dist/fukachan/calling-pager/
We need to translate Japanese to JIS Kuten codes for sending the mail
content to a pager.
We translate the mail content to EUC codes, and then to JIS Kuten
codes by euc2jiskuten.pl. You have only to send JIS Kuten codes to
a pager.
3.2 How to call pager through FML
1 prepare calling modem program (call it "modem2pager").
2 Configure $START_HOOK as the following example:
open(PAGER, "| euc2jiskuten.pl | modem2pager");
print PAGER $Envelope{'Body'}:
close(PAGER);
$DO_NOTHING = 1;
FML sends the mail body to euc2jiskuten.pl and then to modem2pager.
Modem2pager should queue and send it via e.g. /dev/tty01 to a modem.
You must tune queuing codes of modem2pager, which must be difficult.