static void client_worker_input(struct client *client);
int client_create(const char *service, const char *username,
- int fd_in, int fd_out, const struct imap_urlauth_settings *set,
+ int fd_in, int fd_out,
+ const struct imap_urlauth_settings *set,
struct client **client_r)
{
struct client *client;
if (username != NULL) {
if (set->imap_urlauth_submit_user != NULL &&
strcmp(set->imap_urlauth_submit_user, username) == 0) {
- e_debug(client->event, "User has URLAUTH submit access");
+ e_debug(client->event,
+ "User has URLAUTH submit access");
app = "submit+";
array_push_back(&client->access_apps, &app);
}
if (set->imap_urlauth_stream_user != NULL &&
strcmp(set->imap_urlauth_stream_user, username) == 0) {
- e_debug(client->event, "User has URLAUTH stream access");
+ e_debug(client->event,
+ "User has URLAUTH stream access");
app = "stream";
array_push_back(&client->access_apps, &app);
}
if (ret <= 0) {
if (ret < 0) {
- e_error(client->event, "fd_send(%s, %d) failed: %m",
+ e_error(client->event,
+ "fd_send(%s, %d) failed: %m",
socket_path, client->fd_ctrl);
} else {
- e_error(client->event, "fd_send(%s, %d) failed to send byte",
+ e_error(client->event,
+ "fd_send(%s, %d) failed to send byte",
socket_path, client->fd_ctrl);
}
client_worker_disconnect(client);