X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_libesmtp.h;h=1fef3be8ec99df25297cf00e2191062937302a3b;hp=9470792666a71f0e38248e92d15c0676b48fba45;hb=4fb2fb9b1c03ad9ffd59ff86f7eaa697e46ef49d;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/mutt_libesmtp.h b/mutt_libesmtp.h index 9470792..1fef3be 100644 --- a/mutt_libesmtp.h +++ b/mutt_libesmtp.h @@ -1,10 +1,25 @@ -#if !defined(LIBESMTP_H) -#define LIBESMTP_H +/* + * Copyright notice from original mutt: + * [none] + * + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. + */ -int -mutt_invoke_libesmtp (ADDRESS *from, /* the sender */ - ADDRESS *to, ADDRESS *cc, ADDRESS *bcc, /* recips */ - const char *msg, /* file containing message */ - int eightbit); /* message contains 8bit chars */ +#ifndef _MUTT_LIBESMTP_H +#define _MUTT_LIBESMTP_H -#endif /* !defined(LIBESMTP_H) */ +#ifdef USE_LIBESMTP +#if (defined (USE_SSL) || defined (USE_GNUTLS)) +int mutt_libesmtp_check_usetls (const char* option, unsigned long p, + char* errbuf, ssize_t errlen); +#endif + +int mutt_libesmtp_invoke (address_t * from, /* the sender */ + address_t * to, address_t * cc, address_t * bcc, /* recips */ + const char *msg, /* file containing message */ + int eightbit); /* message contains 8bit chars */ +#endif + +#endif /* !_MUTT_LIBESMTP_H */