Skip to content

Commit

Permalink
imapsieve: Use client_add_capability() for adding the dynamic capability
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and stephanbosch committed Apr 25, 2017
1 parent 583db21 commit b07b4c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/imapsieve/imap-sieve-plugin.c
Expand Up @@ -25,8 +25,8 @@ static void imap_sieve_client_created(struct client **clientp)
url = mail_user_plugin_getenv(user, "imapsieve_url");
// FIXME: parse the URL and report error if it is bad
if (url != NULL && strncasecmp(url, "sieve:", 6) == 0) {
str_append(client->capability_string, " IMAPSIEVE=");
str_append(client->capability_string, url);
client_add_capability(client, t_strconcat(
"IMAPSIEVE=", url, NULL));
} else {
url = NULL;
}
Expand Down

0 comments on commit b07b4c0

Please sign in to comment.