private TempMailData getOrCreateMailData(UUID id) throws IOException { TempMailData tempMailData = jobStore.findData(id, createCacheKey(), TempMailData.class); if (tempMailData == null) { tempMailData = new TempMailData(id.toString()); jobStore.create(id, createCacheKey(), tempMailData); } return tempMailData; }
boolean newMappingsCreated = false; String migratedLabelId = tempMailData.getImportedId(LABEL); if (migratedLabelId == null) { tempMailData.addFolderIdMapping(LABEL, migratedLabelId); newMappingsCreated = true; return new ImportResult(e); tempMailData.addFolderIdMapping(LABEL, migratedLabelId); newMappingsCreated = true;
for (String exportedLabelIdOrName : mailMessageModel.getContainerIds()) { String importedLabelId = tempMailData.getImportedId(exportedLabelIdOrName); if (importedLabelId != null) { importedLabelIds.add(exportedLabelIdOrName); importedLabelIds.add(tempMailData.getImportedId(LABEL));
String importerLabelId = tempMailData.getImportedId(exportedLabelName); if (importerLabelId == null) { tempMailData.addFolderIdMapping(exportedLabelName, importerLabelId); newMappingsCreated = true;
String exportedLabelName = mailContainerModel.getName(); String importerLabelId = tempMailData.getImportedId(exportedLabelName); if (importerLabelId == null) { tempMailData.addFolderIdMapping(exportedLabelName, importerLabelId); newMappingsCreated = true;