#!/bin/sh #Lame hack to avoid no-refile on first inc into empty folder SPAM=`mhpath +SPAM` touch "${SPAM}/1" PREFIX=/usr/athena/bin $PREFIX/inc -silent -changecur +SPAM || exit 0 $PREFIX/pick -not --x-spam-flag YES -sequence valid unseen +SPAM > /dev/null 2>&1 || exit 0 #Neglected this in early rev. and resulted in slow inc-ing when SPAM was big $PREFIX/mark -del -seq unseen all $PREFIX/folder -pack +inbox > /dev/null $PREFIX/refile -src +SPAM valid +inbox $PREFIX/mark -add -nozero -sequence unseen pseq -sequence cur pseq:first +inbox $PREFIX/scan pseq +inbox