aboutsummaryrefslogtreecommitdiffstats
path: root/modules/communication/neomutt/neomutt-sync.sh
blob: f41f0e7fec22a5e820efb5408efb6a4f3b2dcc7b (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
# Sync one mbsync channel and index new messages with notmuch.

set -uo pipefail

CHANNEL_GROUP="$1"

mbsync "$CHANNEL_GROUP"
notmuch new