Do not send mail on error

This commit is contained in:
Pierre Pronchery 2006-09-18 21:45:27 +00:00
parent d805e681d4
commit 746adb7af5

View File

@ -218,9 +218,9 @@ void compose_send(Compose * compose)
msg = p; msg = p;
snprintf(&msg[msg_len], body_len + 8, "\r\n%s\r\n.\r\n", body); snprintf(&msg[msg_len], body_len + 8, "\r\n%s\r\n.\r\n", body);
msg_len+=body_len+7; msg_len+=body_len+7;
_send_mail(compose, msg, msg_len);
} }
g_free(body); g_free(body);
_send_mail(compose, msg, msg_len);
free(msg); free(msg);
} }