NAME
smarc
—
mailing list static site
generator
SYNOPSIS
smarc |
[-c cachedir]
[-j n]
[-m maildir]
[-o outdir]
[-t tmpldir] |
DESCRIPTION
smarc
generates a static web archive from a maildir
incrementally.
The arguments are as follows:
-c
cachedir- Cache directory used for keeping track of threads during incremental updates. Defaults to ~/.cache/smarc
-j
n- Use n jobs to export threads. With big mailing lists and on a multiprocessor machine this can save quite some time.
-m
maildir- Source maildir. Defaults to ~/Mail/smarc.
-o
outdir- The destination directory where the HTML files will be written to, it's /var/www/smarc by default.
-t
tmpldir- Path to a directory containing the template files. /etc/smarc by default.
FILES
- /etc/smarc/foot.html
- Template with the trailing part of the page.
- /etc/smarc/head.html
- Template with the first part of the page.
TITLE
is substituted with the title. - /etc/smarc/index-header.html
- Template with the title for index pages.
PAGE
is replaced with the page number andSUBTITLE
with the date range. - /etc/smarc/logo-small.html
- Small version of the logo, included in the thread header.
- /etc/smarc/search-link.html
- Template for the search link used in the mail and thread page.
- /etc/smarc/search.html
- Template for the search form.
QUERY
is replaced with the search query. - /var/www/smarc
- Default output directory.
- ~/.cache/smarc
- Default cache directory.
- ~/Mail/smarc
- Default maildir.
SEE ALSO
HISTORY
smarc
started as a hacky collection of
perl scripts under the name of ‘gotmarc’ to generate a web
archive for the Game of Trees mailing list. Only later, while still being a
hacky collection of perl and shell scripts, was converted to be a generic
web mailing list archive tool and the project renamed.
AUTHORS
The smarc
utility was written by
Omar Polo
<op@openbsd.org>.