poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59100] Sent Date filed is not extracted in message object when mail category set to RED
Date Thu, 03 Mar 2016 08:30:25 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59100

gopalkumar2@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from gopalkumar2@yahoo.com ---
I tried checking the date like below, but seems that sent date is not present 

<p>
Set<Map.Entry<MAPIProperty,List<PropertyValue>>> entry =
message.getMainChunks().getProperties().entrySet();
for (Entry<MAPIProperty, List<PropertyValue>> en : entry) {
    String mapiProp = en.getKey().mapiProperty;
    if (mapiProp != null && mapiProp.contains("PR_CLIENT_SUBMIT_TIME")) {
        PropertyValue value = en.getValue().get(0); // 
        Object obj = value.getValue();
        Date date = ((GregorianCalendar)obj).getTime();
        result.put(bean.getDctmAttribute(), new DfTime(date));
        break;
    }
}
</P>

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message