You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/03/02 15:11:25 UTC

[Bug 59100] New: Sent Date filed is not extracted in message object when mail category set to RED

https://bz.apache.org/bugzilla/show_bug.cgi?id=59100

            Bug ID: 59100
           Summary: Sent Date filed is not extracted in message object
                    when mail category set to RED
           Product: POI
           Version: 3.14-dev
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: POI Overall
          Assignee: dev@poi.apache.org
          Reporter: gopalkumar2@yahoo.com

Created attachment 33617
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33617&action=edit
The sample outlook mail which you can use to reproduce the issue.

Sent Date filed is not extracted in message object when mail category set to
RED.
Moreover, Please note that message is saved from sent folder and hence message
header is not present. We tried several workaround like iterating thought all
message properties but it seems that the sent date info is not populated in
message object.
The sample outlook mail is attached which you can use to reproduce the issue.

-- 
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


[Bug 59100] Sent Date filed is not extracted in message object when mail category set to RED

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59100

Nick Burch <ap...@gagravarr.org> changed:

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

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
I wonder if the date is stored in the fixed-sized properties block, rather than
the variable one? What happens if you try checking in the
MessagePropertiesChunk?

-- 
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


[Bug 59100] Sent Date filed is not extracted in message object when mail category set to RED

Posted by bu...@apache.org.
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


[Bug 59100] Sent Date field is not extracted in message object when mail category set to RED

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59100

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Sent Date filed is not      |Sent Date field is not
                   |extracted in message object |extracted in message object
                   |when mail category set to   |when mail category set to
                   |RED                         |RED

-- 
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