#!/bin/sh

folder +inbox
inc
msglist=`pick -to sipb-staff -or -to athena-outage -or -to apo-news`
echo "removing messages: " $msglist
rmm $msglist
echo -n "processing refiles..."
echo -n "gr-qc..."
gr=`pick --reply-to gr-qc`
echo -n $gr
refile +gr-qc $gr
echo -n "astro-ph..."
as=`pick --reply-to astro-ph`
echo -n $as 
refile +astro-ph $as
echo -n "sipb..."
sipb=`pick -to sipb@`
echo -n $sipb
refile +sipb $sipb
echo done
