Blame


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
5 38232a0a 2023-05-07 op .Dt SMINGEST 1
6 38232a0a 2023-05-07 op .Os
7 38232a0a 2023-05-07 op .Sh NAME
8 38232a0a 2023-05-07 op .Nm smingest
9 38232a0a 2023-05-07 op .Nd import emails into a sqlite database
10 38232a0a 2023-05-07 op .Sh SYNOPSIS
11 38232a0a 2023-05-07 op .Nm
12 38232a0a 2023-05-07 op .Ar dbpath
13 38232a0a 2023-05-07 op .Sh DESCRIPTION
14 38232a0a 2023-05-07 op .Nm
15 38232a0a 2023-05-07 op reads a sequence of path to emails from standard inputs and inserts them
16 38232a0a 2023-05-07 op into the
17 38232a0a 2023-05-07 op .Xr msearchd 8
18 38232a0a 2023-05-07 op sqlite3 database at
19 38232a0a 2023-05-07 op .Ar dbpath .
20 38232a0a 2023-05-07 op .Sh EXAMPLES
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:
24 38232a0a 2023-05-07 op .Pp
25 38232a0a 2023-05-07 op .Dl mlist ~/Mail/smarc | smingest /var/www/msearchd/mails.sqlite3
26 38232a0a 2023-05-07 op .Pp
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:
29 38232a0a 2023-05-07 op .Pp
30 38232a0a 2023-05-07 op .Dl minc ~/Mail/smarc | smingest /var/www/msearchd/mails.sqlite3
31 38232a0a 2023-05-07 op .Sh SEE ALSO
32 38232a0a 2023-05-07 op .Xr minc 1 ,
33 38232a0a 2023-05-07 op .Xr mlist 1 ,
34 38232a0a 2023-05-07 op .Xr msearchd 8
35 38232a0a 2023-05-07 op .Sh BUGS
36 38232a0a 2023-05-07 op .Nm
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.