Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mark Mail - hacky API
- mode=json,xml
- result.xqy - search results
- uses markmail's normal uri syntax, q component is query string url encoded, eg:
- http://markmail.org/results.xqy?q=from:nathan%40webr3.org%20list:org.w3.public-lod&page=1&mode=json&id=
- paging can be found in the results (pages), and swap page param in uri for the page (1,2,3 etc)
- each item in results has an "id" (message id) and a thread_id (doh):
- "id":"5wfms7w5opja4a2y","thread_id":"dcue2bsyrsgbzsd5"
- to get a message:
- http://markmail.org/message.xqy?id=5wfms7w5opja4a2y&mode=json
- to get a thread:
- http://markmail.org/thread.xqy?id=dcue2bsyrsgbzsd5&mode=json
- that's all you need to get anything from markmail.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement