Updated squirrelmail plugin with header detection