(imap4d_auth_capability): New function.
Showing
2 changed files
with
10 additions
and
1 deletions
... | @@ -30,6 +30,14 @@ struct imap_auth { | ... | @@ -30,6 +30,14 @@ struct imap_auth { |
30 | }; | 30 | }; |
31 | 31 | ||
32 | int | 32 | int |
33 | imap4d_auth_capability () | ||
34 | { | ||
35 | struct imap_auth *ap; | ||
36 | for (ap = imap_auth_tab; ap->name; ap++) | ||
37 | util_send(" AUTH=%s", ap->name); | ||
38 | } | ||
39 | |||
40 | int | ||
33 | imap4d_authenticate (struct imap4d_command *command, char *arg) | 41 | imap4d_authenticate (struct imap4d_command *command, char *arg) |
34 | { | 42 | { |
35 | char *sp = NULL; | 43 | char *sp = NULL; | ... | ... |
... | @@ -156,6 +156,7 @@ extern char *strtok_r __P((char *s, const char *delim, char **save_ptr)); | ... | @@ -156,6 +156,7 @@ extern char *strtok_r __P((char *s, const char *delim, char **save_ptr)); |
156 | extern int imap4d_append __P ((struct imap4d_command *, char *)); | 156 | extern int imap4d_append __P ((struct imap4d_command *, char *)); |
157 | extern int imap4d_append0 __P((mailbox_t mbox, int flags, char *text)); | 157 | extern int imap4d_append0 __P((mailbox_t mbox, int flags, char *text)); |
158 | extern int imap4d_authenticate __P ((struct imap4d_command *, char *)); | 158 | extern int imap4d_authenticate __P ((struct imap4d_command *, char *)); |
159 | extern int imap4d_auth_capability __P((void)); | ||
159 | extern int imap4d_capability __P ((struct imap4d_command *, char *)); | 160 | extern int imap4d_capability __P ((struct imap4d_command *, char *)); |
160 | extern int imap4d_check __P ((struct imap4d_command *, char *)); | 161 | extern int imap4d_check __P ((struct imap4d_command *, char *)); |
161 | extern int imap4d_close __P ((struct imap4d_command *, char *)); | 162 | extern int imap4d_close __P ((struct imap4d_command *, char *)); |
... | @@ -186,7 +187,7 @@ extern int imap4d_uid __P ((struct imap4d_command *, char *)); | ... | @@ -186,7 +187,7 @@ extern int imap4d_uid __P ((struct imap4d_command *, char *)); |
186 | extern int imap4d_unsubscribe __P ((struct imap4d_command *, char *)); | 187 | extern int imap4d_unsubscribe __P ((struct imap4d_command *, char *)); |
187 | extern int imap4d_namespace __P ((struct imap4d_command *, char *)); | 188 | extern int imap4d_namespace __P ((struct imap4d_command *, char *)); |
188 | extern int imap4d_version __P ((struct imap4d_command *, char *)); | 189 | extern int imap4d_version __P ((struct imap4d_command *, char *)); |
189 | 190 | ||
190 | /* Shared between fetch and store */ | 191 | /* Shared between fetch and store */ |
191 | extern void fetch_flags0 (const char *prefix, message_t msg, int isuid); | 192 | extern void fetch_flags0 (const char *prefix, message_t msg, int isuid); |
192 | 193 | ... | ... |
-
Please register or sign in to post a comment