* lei + thunderbird recipe
@ 2022-03-23 12:55 Bagas Sanjaya
2022-03-23 13:32 ` Konstantin Ryabitsev
0 siblings, 1 reply; 2+ messages in thread
From: Bagas Sanjaya @ 2022-03-23 12:55 UTC (permalink / raw)
To: Git Users
This thread is inspired by Ævar's recipe [1] and Josef Bacik's recipe
[2].
As I know that GMail have issues regarding delayed ML message delivery,
I go trying to use lei to fetch ML messages into Thunderbird.
After installing public-inbox (I have to build from public-inbox.org
sources because there isn't yet official Debian/Ubuntu packages), I
begin fetching Git ML messages up until 18 days ago (within
public-inbox sources directory):
lei q -o "mboxrd:mbox/git.mbox" -I https://lore.kernel.org/git
-t 'a:git@vger.kernel.org AND rt:18.days.ago..'
Why mboxrd instead of Maildir? Because from formats within Mbox family,
Thunderbird uses mboxrd format.
After initial fetching, I update the mbox by:
lei up mbox/git.mbox
To automate this, I write simple script:
```
#!/bin/bash
# replace with directory of your Thunderbird profile
THUNDERBIRD_LOCAL=$HOME/.thunderbird/1a14l7jo.default-release/Mail/"Local Folders"
MAILDIR=$HOME/public-inbox/mbox
# add more mboxes name here if you have one
MBOXES="git"
for m in $MBOXES; do
echo $m &&
$HOME/public-inbox/local/bin/lei up $MAILDIR/$m.mbox &&
cp $MAILDIR/$m.mbox "$THUNDERBIRD_LOCAL"/
done
```
and then set up systemd timer comprising of user service unit:
```
[Unit]
Description=Lei update
After=network.target
[Service]
Type=oneshot
ExecStart=/home/bagas/.bin/lei-up
Restart=on-failure
[Install]
WantedBy=default.target
```
and user timer unit that updates the mbox every 12:00 and 18:00:
```
[Unit]
Description=Lei update timer
[Timer]
OnCalendar=*-*-* 12:00:00
OnCalendar=*-*-* 18:00:00
Persistent=true
AccuracySec=1s
[Install]
WantedBy=timers.target
```
To fire up the timer, I simply do `systemctl --user enable lei.timer`.
Hope this will be useful.
[1]: https://lore.kernel.org/git/220202.86leyt8uly.gmgdl@evledraar.gmail.com/
[2]: https://josefbacik.github.io/kernel/2021/10/18/lei-and-b4.html
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: lei + thunderbird recipe
2022-03-23 12:55 lei + thunderbird recipe Bagas Sanjaya
@ 2022-03-23 13:32 ` Konstantin Ryabitsev
0 siblings, 0 replies; 2+ messages in thread
From: Konstantin Ryabitsev @ 2022-03-23 13:32 UTC (permalink / raw)
To: Bagas Sanjaya; +Cc: Git Users
On Wed, Mar 23, 2022 at 07:55:34PM +0700, Bagas Sanjaya wrote:
> This thread is inspired by Ævar's recipe [1] and Josef Bacik's recipe
> [2].
>
> As I know that GMail have issues regarding delayed ML message delivery,
> I go trying to use lei to fetch ML messages into Thunderbird.
>
> After installing public-inbox (I have to build from public-inbox.org
> sources because there isn't yet official Debian/Ubuntu packages), I
> begin fetching Git ML messages up until 18 days ago (within
> public-inbox sources directory):
>
> lei q -o "mboxrd:mbox/git.mbox" -I https://lore.kernel.org/git
> -t 'a:git@vger.kernel.org AND rt:18.days.ago..'
If you are a Thunderbird user, you can also just access
nntp://nntp.lore.kernel.org/org.kernel.vger.git much to the same effect.
Lei is best suited when you're doing complex search queries across multiple
lists.
Best regards,
-Konstantin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-23 13:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-23 12:55 lei + thunderbird recipe Bagas Sanjaya
2022-03-23 13:32 ` Konstantin Ryabitsev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox