Hi Rustam!
We have ElasticInbox configured as:
store_html_message: true
store_plain_message: falseBut still when we request messages by labelid with metadata, both
plainBody and
htmlBody come out as
null:
http://mail.example.com/rest/v2/example.com/danita/mailbox/label/1?metadata=true{
944e8900-6382-11e3-852b-22000a9887a0: {
from: [
{ name: "Example.com", address: "in...@example.com" }
],
to: [
{ name: "Danita", address: "dan...@example.com" },
],
cc: null,
bcc: null,
subject: "Newsletter #661",
date: "2013-12-12T18:46:15.000+0000",
messageId: null,
size: 22336,
location: "blob://db/944e8900-6382-11e3-852b-22000a9887a0?c=dfl&b=1",
plainBody: null,
htmlBody: null,
labels: [ 0, 1, 10 ],
markers: [ "SEEN" ],
parts: null
},
...
}What are we doing wrong?
In the client we're developing we need to show a small excerpt of each message listed on the mailbox, so right now for 20 messages per page, we need to do 21 requests: one for the listing and 20 for the message bodies. If EI can be configured to return the bodies along with the metadata we could cut that to just 1 request.
Thanks a lot.