}
ExchangeMailStore mailStore = new ExchangeMailStore(exchangeUrl);
try
{
PrincipalFetcher userLister = new LdapFetcher(domain);
Iterable<String> users = userLister.getPrincipals();
mailWriter.write(mailStore.getMail(users, syncStateStorage));
return 0;
}
catch (ExchangeRuntimeException e)