chiark / gitweb /
bin/disorder-notify: Rewrite and take over the functionality of `media-keys'.
[profile] / bin / fixsub
CommitLineData
8945a62f
MW
1#! /bin/sh -e
2cd $HOME/mail
3find . \
4 \( -name ".?*" -o \
5 -name bin -o \
6 -name "*~" -o \
7 -name "*.nov" -o \
8 -name "to.split" \) -prune -o \
9 -type f -print \
10 >.subscriptions.tmp
11{ echo INBOX; sort .subscriptions.tmp | sed 's:^./::'; } >.subscriptions.new
12mv .subscriptions.new .subscriptions
13rm -f .subscriptions.tmp