unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* MH & thread support
@ 2022-01-06 18:10 Jakub Kicinski
  2022-01-07  1:40 ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2022-01-06 18:10 UTC (permalink / raw)
  To: meta

Hi!

Two questions:

 - how do the plans for MH email format support look? It'd be great to
   fetch emails with lei directly to claws-mail (which seems to be used
   by a number of kernel devs, at least)

 - is there a way to get lei to fetch a particular thread? It seems
   like using a bare msg-id as the search term mostly works, but it 
   also fetches in any threads which were referring to the thread of
   interest by posting a link

Thanks for great work!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MH & thread support
  2022-01-06 18:10 MH & thread support Jakub Kicinski
@ 2022-01-07  1:40 ` Kyle Meyer
  2022-01-07  2:22   ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2022-01-07  1:40 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: meta

Jakub Kicinski writes:

> Hi!
>
> Two questions:
>
>  - how do the plans for MH email format support look? It'd be great to
>    fetch emails with lei directly to claws-mail (which seems to be used
>    by a number of kernel devs, at least)

I don't have any informed opinions on this and don't know what Eric's
thoughts are, but fwiw this is what he wrote in lei-mail-formats(5):

  MH
         Not yet supported, locking semantics (or lack thereof) appear to make
         it unsuitable for parallel access.  It is widely-supported by a variety
         of MUAs and mailing list managers, however.

>  - is there a way to get lei to fetch a particular thread? It seems
>    like using a bare msg-id as the search term mostly works, but it 
>    also fetches in any threads which were referring to the thread of
>    interest by posting a link

You can search with the "mid:" prefix and then pull in the entire thread
with -t/--threads:

  $ lei q -f ldjson \
    mid:20211119204916.grergcuzj5gcic6c@meerkat.local | \
    jq '[.blob,.s,.f[0][0]]'
  [
    "7e49832370e95afb54298d21ea4c10d338bb3a7b",
    "RFC: should lei inject its own \"Received:\" header?",
    "Konstantin Ryabitsev"
  ]


  $ lei q -t -f ldjson \
    mid:20211119204916.grergcuzj5gcic6c@meerkat.local | \
    jq '[.blob,.s,.f[0][0]]'
  [
    "7e49832370e95afb54298d21ea4c10d338bb3a7b",
    "RFC: should lei inject its own \"Received:\" header?",
    "Konstantin Ryabitsev"
  ]
  [
    "70c49f363594e94d89a14bcb57c45d45cac49172",
    "Re: RFC: should lei inject its own \"Received:\" header?",
    "Eric Wong"
  ]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MH & thread support
  2022-01-07  1:40 ` Kyle Meyer
@ 2022-01-07  2:22   ` Jakub Kicinski
  0 siblings, 0 replies; 3+ messages in thread
From: Jakub Kicinski @ 2022-01-07  2:22 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: meta

On Thu, 06 Jan 2022 20:40:09 -0500 Kyle Meyer wrote:
> >  - is there a way to get lei to fetch a particular thread? It seems
> >    like using a bare msg-id as the search term mostly works, but it 
> >    also fetches in any threads which were referring to the thread of
> >    interest by posting a link  
> 
> You can search with the "mid:" prefix and then pull in the entire thread
> with -t/--threads:
> 
>   $ lei q -f ldjson \
>     mid:20211119204916.grergcuzj5gcic6c@meerkat.local | \
>     jq '[.blob,.s,.f[0][0]]'
>   [
>     "7e49832370e95afb54298d21ea4c10d338bb3a7b",
>     "RFC: should lei inject its own \"Received:\" header?",
>     "Konstantin Ryabitsev"
>   ]
> 
> 
>   $ lei q -t -f ldjson \
>     mid:20211119204916.grergcuzj5gcic6c@meerkat.local | \
>     jq '[.blob,.s,.f[0][0]]'
>   [
>     "7e49832370e95afb54298d21ea4c10d338bb3a7b",
>     "RFC: should lei inject its own \"Received:\" header?",
>     "Konstantin Ryabitsev"
>   ]
>   [
>     "70c49f363594e94d89a14bcb57c45d45cac49172",
>     "Re: RFC: should lei inject its own \"Received:\" header?",
>     "Eric Wong"
>   ]

Perfect, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-07  2:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 18:10 MH & thread support Jakub Kicinski
2022-01-07  1:40 ` Kyle Meyer
2022-01-07  2:22   ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).