mailbox2html - EXPERIMENTAL: convert mail folders into an HTML structure
mail2html [-src folder] [-dest directory] [-norecurse]
Convert various kinds of mail folders to HTML, permitting them to be read by a web browser.
Options:
(or -cleanup or -nocleanup) removes the directory before generating the data.
-cleanup
-nocleanup
The output directory. When this option is not specified, the program will try to create a sub-directory named mail2html in the directory pointed to by the environment variable TMPDIR or tmpdir, otherwise the output will be in /var/tmp or /tmp.
mail2html
/var/tmp
/tmp
# DWC Hm... 2nd sentence doesn't make sense The template which is used to create folder pages. See the examples with the distribution of this code for examples.
(or -help or -?) Print a brief help
-help
-?
The filename which the web server loads when the user specifies only the name of the directory in a URL. This option is set to index.html by default.
index.html
# DWC Hm... 2nd sentence doesn't make sense The template which is used to create one page per message. See the examples with the distribution of this code for examples.
(or -recurse or <-norecurse>) Recurse through subfolders. By default, recursive production is enabled.
-recurse
Start with the folder(-directory) which can be found at the specified location. The type of folder is auto-detected. By default, the contents of the directory specified by the MAIL or mail environment variable are used. If these variables are not defined, HOME and home are checked for a sub-directory named Mail. If these are unsuccessful as well, the current directory is used.
MAIL
mail
HOME
home
Mail
(or -verbose or -noverbose) Be verbose about the progress of the program. This is especially useful for debugging purposes.
-verbose
-noverbose
Mark Overmeer (Mark@Overmeer.net). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This code is beta, version 2.019
To install Mail::Box, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Box
CPAN shell
perl -MCPAN -e shell install Mail::Box
For more information on module installation, please visit the detailed CPAN module installation guide.