|
|
@ -1,6 +1,9 @@
|
|
|
|
package com.olexyn.burnsmail;
|
|
|
|
package com.olexyn.burnsmail;
|
|
|
|
|
|
|
|
|
|
|
|
import lombok.experimental.UtilityClass;
|
|
|
|
import lombok.experimental.UtilityClass;
|
|
|
|
|
|
|
|
import org.json.simple.JSONObject;
|
|
|
|
|
|
|
|
import org.json.simple.parser.JSONParser;
|
|
|
|
|
|
|
|
import org.json.simple.parser.ParseException;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.mail.Folder;
|
|
|
|
import javax.mail.Folder;
|
|
|
|
import javax.mail.MessagingException;
|
|
|
|
import javax.mail.MessagingException;
|
|
|
@ -46,4 +49,10 @@ public class MiscU {
|
|
|
|
targetFolder.open(READ_WRITE);
|
|
|
|
targetFolder.open(READ_WRITE);
|
|
|
|
return targetFolder;
|
|
|
|
return targetFolder;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static JSONObject deserializeJson(String json) throws ParseException {
|
|
|
|
|
|
|
|
JSONParser parser = new JSONParser();
|
|
|
|
|
|
|
|
return (JSONObject) parser.parse(json);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|