SMTP_PROTOCOL_SMTP, net_ip2addr(&bind_ip), bind_ports[0],
SMTP_CLIENT_SSL_MODE_NONE, NULL);
strans = smtp_client_transaction_create(sconn,
- &((struct smtp_address){"sender", "example.com"}), NULL, 0,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}), NULL, 0,
test_client_broken_payload_finished, NULL);
smtp_client_connection_unref(&sconn);
smtp_client_transaction_add_rcpt(strans,
- &((struct smtp_address){"rcpt", "example.com"}), NULL,
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}), NULL,
test_client_broken_payload_rcpt_to_cb,
test_client_broken_payload_rcpt_data_cb, NULL);
smtp_client_transaction_send(strans, input,
SMTP_PROTOCOL_SMTP, net_ip2addr(&bind_ip), bind_ports[0],
SMTP_CLIENT_SSL_MODE_NONE, NULL);
strans = smtp_client_transaction_create(sconn,
- &((struct smtp_address){"sender", "example.com"}), NULL, 0,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}), NULL, 0,
test_client_broken_payload_finished, NULL);
smtp_client_connection_unref(&sconn);
smtp_client_transaction_add_rcpt(strans,
- &((struct smtp_address){"rcpt", "example.com"}), NULL,
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}), NULL,
test_client_broken_payload_rcpt_to_cb,
test_client_broken_payload_rcpt_data_cb, NULL);
smtp_client_transaction_send
SMTP_PROTOCOL_SMTP, net_ip2addr(&bind_ip), bind_ports[index],
SMTP_CLIENT_SSL_MODE_NONE, NULL);
strans = smtp_client_transaction_create(sconn,
- &((struct smtp_address){"sender", "example.com"}), NULL, 0,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}), NULL, 0,
test_client_connection_lost_finished, pctx);
smtp_client_connection_unref(&sconn);
smtp_client_transaction_add_rcpt(strans,
- &((struct smtp_address){"rcpt", "example.com"}), NULL,
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}), NULL,
test_client_connection_lost_rcpt_to_cb,
test_client_connection_lost_rcpt_data_cb, pctx);
smtp_client_transaction_send
timeout_remove(&pctx->to);
smtp_client_transaction_add_rcpt(pctx->trans,
- &((struct smtp_address){"rcpt", "example.com"}), NULL,
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}), NULL,
test_client_unexpected_reply_rcpt_to_cb,
test_client_unexpected_reply_rcpt_data_cb, pctx);
SMTP_PROTOCOL_SMTP, net_ip2addr(&bind_ip), bind_ports[index],
SMTP_CLIENT_SSL_MODE_NONE, NULL);
pctx->trans = smtp_client_transaction_create(pctx->conn,
- &((struct smtp_address){"sender", "example.com"}), NULL, 0,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}), NULL, 0,
test_client_unexpected_reply_finished, pctx);
smtp_client_connection_connect(pctx->conn,
test_client_unexpected_reply_login_cb, (void *)pctx);
i_debug("SUBMIT2[%u]", pctx->index);
smtp_client_transaction_add_rcpt(pctx->trans,
- &((struct smtp_address){"rcpt", "example.com"}), NULL,
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}), NULL,
test_client_premature_reply_rcpt_to_cb,
test_client_premature_reply_rcpt_data_cb, pctx);
SMTP_PROTOCOL_SMTP, net_ip2addr(&bind_ip), bind_ports[index],
SMTP_CLIENT_SSL_MODE_NONE, NULL);
pctx->trans = smtp_client_transaction_create(conn,
- &((struct smtp_address){"sender", "example.com"}), NULL, 0,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}), NULL, 0,
test_client_premature_reply_finished, pctx);
smtp_client_connection_connect(conn,
test_client_premature_reply_login_cb, (void *)pctx);
test_client_early_data_reply_login_cb, (void *)pctx);
pctx->trans = smtp_client_transaction_create(conn,
- &((struct smtp_address){"sender", "example.com"}), NULL, 0,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}), NULL, 0,
test_client_early_data_reply_finished, pctx);
smtp_client_transaction_add_rcpt(pctx->trans,
- &((struct smtp_address){"rcpt", "example.com"}), NULL,
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}), NULL,
test_client_early_data_reply_rcpt_to_cb,
test_client_early_data_reply_rcpt_data_cb, pctx);
smtp_client_transaction_start(pctx->trans,
SMTP_PROTOCOL_SMTP, net_ip2addr(&bind_ip), bind_ports[index],
SMTP_CLIENT_SSL_MODE_NONE, &smtp_set);
pctx->trans = smtp_client_transaction_create(pctx->conn,
- &((struct smtp_address){"sender", "example.com"}), NULL, 0,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}), NULL, 0,
test_client_authentication_failed_finished, pctx);
smtp_client_connection_connect(pctx->conn,
test_client_authentication_failed_login_cb, (void *)pctx);
smtp_client_connection_unref(&pctx->conn);
smtp_client_transaction_add_rcpt(pctx->trans,
- &((struct smtp_address){"rcpt", "example.com"}), NULL,
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}), NULL,
test_client_authentication_failed_rcpt_to_cb,
test_client_authentication_failed_rcpt_data_cb, pctx);
timeout_remove(&pctx->to);
smtp_client_transaction_add_rcpt(pctx->trans,
- &((struct smtp_address){"rcpt", "example.com"}), NULL,
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}), NULL,
test_client_transaction_timeout_rcpt_to_cb,
test_client_transaction_timeout_rcpt_data_cb, pctx);
SMTP_PROTOCOL_SMTP, net_ip2addr(&bind_ip), bind_ports[index],
SMTP_CLIENT_SSL_MODE_NONE, NULL);
pctx->trans = smtp_client_transaction_create(pctx->conn,
- &((struct smtp_address){"sender", "example.com"}), NULL, 0,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}), NULL, 0,
test_client_transaction_timeout_finished, pctx);
smtp_client_transaction_set_timeout(pctx->trans, 1000);
smtp_client_transaction_start(pctx->trans,
smtp_submit_set.submission_timeout = 1000;
i_zero(&smtp_input);
- smtp_submit = smtp_submit_init_simple(&smtp_input, &smtp_submit_set,
- &((struct smtp_address){"sender", "example.com"}));
+ smtp_submit = smtp_submit_init_simple(
+ &smtp_input, &smtp_submit_set,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}));
smtp_submit_add_rcpt(smtp_submit,
- &((struct smtp_address){"rcpt", "example.com"}));
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}));
smtp_submit_add_rcpt(smtp_submit,
- &((struct smtp_address){"rcpt2", "example.com"}));
+ &((struct smtp_address){.localpart = "rcpt2",
+ .domain = "example.com"}));
output = smtp_submit_send(smtp_submit);
o_stream_nsend_str(output, test_message1);
i_zero(&smtp_input);
smtp_submit_set.submission_host =
t_strdup_printf("127.0.0.1:%u", bind_ports[0]);
- smtp_submit1 = smtp_submit_init_simple(&smtp_input, &smtp_submit_set,
- &((struct smtp_address){"sender", "example.com"}));
+ smtp_submit1 = smtp_submit_init_simple(
+ &smtp_input, &smtp_submit_set,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}));
smtp_submit_add_rcpt(smtp_submit1,
- &((struct smtp_address){"rcpt", "example.com"}));
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}));
output = smtp_submit_send(smtp_submit1);
o_stream_nsend_str(output, test_message1);
smtp_submit_set.submission_host =
t_strdup_printf("127.0.0.1:%u", bind_ports[1]);
smtp_submit2 = smtp_submit_init_simple(&smtp_input, &smtp_submit_set,
- &((struct smtp_address){"sender", "example.com"}));
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}));
smtp_submit_add_rcpt(smtp_submit2,
- &((struct smtp_address){"rcpt", "example.com"}));
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}));
output = smtp_submit_send(smtp_submit2);
o_stream_nsend_str(output, test_message2);
i_zero(&smtp_input);
smtp_submit = smtp_submit_init_simple(&smtp_input, &smtp_submit_set,
- &((struct smtp_address){"sender", "example.com"}));
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}));
smtp_submit_add_rcpt(smtp_submit,
- &((struct smtp_address){"rcpt", "example.com"}));
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}));
output = smtp_submit_send(smtp_submit);
o_stream_nsend_str(output, test_message1);
i_zero(&smtp_input);
smtp_submit = smtp_submit_init_simple(&smtp_input, &smtp_submit_set,
- &((struct smtp_address){"sender", "example.com"}));
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}));
smtp_submit_add_rcpt(smtp_submit,
- &((struct smtp_address){"rcpt", "example.com"}));
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}));
output = smtp_submit_send(smtp_submit);
o_stream_nsend_str(output, test_message1);
/* submit 1 */
i_zero(&smtp_input);
smtp_submit_set.sendmail_path = sendmail_path1;
- smtp_submit1 = smtp_submit_init_simple(&smtp_input, &smtp_submit_set,
- &((struct smtp_address){"sender", "example.com"}));
+ smtp_submit1 = smtp_submit_init_simple(
+ &smtp_input, &smtp_submit_set,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}));
smtp_submit_add_rcpt(smtp_submit1,
- &((struct smtp_address){"rcpt", "example.com"}));
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}));
output = smtp_submit_send(smtp_submit1);
o_stream_nsend_str(output, test_message1);
/* submit 2 */
i_zero(&smtp_input);
smtp_submit_set.sendmail_path = sendmail_path2;
- smtp_submit2 = smtp_submit_init_simple(&smtp_input, &smtp_submit_set,
- &((struct smtp_address){"sender", "example.com"}));
+ smtp_submit2 = smtp_submit_init_simple(
+ &smtp_input, &smtp_submit_set,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}));
smtp_submit_add_rcpt(smtp_submit2,
- &((struct smtp_address){"rcpt", "example.com"}));
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}));
output = smtp_submit_send(smtp_submit2);
o_stream_nsend_str(output, test_message2);
smtp_submit_set.submission_host = host,
i_zero(&smtp_input);
- smtp_submit = smtp_submit_init_simple(&smtp_input, &smtp_submit_set,
- &((struct smtp_address){"sender", "example.com"}));
+ smtp_submit = smtp_submit_init_simple(
+ &smtp_input, &smtp_submit_set,
+ &((struct smtp_address){.localpart = "sender",
+ .domain = "example.com"}));
smtp_submit_add_rcpt(smtp_submit,
- &((struct smtp_address){"rcpt", "example.com"}));
+ &((struct smtp_address){.localpart = "rcpt",
+ .domain = "example.com"}));
output = smtp_submit_send(smtp_submit);
o_stream_nsend_str(output, message);