pkgsrc/mail/imapfilter/Makefile

26 lines
700 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.46 2017/02/25 00:24:11 mef Exp $
DISTNAME= imapfilter-2.6.10
CATEGORIES= mail
Update to 2.6.2 based on patch from Mansour Moufid on pkgsrc-users. IMAPFilter 2.6.2 - 30 Jun 2015 - Bug fix; drop connection on local certificate mismatch. IMAPFilter 2.6.1 - 29 Jun 2015 - Support for loading the system's CA certificates from a file. - Bug fix; flusing of standard output/error in a some cases. IMAPFilter 2.6 - 16 Jun 2015 - Optimizations that vastly improve performance of the meta-searching functionality, by making subsequent search requests limit their scope based on the results already returned by previous requests (previously this was the case only for the match_*() methods). - Lua 5.3 compatibility (the codebase can still be compiled with versions 5.2 and 5.1). - A new "limit" option can be used as a work-around for problems that some servers have with long requests. - The documentation now clarifies how to make the client block indefinitely. - Bug fix; the check_status() method now returns 4 numbers on error as described in the documentation (just negative values in this case). - Bug fix; flushing of default output on password prompt. - Bug fix; program fault when very long requests were to be sent. IMAPFilter 2.5.7 - 16 Nov 2014 - Support for automatic validation of SSL connections, using the operating system's installed trusted CA certificates (usually from authorities that are shipped with web browsers). - A new "wakeonany" option makes it possible to end IDLE mode on any event, not just on new messages. - A new "reenter" option controls whether IDLE mode should be re-entered, after the recovery of the session, which makes it possible to continue with the execution of the next line in the configuration file. - The documentation now mentions that the contain_*() methods do case-insensitive searching (an IMAP limitation). - The documentation now has a better explanation of the arrived_*() and sent_*() methods. - Bug fix; the value returned by the copy method was incorrect in some cases.
2015-07-27 18:40:06 +02:00
MASTER_SITES= ${MASTER_SITE_GITHUB:=lefcha/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://imapfilter.hellug.gr/
COMMENT= Mail filtering utility for the IMAP
LICENSE= mit
LDFLAGS.SunOS+= -lsocket -lnsl
INSTALLATION_DIRS= share/examples/imapfilter
post-install:
Update imapfilter to 2.5.5 Changes since 2.0.6: IMAPFilter 2.5.5 - 8 Jun 2013 - Work-around for some servers that send an unexpected APPEND response. - The serial number of the certificates is taken into account, because some servers send different certificates with the same subject and issuer. - Details of the stored certificates are written to the certificates file, in order to make it easier to distinguish each of them. - Support for TLS versions 1.1 and 1.2 for secure connections. IMAPFilter 2.5.4 - 9 Apr 2013 - Some server responses are now parsed less stricly. - More detailed information is now printed when there's an error. - Bug fix; various corrections in the recovery mechanism. IMAPFilter 2.5.3 - 22 Jul 2012 - New implementation for international mailbox names. - Bug fix; wrong variable name in one of the examples on extending. - Bug fix; an OpenSSL compilation warning. IMAPFilter 2.5.2 - 29 Feb 2012 - Persistent errors or connection failures are now ignored when running in daemon mode, and a reconnection is attempted during the next loop iteration. - Bug fix; problems with failure handling during login/logout. IMAPFilter 2.5.1 - 27 Feb 2012 - Support for recovery of a session after a BYE response is received. - Option to control in which cases a terminated session will be restored. - Bug fix; a BYE response could sometimes get incorrectly ignored. IMAPFilter 2.5 - 23 Feb 2012 - Support for recovery of a session when a network failure is encountered, and other robustness improvements. - Informational messages are printed also for the fetch and append methods. - Lua 5.2 compatibility, while the codebase can still be compiled with version 5.1. - The OpenSSL library is now a mandatory build requirement. - Bug fix; unrecoverable login failures did not result in aborting of the execution of the configuration. - Bug fix; when messages were appended to a mailbox that did not exist, it failed to create the mailbox and then retry the appending. - Bug fix; misleading errors were printed on some SSL failures. - Bug fix; protected call of the commands to execute in the daemon function could hide important failures. - Bug fix; the man page had an incorrect description of the -d option. * Support for the old deprecated 1.x configuration format has been removed, and the current 2.x format can only be executed from now on. IMAPFilter 2.4.2 - 19 Jan 2012 - Bug fix; some ASCII characters in mailbox names were incorrectly converted to UTF-7. IMAPFilter 2.4.1 - 8 Dec 2011 - Bug fix; become_daemon() failure. IMAPFilter 2.4 - 6 Dec 2011 - Support for non-ASCII mailbox names. - New environment variable to set the configuration directory. - Bug fix; parsing of some server responses was broken since the previous release. - Bug fix; the match_field() method matched on the whole header field, instead of only the header field body. - Bug fix; debug file check caused printing of a misleading error message. - Bug fix; typo error in a configuration man page example. IMAPFilter 2.3 - 6 Aug 2011 - Support for appending/uploading messages to mailboxes. - Debug file option now takes filename argument. - New simplified configuration and building procedure. - Bug fix; in some cases a mailbox was incorrectly assumed selected. - Bug fix; in some cases server capabilities needed update after login. - Bug fix; timeout problem with CRAM-MD5 authentication. - Bug fix; some servers send non-ASCII characters in their responses. IMAPFilter 2.2.3 - 6 Mar 2011 - Project moved to GitHub. - Changed file and directory structure. - The next UID is returned as an additional return value of check_status(). - All processing methods now return a boolean based on their success. - Bug fix; a lost connection is now handled better by trying to reconnect. - Bug fix; in some cases in IDLE a message had arrived but was ignored. - Bug fix; in some servers the initial IDLE reply wasn't handled correctly. - Bug fix; typo errors in the documentation. IMAPFilter 2.2.2 - 23 Jan 2010 - Bug fix; a couple of errors in the extending examples file. IMAPFilter 2.2.1 - 20 Jan 2010 - A global option for the IDLE refreshing interval was added. - Bug fix; more detailed reporting when SSL socket errors occur. IMAPFilter 2.2 - 30 Dec 2009 - Support for combining searching methods in multiple mailboxes at the same or different accounts and processing of the results in bulk. - Support for meta-searching that allows searching on the previous searching results. - The processing and fetching methods were enhanced to reflect the new changes and the documentation was updated. - Global options for the message cache and the certificates were added. - Bug fix; questions for certificates are not asked while in daemon mode, but instead an error is printed. * A different format is used for the returned structures of the searching methods, due to the introduction of multiple mailbox searching and meta-searching, and thus any configuration files that rely on them should be updated. Consequently, the processing and fetching methods have been also enhanced and the relevant documentation updated, and while these changes are backwards compatible, an update of the configuration file is still recommended. IMAPFilter 2.1.2 - 3 Dec 2009 - Bug fix; cache for message parts didn't work correctly. - Bug fix; documentation error. IMAPFilter 2.1.1 - 24 Nov 2009 - Bug fix; global option timeout and enter_idle() didn't play well together. IMAPFilter 2.1 - 23 Nov 2009 - Support for the IMAP IDLE extension (RFC 2177) through the enter_idle() method. - Support for fetching of a message's body structure through the fetch_structure() method, and of a message's specific body part through the fetch_parts() method. - Addition of a global option that controls the character set used for all the searching methods. - Bug fix; fetching of non-existent messages. - Bug fix; no trailing end-of-line characters in the results of fetch_fields(). IMAPFilter 2.0.11 - 20 Sep 2009 - Bug fix; fetching of messages with empty body. - Workaround for problematic IMAP server sending non-compliant mailbox status information. IMAPFilter 2.0.10 - 16 Feb 2008 - Bug fix; failed a great number (tens of thousands) of commands were exchanged with an IMAP server. - Bug fix; failed to fetch the body of some messages in some extremely rare occasions. - Bug fix; the description for the contain_header() method was clarified. IMAPFilter 2.0.9 - 26 Dec 2007 - Bug fix; the match_*() methods failed to match messages. - Bug fix; the match_*() methods failed with an error when no messages matched. - Bug fix; note added in the documentation about the need to use double backslashes inside of regular expression patterns. IMAPFilter 2.0.8 - 23 Dec 2007 - Bug fix; on some platforms it is necessary to link against the math library. IMAPFilter 2.0.7 - 22 Dec 2007 - Bug fix; the match_*() methods failed with an error message.
2013-07-19 15:58:56 +02:00
.for f in config.lua extend.lua
${INSTALL_DATA} ${WRKSRC}/samples/${f} \
2010-02-04 03:20:24 +01:00
${DESTDIR}${PREFIX}/share/examples/imapfilter
.endfor
.include "../../devel/pcre/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
2004-04-18 06:55:29 +02:00
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"