Empty elements may not have a duration
Synchronisation fixes
Added the java.mail library