1 38232a0a 2023-05-07 op .\" smingest.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 import emails into a sqlite database
13 38232a0a 2023-05-07 op .Sh DESCRIPTION
15 38232a0a 2023-05-07 op reads a sequence of path to emails from standard inputs and inserts them
17 38232a0a 2023-05-07 op .Xr msearchd 8
18 38232a0a 2023-05-07 op sqlite3 database at
21 38232a0a 2023-05-07 op To index all the messages in the
22 38232a0a 2023-05-07 op .Pa ~/Mail/smarc
23 38232a0a 2023-05-07 op maildir, useful to initially populate the database:
25 38232a0a 2023-05-07 op .Dl mlist ~/Mail/smarc | smingest /var/www/msearchd/mails.sqlite3
27 38232a0a 2023-05-07 op Incorporate new messages in the maildir and add them to the database,
28 38232a0a 2023-05-07 op useful after fetching new mails:
30 38232a0a 2023-05-07 op .Dl minc ~/Mail/smarc | smingest /var/www/msearchd/mails.sqlite3
34 38232a0a 2023-05-07 op .Xr msearchd 8
37 38232a0a 2023-05-07 op doesn't detect the insert of duplicate messages.
38 38232a0a 2023-05-07 op Should that happen, the database needs to be recreated.