using squirrelmail api in order to be able to use plugin with imaps and