(struct _f_imap): New members capav and capac to hold the array of capabilities
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -92,6 +92,7 @@ enum imap_state | ... | @@ -92,6 +92,7 @@ enum imap_state |
92 | IMAP_COPY, IMAP_COPY_ACK, | 92 | IMAP_COPY, IMAP_COPY_ACK, |
93 | IMAP_CREATE, IMAP_CREATE_ACK, | 93 | IMAP_CREATE, IMAP_CREATE_ACK, |
94 | IMAP_DELETE, IMAP_DELETE_ACK, | 94 | IMAP_DELETE, IMAP_DELETE_ACK, |
95 | IMAP_EXPUNGE, IMAP_EXPUNGE_ACK, | ||
95 | IMAP_FETCH, IMAP_FETCH_ACK, | 96 | IMAP_FETCH, IMAP_FETCH_ACK, |
96 | IMAP_GREETINGS, | 97 | IMAP_GREETINGS, |
97 | IMAP_HEADER, | 98 | IMAP_HEADER, |
... | @@ -142,7 +143,8 @@ struct _f_imap | ... | @@ -142,7 +143,8 @@ struct _f_imap |
142 | enum imap_state state; | 143 | enum imap_state state; |
143 | 144 | ||
144 | size_t seq; /* Sequence number to build a tag. */ | 145 | size_t seq; /* Sequence number to build a tag. */ |
145 | char *capa; /* Cabilities of the server. */ | 146 | char **capav; /* Cabilities of the server. */ |
147 | size_t capac; /* Number of capabilities in the above array */ | ||
146 | int flags; | 148 | int flags; |
147 | 149 | ||
148 | /* IO use to hold the literal and quoted strings send by | 150 | /* IO use to hold the literal and quoted strings send by |
... | @@ -166,7 +168,7 @@ struct _f_imap | ... | @@ -166,7 +168,7 @@ struct _f_imap |
166 | char *buffer; | 168 | char *buffer; |
167 | char *ptr; | 169 | char *ptr; |
168 | char *nl; | 170 | char *nl; |
169 | off_t offset; /* Dummy, this is use because of the stream buffering. | 171 | off_t offset; /* Dummy, this is used because of the stream buffering. |
170 | The stream_t maintains and offset and the offset we use must | 172 | The stream_t maintains and offset and the offset we use must |
171 | be in sync. */ | 173 | be in sync. */ |
172 | 174 | ... | ... |
-
Please register or sign in to post a comment