On Thu, Sep 02, 2021 at 09:58:50PM +0000, Eric Wong wrote:
> Fwiw, most of the functionality works much better with Maildir
> because of potential password prompts needed for IMAP and
> interactivity required.

Okay, I'll try this out with maildir for now -- it's easy to hook mbsync into
the process if desired.

> OK, there's two main commands, "lei q" and "lei up".
> Both of which may prompt for passwords depending on how
> git-credential is set up:
> 
>       # the destination, could be Maildir
>       MFOLDER=imaps://[email protected]/INBOX.landlock
> 
>       # initial search:
>       lei q -o $MFOLDER -t -I https://lore.kernel.org/all/ --stdin <<EOF
>       (
>               dfn:Documentation/security/landlock.rst OR
>               dfn:Documentation/userspace-api/landlock.rst OR
>               dfn:include/uapi/linux/landlock.h OR
>               dfn:samples/landlock/ OR
>               dfn:security/landlock/ OR
>               dfn:tools/testing/selftests/landlock/ OR
>               dfhh:landlock
>       ) AND rt:2.months.ago..
>       EOF
> 
>       # update whenever, may prompt for IMAP password, but could be
>       # cron-ed or similar if passwords are cached
>       lei up $MFOLDER
> 
>       # Optional: tweaking the search parameters can be done via
>       lei edit-search $MFOLDER

Yep, that seems to work fine. Question -- I noticed that lei just issues a
regular query, retrieves results with curl and then parses the output. Is
there a danger of potentially running into issues with parsing the regular
HTML output if it changes in the future?

-K

Reply via email to