Update do_message_ops.php

Fix: Batch operation is not working.
Update functions.php

Fix: expand %var% variables
Move "$num=0" to line before "$itemnum = array($num)"
Merge pull request #9 from jishon/master

Batch operation doesn't work & Spamassassin's config wasn't showed in Tools