• Patch: Elm ME+ 2.5 PLalpha48 -> Elm ME+ 2.5 PLalpha49 [5/9] (3/5)

    From Kari Hurtta@21:1/5 to All on Thu Jan 3 16:43:16 2019
    [continued from previous message]

    ! if (smtp_push_data((*C)->head->p.p1,".",1,0)) {
    char response_code[4];
    ! smtp_command_ready((*C)->head->p.p1,1); /* End data */

    ! if (smtp_command_ok((*C)->head->p.p1,response_code)) {

    if ((*C)->msd_sd) {
    struct string * message =
    data_message ?
    data_message :
    ! message_helper((*C)->head->p.p1,response_code);

    (*C)->msd_data_upd_cb((*C)->msd_sd,
    msd_data_response(response_code),
    --- 3544,3564 ----
    while (0 < (l = mail_gets(buffer,sizeof buffer,
    out_state_FILE((*C)->OUT)))) {

    ! if (!smtp_push_data((*C)->head->p.smtp,buffer,l,1))
    goto hard_failure;
    }

    ! if (smtp_push_data((*C)->head->p.smtp,".",1,0)) {
    char response_code[4];
    ! smtp_command_ready((*C)->head->p.smtp,1); /* End data */

    ! if (smtp_command_ok((*C)->head->p.smtp,response_code)) {

    if ((*C)->msd_sd) {
    struct string * message =
    data_message ?
    data_message :
    ! message_helper((*C)->head->p.smtp,response_code);

    (*C)->msd_data_upd_cb((*C)->msd_sd,
    msd_data_response(response_code), ***************
    *** 3473,3479 ****
    if (response_code[0]) {
    int idx = 0;
    const char * r =
    ! smtp_command_response((*C)->head->p.p1,&idx);

    struct string * message = NULL;

    --- 3573,3579 ----
    if (response_code[0]) {
    int idx = 0;
    const char * r =
    ! smtp_command_response((*C)->head->p