GitHub user sebbASF opened an issue:
https://github.com/apache/incubator-ponymail/issues/88
Bug: get by message-id does not work
The API.md doc says:
Usage:
GET /api/email.lua?id=$mid
Parameters: (cookie may be required)
- $mid: The email ID or Message-ID: header
However, only the email ID works.
The message-ID header search does not.
This appears to be because the header is enclosed in quotes[1] when doing
the search.
I think
local docs = elastic.find("message-id:\"" .. r:escape(eid) .. "\"", 1,
"mbox")
should probably be
local docs = elastic.find("message-id:" .. r:escape(eid), 1, "mbox")
[1]
https://github.com/apache/incubator-ponymail/blob/master/site/api/email.lua#L49
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---