[PREVIOUS CHAPTER] [NEXT CHAPTER]
5 library commands

5.1	Library Commands for Special Purposes


FML does not accept "put" style commands in default for security.
So "library" commands are defined in @DenyProcedure (see config.ph).
If you use "put" style commands, you can use "library" commands series.
"library" commands are a sub-mailing list. This command has its own
summary file and archive directories. "put" file is stored in
$LIBRARY_ARCHIVE_DIR ($SPOOL_DIR for ML) and summary file is
$LIBRARY_DIR/summary. The system is closed under $LIBRARY_DIR.
This system uses the same routines as the usual ML. Hence the file
name is number. Also FML does not permit the freedom of file names to
put for security.


Removing needs the authentication that From: address is the same
person which submitted the file in the past.


Please rename a number file name to arbitrary file name by hand if you
like it.


	$LIBRARY_DIR		library HOME  (<=> $DIR)
	$LIBRARY_ARCHIVE_DIR	library SPOOL (<=> $SPOOL_DIR)


To disable one of library commands, set @DenyLibraryProcedure.
How to use this array is the same as @DenyProcedure. 


e.g. disable 'library put' command.

	@DenyLibraryProcedure = ('put');

5.2	Extension of member list (libmember_name.pl)


1998/01/09 AUTHOR: <fukui@sonic.nm.fujitsu.co.jp>


libmember_name.pl provides a member list with member names.


Enable this function, please write 

      $USE_MEMBER_NAME = 1;


in config.ph. You can use the menu style by "makefml config" to set
this.


DESCRIPTION:


Fml command "members" sends a list back but the list contains only
E-mail addresses. So you cannot identify who is an address? 
libmember_name.pl module provides a function that "members" command
sends back a list with full names where the name is extracted from
"From:" field e.g. in automatic registration.


When you enable this function, fml changes like this.


* When automatic registration works


When fml registered a user in automatic registration mode, fml
extracts GECOS field in From: and caches it to a file
$MEMBER_NAME_FILE.


members / member command


members / member command sends back a list with full names.

	sakura@card.captor (Sakura Kinomoto)
	kerochan@fml.org   (Kerberos)
	tomoyo@fml.org     (Tomoyo Daidouji)


"name" command


SYNOPSIS: name new-name


Replace the full name in the cache file for "From:" address with
"new-name". If no argument is given, fml removes the full name entry
in the cache file.


"admin name" command


SYNOPSIS: admin name address new-name


In administration mode, overwrite the name for the address. The usage
is the same way as "name" command. Administrators can use this
command. This function is useful to overwrite the name cache file not
only in automatic registration but also in manual registration. Also
this command overwrite the name to arbitrary ones e.g. nick names,
handles ...


5.3	Traffic Command to Examine The ML Traffic

AUTHOR: yuao@infonia.or.jp (Yuao Tanigawa)


The usage of libtraffic.pl is 

% libtraffic.pl [-n <best?>] [-m <mails>] [-d] [where is summary?]


% libtraffic.pl


1. article traffic per a month
2. days 
3. articles per an hour zone
4. days over  a traffic limit (25 mails)
5. best 10 of heavy posters
6. average and maximum traffic


5.4	traffic; how to identify one person who has plural Email addresses

	Author: Yuao Tanigawa <yuao@infonia.or.jp>
	fml-support: 00736
	fml-support: 02578
> $TRF_NAME_HOOK = q#
>     $name =~ s/umura@solan\.chu/umura@nn.solan./oi;
> #;
> 
> 
>    umura@solan.chu -> umura@nn.solan.
> 


You can customize $TRF_NAME_HOOK to set aliases e.g.

if ( $name eq 'yuao@drei.mech.' || $name eq 'XN9Y-TNGW@j.asa' ) {
	$name = 'tanigawa@tribo.';
}


[PREVIOUS CHAPTER] [NEXT CHAPTER]