protected static void archive(Principal principal, Email message,boolean retry) throws Exception {
Volumes vols = ConfigurationService.getConfig().getVolumes();
assignEmailID(message,vols);
try {
if (messageStore.insertMessage(message.getEmailID(),message)) {
vols.touchActiveVolume();
messageIndex.indexMessage(message.getEmailID());
}
} catch (Exception e) {
if (e.getCause() instanceof IOException && e.getMessage().contains("space")) {
logger.error("must close volume (out of disk space)",e);