X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_libesmtp.c;h=7b3ada3b1da89cd622cbec5b31b395a74717b9d1;hp=31a4b8e29c23c48cb6f543dd114f15fcc8019377;hb=144d971350da85e57d24db87c09fd9cc0dcf22f2;hpb=f7a7cee0f8bce7ddc378197a9394c6fceb6988ec diff --git a/mutt_libesmtp.c b/mutt_libesmtp.c index 31a4b8e..7b3ada3 100644 --- a/mutt_libesmtp.c +++ b/mutt_libesmtp.c @@ -279,13 +279,22 @@ static void do_dsn_ret (smtp_message_t message) { smtp_dsn_set_ret (message, Ret_FULL); } +#if defined (USE_LIBESMTP) && (defined (USE_SSL) || defined (USE_GNUTLS)) +int mutt_libesmtp_check_usetls (const char* val) { + if (str_ncmp (val, "enabled", 7) != 0 && + str_ncmp (val, "required", 8) != 0) + return (0); + return (1); +} +#endif + /* - * mutt_invoke_libesmtp + * mutt_libesmtp_invoke * Sends a mail message to the provided recipients using libesmtp. * Returns 0 upon success, -1 upon failure (and prints an error * message). */ -int mutt_invoke_libesmtp (ADDRESS * from, /* the sender */ +int mutt_libesmtp_invoke (ADDRESS * from, /* the sender */ ADDRESS * to, ADDRESS * cc, ADDRESS * bcc, /* recips */ const char *msg, /* file containing message */ int eightbit)