some bugfixes, tmp dir created in mailspool, remove path from filename2