1 38232a0a 2023-05-07 op .\" smarc.1 was written by Omar Polo <op@openbsd.org> and is placed in
2 38232a0a 2023-05-07 op .\" the public domain. The author hereby disclaims copyright to this
3 38232a0a 2023-05-07 op .\" source code.
4 38232a0a 2023-05-07 op .Dd May 5, 2023
9 38232a0a 2023-05-07 op .Nd mailing list static site generator
12 38232a0a 2023-05-07 op .Op Fl c Ar cachedir
14 38232a0a 2023-05-07 op .Op Fl m Ar maildir
15 38232a0a 2023-05-07 op .Op Fl o Ar outdir
16 38232a0a 2023-05-07 op .Op Fl t Ar tmpldir
17 38232a0a 2023-05-07 op .Sh DESCRIPTION
19 38232a0a 2023-05-07 op generates a static web archive from a maildir incrementally.
21 38232a0a 2023-05-07 op The arguments are as follows:
22 38232a0a 2023-05-07 op .Bl -tag -width Ds
23 38232a0a 2023-05-07 op .It Fl c Ar cachedir
24 38232a0a 2023-05-07 op Cache directory used for keeping track of threads during incremental
27 38232a0a 2023-05-07 op .Pa ~/.cache/smarc
31 38232a0a 2023-05-07 op jobs to export threads.
32 38232a0a 2023-05-07 op With big mailing lists and on a multiprocessor machine this can save
33 38232a0a 2023-05-07 op quite some time.
34 38232a0a 2023-05-07 op .It Fl m Ar maildir
38 38232a0a 2023-05-07 op .Pa ~/Mail/smarc .
39 38232a0a 2023-05-07 op .It Fl o Ar outdir
40 38232a0a 2023-05-07 op The destination directory where the HTML files will be written to, it's
41 38232a0a 2023-05-07 op .Pa /var/www/smarc
43 38232a0a 2023-05-07 op .It Fl t Ar tmpldir
44 38232a0a 2023-05-07 op Path to a directory containing the template files.
45 38232a0a 2023-05-07 op .Pa /etc/smarc
49 38232a0a 2023-05-07 op .Bl -tag -width Ds
50 38232a0a 2023-05-07 op .It Pa /etc/smarc/foot.html
51 38232a0a 2023-05-07 op Template with the trailing part of the page.
52 38232a0a 2023-05-07 op .It Pa /etc/smarc/head.html
53 38232a0a 2023-05-07 op Template with the first part of the page.
55 38232a0a 2023-05-07 op is substituted with the title.
56 38232a0a 2023-05-07 op .It Pa /etc/smarc/index-header.html
57 38232a0a 2023-05-07 op Template with the title for index pages.
59 38232a0a 2023-05-07 op is replaced with the page number and
61 38232a0a 2023-05-07 op with the date range.
62 38232a0a 2023-05-07 op .It Pa /etc/smarc/logo-small.html
63 38232a0a 2023-05-07 op Small version of the logo, included in the thread header.
64 38232a0a 2023-05-07 op .It Pa /etc/smarc/search.html
65 38232a0a 2023-05-07 op Template for the search form.
67 38232a0a 2023-05-07 op is replaced with the search query.
68 38232a0a 2023-05-07 op .It Pa /var/www/smarc
69 38232a0a 2023-05-07 op Default output directory.
70 38232a0a 2023-05-07 op .It Pa ~/.cache/smarc
71 38232a0a 2023-05-07 op Default cache directory.
72 38232a0a 2023-05-07 op .It Pa ~/Mail/smarc
73 38232a0a 2023-05-07 op Default maildir.
79 38232a0a 2023-05-07 op started as a hacky collection of perl scripts under the name of
81 38232a0a 2023-05-07 op to generate a web archive for the Game of Trees mailing list.
82 38232a0a 2023-05-07 op Only later, while still being a hacky collection of perl and shell
83 38232a0a 2023-05-07 op scripts, was converted to be a generic web mailing list archive tool and
84 38232a0a 2023-05-07 op the project renamed.
89 38232a0a 2023-05-07 op utility was written by
90 38232a0a 2023-05-07 op .An Omar Polo Aq Mt op@openbsd.org .