search for: client_disconnect_with_error

Displaying 4 results from an estimated 4 matches for "client_disconnect_with_error".

2006 May 19
4
beta8: core, signal 11
...i_internal_info_handler ( fmt=0x49 <Address 0x49 out of bounds>, args=0x84288) at failures.c:400 #6 0x00074424 in i_info (format=0x84288 "Disconnected: %s") at failures.c:218 #7 0x000218c8 in client_disconnect (client=0x84288, reason=0x0) at client.c:119 #8 0x00021924 in client_disconnect_with_error (client=0xb1b40, msg=0x0) at client.c:130 #9 0x0001e818 in cmd_fetch_finish (ctx=Variable "ctx" is not available. ) at cmd-fetch.c:98 #10 0x0001eb0c in cmd_fetch (cmd=0x0) at cmd-fetch.c:176 #11 0x00022150 in _client_input (context=Variable "context" is not available. ) at...
2006 May 02
0
beta7 imap core, no assert
...i_internal_info_handler ( fmt=0x49 <Address 0x49 out of bounds>, args=0x82098) at failures.c:400 #6 0x000723cc in i_info (format=0x82098 "Disconnected: %s") at failures.c:218 #7 0x000217c8 in client_disconnect (client=0x82098, reason=0x0) at client.c:119 #8 0x00021824 in client_disconnect_with_error (client=0xaf2f8, msg=0x0) at client.c:130 #9 0x0001e6fc in cmd_fetch_finish (ctx=Variable "ctx" is not available. ) at cmd-fetch.c:98 #10 0x0001ea7c in cmd_fetch_continue (cmd=0xaf130) at cmd-fetch.c:127 #11 0x00021bb8 in client_destroy (client=0xaf33c, reason=0x82308 "Disco...
2005 Aug 24
0
verbose imap logging
...t_disconnect(struct client *client) +void client_disconnect(struct client *client, const char *reason) { + if (reason != NULL) + i_info("%s %s", reason, client_stats(client)); + (void)o_stream_flush(client->output); i_stream_close(client->input); @@ -99,7 +114,7 @@ void client_disconnect_with_error(struct client *client, const char *msg) { client_send_line(client, t_strconcat("* BYE ", msg, NULL)); - client_disconnect(client); + client_disconnect(client, msg); } int client_send_line(struct client *client, const char *data) @@ -367,7 +382,7 @@ switch (i_stream_read(client-&g...
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...ient, "Disconnected"); + else { + const char *error_string; + enum mail_error error; + + error_string = mail_storage_get_last_error( + ufctx->storage, &error); + + /* We never want to reply NO to FETCH requests, + BYE is preferrable (see imap-ml for reasons). */ + client_disconnect_with_error(ufctx->cmd->client, + error_string); + } + } else { + client_send_line(ufctx->cmd->client, str_c(ufctx->response)); + client_send_tagline(ufctx->cmd, "OK Urlfetch completed."); + } + + urlfetch_deinit(&ufctx); + return TRUE; +} + +// client is ready for...