Use absolute paths in is_dir() checks to prevent open_basedir related warnings
Fix message list sort with THREADS=REFS and sort column other than "None" or "Sent date"