-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathimap.txt
53 lines (30 loc) · 968 Bytes
/
imap.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
imap plan:
flags:
system flags are described in the imap protocol as
words like: \Answered
the backslash is annoying to type and I think that the
text is case insensitive anyway.
we'll represent these flags by keywords (e.g :answered).
todo:
uid (modifier to copy fetch and store commands)
search sexpressions (things that can be passwd to the search-mailbox
function).
kwda - keywords that don't take any arguments
kwdb - keywords that do take arguments
ssexp := nil | ssexp1
ssexp1 := kwda | (kwdb oprnd+) (and ssexp1*) | (or ssexp1*) | (not ssexp1)
| set
set := number-seq | ( number-seq+ )
number-seq := integer | (:seq integer integer)
kwda := :all | :answered ...
kwdb := :bcc | :before ....
oprnd := <the appropriate lisp object for the keyword>
implemented:
connecting:
make-imap-connection
after connecting:
fetch-letter
mailbox-list
noop
search-mailbox
select-mailbox