17 |
|
|
18 |
|
|
19 |
/* |
/* |
20 |
* Reads data the server sent. |
* Read data the server sent. |
21 |
*/ |
*/ |
22 |
int receive_response(char *buf) |
int receive_response(char *buf) |
23 |
{ |
{ |
66 |
|
|
67 |
|
|
68 |
/* |
/* |
69 |
* Processes the data that server sent due to IMAP STATUS client request. |
* Process the data that server sent due to IMAP STATUS client request. |
70 |
*/ |
*/ |
71 |
int status_response(void) |
int status_response(void) |
72 |
{ |
{ |
91 |
|
|
92 |
|
|
93 |
/* |
/* |
94 |
* Processes the data that server sent due to IMAP SEARCH client request. |
* Process the data that server sent due to IMAP SEARCH client request. |
95 |
*/ |
*/ |
96 |
int search_response(char *mesgs) |
int search_response(char *mesgs) |
97 |
{ |
{ |
109 |
|
|
110 |
|
|
111 |
/* |
/* |
112 |
* Processes the data that server sent due to IMAP FETCH client request. |
* Process the data that server sent due to IMAP FETCH client request. |
113 |
*/ |
*/ |
114 |
int fetch_response(char *headers) |
int fetch_response(char *headers) |
115 |
{ |
{ |
137 |
|
|
138 |
|
|
139 |
/* |
/* |
140 |
* Processes the data that server sent due to IMAP COPY client request. |
* Process the data that server sent due to IMAP COPY client request. |
141 |
*/ |
*/ |
142 |
int copy_response(void) |
int copy_response(void) |
143 |
{ |
{ |
156 |
|
|
157 |
|
|
158 |
/* |
/* |
159 |
* Checks if response of server to client's request was succesfully |
* Check if response of server to client's request was succesfully |
160 |
* delivered or there was some kind of error. |
* delivered or there was some kind of error. |
161 |
*/ |
*/ |
162 |
int analyze_response(char *buf) |
int analyze_response(char *buf) |