commit 60ca5d00ad421f2eabc98df078a171311fac6980 from: Omar Polo date: Fri May 05 11:45:16 2023 UTC add a manpage for gmimport.1 commit - ff07fb889e09110a7ed3807bf259327070261fe1 commit + 60ca5d00ad421f2eabc98df078a171311fac6980 blob - /dev/null blob + ae8fff675b1548f70b2de4ecca30811c037b3d9b (mode 644) --- /dev/null +++ gmimport.1 @@ -0,0 +1,34 @@ +.\" gmimport.1 was written by Omar Polo and is placed in +.\" the public domain. The author hereby disclaims copyright to this +.\" source code. +.Dd May 5, 2023 +.Dt GMIMPORT 1 +.Os +.Sh NAME +.Nm gmimport +.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/gotmarc +maildir, useful to initially populate the database: +.Pp +.Dl mlist ~/Mail/gotmarc | gmimport /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/gotmarc | gmimport /var/www/msearchd/mails.sqlite3 +.Sh SEE ALSO +.Xr minc 1 , +.Xr mlist 1 , +.Xr msearchd 8