public static Message inquire(AtrilSession oSes, String sSenderDisplayName, String sSenderEmail, String sSenderUuid, String sSubject, String sBody)
throws RuntimeException, NullPointerException, NotYetConnectedException, DmsException, NotEnoughRightsException, IOException, MessagingException {
Log.out.debug("Begin Messages.inquire("+sSenderDisplayName+","+sSenderEmail+","+sSubject+")");
Dms oDms = oSes.getDms();
Message m = new Message();
m.setDocument(oDms.newDocument(oDms.getDocumentType("Message"), top(oSes).getDocument()));
m.put("thread_id", Gadgets.generateUUID());
m.put("sent_date", new Date());
m.put("sender_displayname", sSenderDisplayName);
m.put("sender_email", sSenderEmail);
if (sSenderUuid!=null) if (sSenderUuid.length()>0) m.put("sender_id", sSenderUuid);