Fix some bugs, format code, mail extractor optimization

Add filtering field "from",
FIX crashes when emp not initialized,
Foramt & remove unused code,
Add buffered write in mail extractor
Add filtering field subject
Remove fields FILE_NAME & MESSAGE_ID from XML structure
Add checking if *.pdf file is empty
Add zfork for use search in daemon mode