1 60ca5d00 2023-05-05 op .\" gmimport.1 was written by Omar Polo <op@openbsd.org> and is placed in
2 60ca5d00 2023-05-05 op .\" the public domain. The author hereby disclaims copyright to this
3 60ca5d00 2023-05-05 op .\" source code.
4 60ca5d00 2023-05-05 op .Dd May 5, 2023
9 60ca5d00 2023-05-05 op .Nd import emails into a sqlite database
13 60ca5d00 2023-05-05 op .Sh DESCRIPTION
15 60ca5d00 2023-05-05 op reads a sequence of path to emails from standard inputs and inserts them
17 60ca5d00 2023-05-05 op .Xr msearchd 8
18 60ca5d00 2023-05-05 op sqlite3 database at
21 60ca5d00 2023-05-05 op To index all the messages in the
22 60ca5d00 2023-05-05 op .Pa ~/Mail/gotmarc
23 60ca5d00 2023-05-05 op maildir, useful to initially populate the database:
25 60ca5d00 2023-05-05 op .Dl mlist ~/Mail/gotmarc | gmimport /var/www/msearchd/mails.sqlite3
27 60ca5d00 2023-05-05 op Incorporate new messages in the maildir and add them to the database,
28 60ca5d00 2023-05-05 op useful after fetching new mails:
30 60ca5d00 2023-05-05 op .Dl minc ~/Mail/gotmarc | gmimport /var/www/msearchd/mails.sqlite3
34 60ca5d00 2023-05-05 op .Xr msearchd 8
37 e65ce6ef 2023-05-05 op doesn't detect the insert of duplicate messages.
38 e65ce6ef 2023-05-05 op Should that happen, the database needs to be recreated.