[os_maild] fix compiler warnings
[os_maild] fix potential nullpointer dereference
[os_maild] reduce variable scope
[os_maild] add nonnull qualifiers
update postgresql.schema
[tests] test searchAndReplace()
[shared] fix searchAndReplace()
[tests] reenable all tests
Merge pull request #318 from cgzones/fix_searchAndReplace

fix searchAndReplace()
Merge pull request #317 from cgzones/os_maild_

os_maild
Merge pull request #316 from sechacking/master

update postgresql.schema