#!/bin/bash
# Finds duplicate messages and moves them to festi. It is sometimes fooled by
# pings; when this happens, edit rules (be sure to keep the space at the
# end of the line; adding a comment after the space is a good idea), change
# D to A, and use the mvsimsa script to move them back to pool.

cd ~/Mix
nilsimsa -C rules pool/m* 2>/dev/null
nilsimsa -H rules pool/m* 2>/dev/null |grep ^1|cut -c 3-|xargs -i mv {} festi
