Manual Reference Pages - MAIL::LMLM (3)
Mail::LMLM - List of Mailing Lists Manager
my $renderer =
extra-classes => \%extra_mailing_list_classes,
title => "List of the Foo Mailing Lists",
headline => "Foo Mailing Lists",
lists => \@lists,
prolog => \&prolog,
epilog => \&epilog,
The Mail::LMLM module allows users to easily manage HTML directories of
mailing lists of various mailing list managers and hosts.
To use it create a new module of type Mail::LMLM with a new method, while
initializing it with the list of mailing lists (in order of listing), and
other parameters. Then, invoke the render() function to create the HTML
files within the current directory.
Following is a listing of the parameters
title and headline
title is what will be displayed in the document inside the <title>
tag. headline is the headline of the main page.
prolog and epilog
prolog is a callback for a function that will be called with the Mail::LMLM
handle and its appropriate rendering back-end when the mains page prologue
(that comes before the listing itself) is to be displayed. epilog is the
same for the text after the listing itself. Here is an example for it:
my $self = shift;
my $main_r = shift;
$main_r->para( "This is a list of the mailing-lists which are affiliated " .
"with the Israeli Group of Linux Users (IGLU). It includes such " .
"information as how to subscribe/unsubscribe, posting address, " .
"posting guidelines, the address of the mailing-list owner, the " .
"mailing-lists homepage and the online messages archive."
$main_r->text("If you have any comments, suggestions or additions " .
"regarding the information contained here, dont hesitate to " .
"contact the maintainer of these pages at the following e-mail: ");
For more information on how to interface with the renderer consult
the HTML::LMLM::Render reference page.
This is a reference to a hash whose keys are extra IDs for mailing lists
classes, and its values are either the namespace of the Perl module that
implements this class, or a subroutine that creates a new class like that.
This class would be better be sub-classed from one of the classes that
ship with Mail::LMLM. To see examples of how to sub-class, consult the examples
section of the Mail::LMLM distribution.
This is a reference to an array of hash references that contain the
information for the mailing lists. The fields available here are:
The identifier of the mailing list that will be used as the base name
for its HTML page.
The class of the mailing list that determines its type. Available built-in
classes are: <B>egroupsB> (A Yahoo-Groups mailing list), <B>ezmlmB> (an Ezmlm-based
mailing list), <B>listarB> (a Listar-based mailing list), <B>listservB> (
a Listserv-based mailing list), <B>mailmanB> (a mailman based mailing list),
<B>majordomoB> (a majordomo-based mailing list).
The group base that appears before the host.
The title that will be displayed at the head of the page.
The hostname of the mailing list address.
The homepage URL of the mailing list.
The description of the mailing list, to be presented in its page.
This can be an handle/Mail::LMLM::Render callback.
The posting guidelines for the mailing list.
A URL or a Mail::LMLM::Render callback for displaying the online archive of
the mailing list.
Called on behalf of the constructor to initialize the module. For internal
my CW$lmlm = Mail::LMLM->new(%params)
Initializes a new module with %params.
Renders the pages.
Shlomi Fish, <http://www.shlomifish.org/>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Software), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
(This is the MIT X11 License).
|perl v5.20.3 ||MAIL::LMLM (3) ||2015-04-27 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.