Lines Matching refs:tctrans
477 struct test_client_transaction *tctrans;
479 tctrans = i_new(struct test_client_transaction, 1);
480 DLLIST_PREPEND(&client_requests, tctrans);
482 return tctrans;
486 test_client_transaction_destroy(struct test_client_transaction *tctrans)
488 if (tctrans->trans != NULL)
489 smtp_client_transaction_destroy(&tctrans->trans);
490 io_remove(&tctrans->io);
491 i_stream_unref(&tctrans->file);
493 DLLIST_REMOVE(&client_requests, tctrans);
494 i_free(tctrans);
521 test_client_transaction_finish(struct test_client_transaction *tctrans)
523 tctrans->trans = NULL;
524 test_client_transaction_destroy(tctrans);
529 struct test_client_transaction *tctrans)
536 i_assert(tctrans->files_idx < count);
538 path = paths[tctrans->files_idx];
550 struct test_client_transaction *tctrans)
557 i_assert(tctrans->files_idx < count);
559 path = paths[tctrans->files_idx];
571 struct test_client_transaction *tctrans)
580 tctrans->files_idx);
584 i_assert(tctrans->files_idx < count);
586 path = paths[tctrans->files_idx];
592 tctrans->files_idx, path);
601 test_client_finished(tctrans->files_idx);
606 struct test_client_transaction *tctrans;
669 tctrans = test_client_transaction_new();
670 tctrans->files_idx = client_files_last;
672 tctrans->conn = smtp_client_connection_create(smtp_client,
679 tctrans->trans = smtp_client_transaction_create(tctrans->conn,
681 &mail_params, test_client_transaction_finish, tctrans);
682 smtp_client_connection_unref(&tctrans->conn);
684 rcpts = tctrans->files_idx % 10 + 1;
686 smtp_client_transaction_add_rcpt(tctrans->trans,
690 test_client_transaction_rcpt_data, tctrans);
712 smtp_client_transaction_send(tctrans->trans, payload,
713 test_client_transaction_data, tctrans);