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