head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.24 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.22 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.20 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.18 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.16 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.14 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.12 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.10 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.8 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.5.0.6 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.4 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.2 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.4.0.12 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.10 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.8 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.6 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.4 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.2 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.2.0.12 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.10 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.8 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.6 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.4 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.2 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.1.1.1.0.6 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.4 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-2003Q4:1.1.1.1.0.2 pkgsrc-2003Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2007.09.08.08.05.23; author obache; state dead; branches; next 1.4; 1.4 date 2006.01.08.16.38.41; author joerg; state Exp; branches; next 1.3; 1.3 date 2006.01.01.17.02.21; author ben; state Exp; branches; next 1.2; 1.2 date 2004.06.20.21.05.02; author xtraeme; state dead; branches; next 1.1; 1.1 date 2003.09.19.09.24.29; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2003.09.19.09.24.29; author wiz; state Exp; branches; next ; desc @@ 1.5 log @Update msmtp to 1.4.13. Based on patch provided by L. Schmidt in PR 36939. Version 1.4.13: - Added the set_sendmail.sh script by Gautam Iyer to the new scripts subdirectory. - Added the msmtpqueue scripts to the new scripts subdirectory. - Make the search of an account by the envelope from address case insensitive. Problem reported and fixed by Brandon Philips. - Update the license of the source code to GPLv3 or later, and change the license of the documentation to the GFDLv1.2 or later. - Gnulib update to 2007-07-15. Version 1.4.12: - Handle the special envelope from address MAILER-DAEMON correctly: send "MAIL FROM:<>" instead of "MAIL FROM:". Reported by Andre Egerer. - Improve the documentation for TLS vs. SSL. Thanks to Carlos Martin Nieto for suggestions. - Add documentation on how to find the right CA certificate for tls_trust_file. Thanks to Bryan Kam for suggestions. Version 1.4.11: - Require either tls_trust_file or tls_certcheck=off for TLS sessions, so that msmtp is not silently vulnerable to man-in-the-middle attacks. - Do not use NTLM authentication automatically anymore unless TLS is active. NTLM is not an open standard and must therefore be considered broken. - Gnulib update 2007-04-07. - Move build-aux files to separate directory build-aux. - Provide a hstrerror() function for systems that lack getaddrinfo(), so that gethostbyname() must be used instead, and do not provide hstrerror() themselves. Needed for Solaris 2.6. Reported and tested by Chris Green. Version 1.4.10: - Updated copyright info to 2007. - Gnulib update to 2007-01-10. - From mpop: Switch to autoconf-2.61 and automake-1.10, to avoid problems with configure trying to run "sh /usr/bin/install" where /usr/bin/install is not a shell script on NetBSD. Reported by Jeremy C. Reed. - From mpop: Remove the obsolete "extern int errno;" declaration. It does not conform to POSIX and causes trouble. Thanks to Jeremy C. Reed for the patch. - Added AC_SYS_LARGEFILE to configure.ac, for large file support. Removed the unnecessary AC_C_CONST and AC_HEADER_STDC. Version 1.4.9: - Remove gnulib module nanosleep. This fixes more build problems. Version 1.4.8: - Gnulib update. There are no local changes anymore. - Do not use nanosleep() on W32 anymore. Use Sleep() instead. Do not use nanosleep() on DJGPP anymore. Use usleep() instead. - Update gettext files to gettext-0.16. - Improved the configure check for the OpenSSL libraries. This fixes a build failure on Mac OS X. Reported by Michael Williams, who also tested the fix. Thanks! - Fix a bug in string_replace(). This bug did not affect msmtp. - Gnulib update. Removes the initialization of pkgdata_DATA from gnulib/Makefile.am, thanks to a fix by Bruno Haible. 'make install' will no longer create an empty directory $(pkgdatadir) anymore (the default for $(pkgdatadir) is /usr/local/share/msmtp). Reported by Roman Bogorodskiy. Version 1.4.7: - Gnulib update. The nanosleep module still differs from the official gnulib source. - Disable SSLv2 because it has known flaws. This only affects the OpenSSL version because GNU TLS does not implement SSLv2. - Add new command tls_force_sslv3 and option --tls-force-sslv3 to force TLS/SSL version SSLv3. This is needed to use SSL with some old and broken servers. Closes Debian bug #374610, reported by Marko Makela. Thanks to Julien Louis for tracking this problem down and testing the patch. - Changed detection of libgnutls so that it works with version >= 1.2.0 again. - Improvements for the build system: - Quote arguments of M4 macros. - Use AC_LIB_HAVE_LINKFLAGS to detect libraries. Do not use *-config scripts or pkg-config. This avoids problems that are reported in this thread: http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/ 1610/focus=1610 . - Use HAVE_LIB* macros instead of USE_* or others, for consistency. - Link with LIB_NANOSLEEP as determined by the gnulib nanosleep module. This fixes build problems on Solaris. Reported by Daniel Rechsteiner. Thanks! - Update to gettext-0.15. - W32/DJGPP: Assure that all files are opened in binary mode. This seems to also apply to socket connections, therefore it is necessary. - Fix error message typo in check_account(). - DJGPP port: include missing header in msmtp.c - Sync from mpop: - Adapt --version output to the latest GNU conventions. - Clean up #includes. - Renamed os_env.[ch] to tools.[ch]. - Replace __MINGW__ with W32_NATIVE in os_env.h. Version 1.4.6: - Updated README. - Minor documentation improvements. - Do not set a default port for LMTP, because none is officially defined. - Update gettext files to gettext-0.14.5. - Another gnulib update, with the additional sys_select module and a patch to the nanosleep module. See the mailing list gnulib-bugs for these patches that are not (yet?) part of the official gnulib. - Gnulib update. - Improved --help text output. - Improved error messages when logging to a logfile fails. - Sync from mpop: - Enable network connection timeouts on DJGPP/Watt32. Thanks to Gisle Vanem for pointing out that this works just like it does with UNIX. The DJGPP/Watt32 port is now on par with the UNIX port. - Update README.dos. - Don't check configuration file permissions on Cygwin. - Renamed README.win32 to README.w32. Updated README.w32 and README.dos. - Replace '#ifdef _WIN32' with '#ifdef W32_NATIVE', where W32_NATIVE is defined in config.h if the following is true: '#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__'. The reason is that Cygwin defines _WIN32 nowadays, but we want the UNIX API on that platform. - Include config.h in list.c. - Fix warnings emitted for configure.ac by autoreconf. - lock_file(): If another process holds a lock on the file, then wait 1/10 second instead of 1 second before the next try. - Gnulib update. Added nanosleep module. - Improve error handling for file locking: differentiate between timeouts and other errors. - Improve checks for libraries in configure.ac. The ./configure options have changed! See INSTALL for more info. - Improve --version output. - Add (optional) support for Internationalized Domain Names (IDN) via GNU Libidn. - Initialize TLS only if pop3_connect() succeeded. - Move SSL_LIBS and GSASL_LIBS into LIBS; do not put them in Makefile.am. - Fix memory leak in GNU SASL variant of pop3_auth(). (This change applies to smtp_auth(), GNU SASL variant.) - Fix memory leak in GnuTLS variant of tls_cert_info_get(). - pop3_auth(), GNU SASL variant: - Check if authentication data is complete before trying to start authentication. - Never call password_callback() when no user name is given. (This change applies to smtp_auth(), GNU SASL variant.) - Prevent a double free if an invalid argument to the auth command is given. - Prevent a double free if an invalid argument to --auth is given. - Replace crypto.[ch] with gnulib hmac-md5 module. - Gnulib update. Add hmac-md5 module. - net.c, tls.c: allow all network operations to be interrupted with CTRL+C, and print an appropriate error message in this case. (This change does not affect msmtp.) - tls.c: if an error occurs, clean up *after* building the error message. This fixes a potential segfault in the OpenSSL version of tls_start(). - net_open_socket(): don't let net_close_socket() clobber errno. - net_open_socket(): print correct error message if getaddrinfo() returns EAI_SYSTEM. - Fixed comment in net.h. - net_get_canonical_hostname(): Only call freeaddrinfo() if getaddrinfo() succeeded. Reported and fixed by Raul Nunez de Arenas Coronado. (This change does not affect msmtp.) - Update copyright message. - Gnulib update. - Minor Win32 portability/cross-compilation updates. - configure.ac: Rely on PKG_CHECK_MODULES to find GSASL, do not fall back to manual detection, to prevent using an incompatible version of GSASL. Problem reported by Jari Aalto. - Gnulibs sysexit_.h now defines EX_OK; there's no need to use a locally modified version anymore. - Use a locally modified version of gnulibs sysexit_.h that defines EX_OK to 0, since the gnulib maintainers apparently won't fix this file. Include the sysexits.h header after all other system headers to override previous definitions of EX_OK on systems that use EX_OK for other purposes. This is needed on Interix, reported by Ben Collver. @ text @$NetBSD: patch-aa,v 1.4 2006/01/08 16:38:41 joerg Exp $ --- src/net.c.orig 2005-08-14 20:13:06.000000000 +0000 +++ src/net.c @@@@ -43,7 +43,6 @@@@ #define NI_MAXHOST 1025 #endif #include -extern int errno; #else /* UNIX */ #include #include @@@@ -57,7 +56,6 @@@@ extern int h_errno; #include #include #include -extern int errno; #endif /* UNIX */ #include "gettext.h" @@@@ -325,7 +323,7 @@@@ void net_set_io_timeout(int socket, int * en-us/winsock/winsock/setsockopt_2.asp * We activate these timeouts only for Windows systems that also have * getaddrinfo(), which means XP or newer, to work around this problem. */ -#if defined __MINGW32__ && !defined HAVE_GETADDRINFO +#if (defined __MINGW32__ && !defined HAVE_GETADDRINFO) || defined __WINSOCK /* do nothing */ #else struct timeval tv; @ 1.4 log @Fix errno. @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Interix uses WinSock, which does not provide SO_RCVTIMEO nor SO_SNDTIMEO. Skip these options when building on Interix. @ text @d3 1 a3 1 --- src/net.c.orig Sun Aug 14 13:13:06 2005 d5 17 a21 1 @@@@ -325,7 +325,7 @@@@ void net_set_io_timeout(int socket, int @ 1.2 log @Update mail/msmtp to 1.0.0, sent by Sergio Jimenez in private email. Changes: Version 1.0.0: - New feature: tilde expansion for filenames in the configuration file Version 0.7.2: - This version adds native support for Windows 9x/ME/NT/2000/XP/2003 (with MinGW) and DOS (with DJGPP and the Watt32 library). Version 0.7.1: - New command: 'domain' - New options: --pretend and --debug Version 0.7.0: - Support for DSN (Delivery Status Notifications) was added via the new commands 'dsn_notify' and 'dsn_return'. - The 'tls_nocertcheck' command was added. It disables all server certificate checks. Use it if you get certificate check errors but still want to use the SMTP server with TLS/SSL. - The 'nostarttls' command is now called 'tls_nostarttls'. Please update your configuration file. Version 0.6.5: - License clarification: msmtp is released under the GPL with the additional exemption that compiling, linking, and/or using OpenSSL is allowed. - If you want to use GnuTLS instead of OpenSSL, you will now need GnuTLS >= 1.0.0 and libgcrypt >= 1.1.90! - msmtp now works on systems that lack IPv6 support - msmtp now accepts arbitrary long lines in mails Version 0.6.4: - fixed configuration file code Version 0.6.3: - portability fix for Mac OS X (Randolph Fritz) - fixed --disable-gsasl configure option - man page improvements Version 0.6.2: - use GNU Autotools (Christophe Nowicki) - fixed wildcard support in server certificate's Common Name field Version 0.6.1: - improved certificate check/verification with OpenSSL - code cleanups Version 0.6.0: - Added sanity checks of server certificate when using TLS - Strict server certificate verification with tls_trust_file command - Possibility to send client certificate if requested (tls_key_file and tls_cert_file commands) - Optional support for GnuTLS instead of OpenSSL - Optional support for GSASL (adds DIGEST-MD5 and NTLM authentication methods) - Arguments in the configuration file may now contain blanks - Removed the possibility to choose the TLS version with the tls command - Proper recognition of server capabilities (EHLO response) @ text @d1 13 a13 25 $NetBSD: patch-aa,v 1.1 2003/09/19 09:24:29 wiz Exp $ --- Makefile Wed Sep 17 23:53:37 2003 +++ Makefile.new Wed Sep 17 23:54:06 2003 @@@@ -3,15 +3,15 @@@@ # # GNU/Linux and GNU/Hurd -CC = gcc -CFLAGS = -DHAVE_VASPRINTF -DHAVE_GETOPT_LONG -D_GNU_SOURCE -Wall -O2 -LFLAGS = -lssl -lcrypto -s -EXTRAOBJS = +#CC = gcc +#CFLAGS = -DHAVE_VASPRINTF -DHAVE_GETOPT_LONG -D_GNU_SOURCE -Wall -O2 +#LFLAGS = -lssl -lcrypto -s +#EXTRAOBJS = # FreeBSD, NetBSD, OpenBSD #CC = gcc -#CFLAGS = -DHAVE_VASPRINTF -DHAVE_GETOPT_LONG -Wall -O2 -#LFLAGS = -lssl -lcrypto -s +CFLAGS += -DHAVE_VASPRINTF -DHAVE_GETOPT_LONG -Wall +LFLAGS = -lssl -lcrypto -s #EXTRAOBJS = # SunOS @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of msmtp, an SMTP plugin for MUAs, provided by Bryan Carter Vyhmeister in PR 22840. and probably other MUAs (mail user agents). msmtp forwards mails to an SMTP server (for example at a free mail provider) which does the delivery. Features include: * SMTP AUTH methods PLAIN, LOGIN and CRAM-MD5 * TLS encrypted connections * IPv6 support * robustness * detailed error messages (including the full answer of the SMTP server) if something goes wrong * sendmail compatible exit codes (which most MUAs understand). Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail. @ text @@