-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson_urlmap.txt
63 lines (57 loc) · 1.43 KB
/
json_urlmap.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
== Mailpile JSON URL map ==
NOTE: This will probably change in the very near future!
/search.json?q=[query] # search
/=[index]/[messageid]/message.json # fetch message tree
== Message tree format ==
{
command: "",
loglines: [ "CHATTER", ... ],
results: [
{
id: "abcdefghijklmnopqrstuvwxyz1234567890",
tag_ids: [
"1", "4", ...
],
summary: {
# Same format as search results, for just this message
},
headers: {
"Subject": "We will rock you",
...
},
html_parts: [
{
data: "html text ...",
charset: "utf-8",
type: "html",
}, ... ],
text_parts: [
{
data: "text ...",
charset: "utf-8",
type: "text", # or quote or pgp*
}, ... ],
attributes: {},
attachments: [ ],
conversation: [
{
# Same format as search results, for just this message
}, ... ],
}, ... ],
}
== Search result message format ==
{
command: "",
loglines: [ "CHATTER", ... ],
results: [
{
from: "Bjarni <[email protected]>",
subject: "Hello world",
date: 1371214183,
tags: [ "New", "Inbox", ... ],
tag_ids: [ "1", "5", ... ],
url: "/blahblah/"
idx: "ABC",
id: "abcdefghijklmnopqrstuvwxyz1234567890"
}, ... ],
}