Blob


1 .\" smingest.1 was written by Omar Polo <op@openbsd.org> and is placed in
2 .\" the public domain. The author hereby disclaims copyright to this
3 .\" source code.
4 .Dd May 5, 2023
5 .Dt SMINGEST 1
6 .Os
7 .Sh NAME
8 .Nm smingest
9 .Nd import emails into a sqlite database
10 .Sh SYNOPSIS
11 .Nm
12 .Ar dbpath
13 .Sh DESCRIPTION
14 .Nm
15 reads a sequence of path to emails from standard inputs and inserts them
16 into the
17 .Xr msearchd 8
18 sqlite3 database at
19 .Ar dbpath .
20 .Sh EXAMPLES
21 To index all the messages in the
22 .Pa ~/Mail/smarc
23 maildir, useful to initially populate the database:
24 .Pp
25 .Dl mlist ~/Mail/smarc | smingest /var/www/msearchd/mails.sqlite3
26 .Pp
27 Incorporate new messages in the maildir and add them to the database,
28 useful after fetching new mails:
29 .Pp
30 .Dl minc ~/Mail/smarc | smingest /var/www/msearchd/mails.sqlite3
31 .Sh SEE ALSO
32 .Xr minc 1 ,
33 .Xr mlist 1 ,
34 .Xr msearchd 8
35 .Sh BUGS
36 .Nm
37 doesn't detect the insert of duplicate messages.
38 Should that happen, the database needs to be recreated.