Added integration test to ensure that mail objects are handled like files
Merge branch 'rc/2.0.0' into develop