>Ahem, the correct syntax is: >REPLIEDFLAG=$((($MSGFLAGS & 16) / 16)) That is _a_ correct way to do it, yes. If there's anything actually wrong with the way I gave, please explain what. -Daniel. -- () ASCII ribbon campaign () Hopeless ribbon campaign /\ against HTML mail /\ against gratuitous bloodshed