--- nmzmail-1.1.orig/debian/README.Debian +++ nmzmail-1.1/debian/README.Debian @@ -0,0 +1,31 @@ +nmzmail +------- + +written by Johannes Hofmann +---------------------------------------------------- + +See http://www.ecademix.com/JohannesHofmann/nmzmail.html for the official homepage + +For installation and usage see man nmzmail. + +Note that I have found in typical usage that much of my email exceeds the max +file size that namazu will index. This is easily configured in the file: + + /etc/namazu/mknmzrc + +by changing the variable FILE_SIZE_MAX. + +User specific settings can be made by use of a user configuration file such as +$HOME/.mknmzrc, which can be copied from /etc/namazu/mknmzrc and amended as +appropriate. + +Example Queries: +- +from:hofmann mutt + searches for mail containg "hofmann in From-line and mutt anywhere +- /[Hh]allo|[Hh]ello/ + returns almost all mails in my folders :-) +- "Hi there" + returns only mails literally containing the string "Hi there". + + + -- Kevin Coyner Sat, 10 March 2006 13:06:59 -0400 --- nmzmail-1.1.orig/debian/changelog +++ nmzmail-1.1/debian/changelog @@ -0,0 +1,73 @@ +nmzmail (1.1-2build1) yakkety; urgency=medium + + * No-change rebuild for readline soname change. + + -- Matthias Klose Sat, 17 Sep 2016 12:06:58 +0000 + +nmzmail (1.1-2) unstable; urgency=low + + * debian/control: + + Updated Standards-Version to 3.9.3. + + Add ${misc:Depends} to binary Depends. + + Add dpkg-dev to Build-Depends to support hardening. + + Updated debhelper version to 9.2~. + * debian/compat updated from 7 to 9. + * Changes to debian/rules to support hardening. + * Closing bug related to modifying conffiles. These files were modified by + namazu2 and were addressed in Bug #688498. Closes: #688290. + * A mutt macro and cron suggestion are provided in the man page. Additional + usage details are suggested in README.Debian. Closes: #552731. + + -- Kevin Coyner Sun, 30 Sep 2012 01:30:28 +0000 + +nmzmail (1.1-1) unstable; urgency=low + + * New upstream release. + * debian/control: + + Updated Standards-Version to 3.8.3. + + Updated debhelper version to 7.4~. + + Updated Build-Depends from to libreadline-dev. Closes: #553816. + * debian/compat updated from 5 to 7. + * Removed obsolete file debian/docs. + * debian/rules: + + Changed dh_clean -k to dh_prep. + + -- Kevin Coyner Sun, 01 Nov 2009 22:44:00 -0500 + +nmzmail (1.0-1) unstable; urgency=low + + * New upstream release. + * debian/control: + + Updated Standards-Version to 3.8.0. + + Moved homepage reference to its own field. + * debian/docs: removed obsolete reference to nmzmailWrapper.sh + + -- Kevin Coyner Sun, 05 Oct 2008 19:33:26 -0400 + +nmzmail (0.1.3-3) unstable; urgency=low + + * Small grammatical changes to the nmzmail man file. Thanks to Reuben + Thomas. Closes: #438809. + + -- Kevin Coyner Sun, 19 Aug 2007 19:14:49 -0400 + +nmzmail (0.1.3-2) unstable; urgency=low + + * Bumped debian/compat to 5. + * debian/control: + + Bumped debhelper version to 5. + + Bumped Standards-Version to 3.7.2. No changes. + + Updated homepage address. + * Updated homepage address in debian/copyright and README.Debian. + * Fixed debian/watch. + * Removed some cruft from debian/rules. + * Changed to new e-mail address for all maintainer fields throughout + debian/*. + + -- Kevin Coyner Sun, 05 Aug 2007 12:14:40 -0400 + +nmzmail (0.1.3-1) unstable; urgency=low + + * Initial release Closes: #325043 + + -- Kevin Coyner Sat, 10 March 2006 13:06:59 -0400 --- nmzmail-1.1.orig/debian/compat +++ nmzmail-1.1/debian/compat @@ -0,0 +1 @@ +9 --- nmzmail-1.1.orig/debian/control +++ nmzmail-1.1/debian/control @@ -0,0 +1,28 @@ +Source: nmzmail +Section: mail +Priority: optional +Maintainer: Kevin Coyner +Build-Depends: debhelper (>= 9.2~), autotools-dev, dpkg-dev (>= 1.16.1~), libreadline-dev +Standards-Version: 3.9.3 +Homepage: http://www.ecademix.com/JohannesHofmann/nmzmail.html + +Package: nmzmail +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, namazu2, namazu2-index-tools +Suggests: mutt +Enhances: mutt +Description: indexes and searches email in maildir folders + nmzmail is a tool, primarily to be used with mutt, for indexing and searching + maildir folders. Based on the result of a search query using the search + engine namazu2, nmzmail generates a maildir folder containing symbolic links + to the mail(s) matching the query. A simple mutt macro makes it easy to use + nmzmail from within mutt. nmzmail is similar to mairix (another email + index/search program), but perhaps easier to use since it uses the query + syntax of namazu2. + . + Features: + - fast mail searching even with large quantities of mail + - incremental index building + - integrates very nicely into mutt + - rich, but simple, query language including regex + - query history --- nmzmail-1.1.orig/debian/copyright +++ nmzmail-1.1/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Kevin Coyner on +Sat, 10 March 2006 13:06:59 -0400. + +It was downloaded from http://www.ecademix.com/JohannesHofmann/nmzmail.html + +Upstream Author: Johannes Hofmann + +Copyright 2004,2005 by Johannes Hofmann + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL file. + + -- Kevin Coyner Sat, 10 March 2006 13:06:59 -0400 --- nmzmail-1.1.orig/debian/dirs +++ nmzmail-1.1/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- nmzmail-1.1.orig/debian/nmzmail.1 +++ nmzmail-1.1/debian/nmzmail.1 @@ -0,0 +1,66 @@ +.\" +.TH NMZMAIL 1 "March 2006" +.SH NAME +nmzmail \- a tool to use the namazu2 search engine from within mutt +.SH SYNOPSIS +.B nmzmail +[\fI -b \fR] [\fI -r \fR] \fI-i \fR ... +.P + -or- +.P +.B nmzmail +[\fI -b \fR] [\fI -r \fR] [\fI -n \fR] +.br + +.SH DESCRIPTION +.PP +\fBnmzmail\fP is a program that uses the namazu2 search engine +(http://www.namazu.org) from within the mail client mutt to search and index mail stored +in maildir folders. Based on the result of the namazu query, nmzmail +generates a maildir folder containing symbolic links to the mail matching the +query. A simple mutt macro makes it very easy to use nmzmail from within +mutt, and a simple crontab entry always keeps your mail indexed by +namazu. +.PP +Add the following macro to your muttrc file: +.PP +.nf +macro generic S "nmzmailc~/.nmzmail/result" "Search via nmzmail" +.fi +.PP +Run mutt and hit "S" and enter your query when prompted. +.PP +.PP +You can manually update your index periodically or via a cronjob with: +.PP +\fInmzmail -i \fR ... + + +.SH OPTIONS +.PP +.TP +.B \-i +This tells nmzmail to index your email. +.TP +.BI \-b " FILE" +Base. Where nmzmail builds its index. By default it is in $HOME/.nmzmail. +.TP +.BI \-r " FILE" +Result. Similar to -b, this lets you specify where the results are to be built. By +default it is within $HOME/.nmzmail. +.TP +.BI \-n " NUM" +Limit. When making a query, nmzmail can be used directly from the command line +instead of from within mutt. When the -n option is invoked, the +number of results returned from your query will be limited to whatever integer +you specify for NUM. + +.SH SEE ALSO +.BR namazu (1), mutt (1) +.br +.SH AUTHOR +nmzmail was written by Johannes Hofmann +.PP +This manual page was written by Kevin Coyner , +for the Debian project (but may be used by others). + --- nmzmail-1.1.orig/debian/nmzmail.manpages +++ nmzmail-1.1/debian/nmzmail.manpages @@ -0,0 +1 @@ +debian/nmzmail.1 --- nmzmail-1.1.orig/debian/rules +++ nmzmail-1.1/debian/rules @@ -0,0 +1,88 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS += -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + + ln -sf /usr/share/misc/config.sub config.sub + ln -sf /usr/share/misc/config.guess config.guess + rm -f config.cache + + # Add here commands to configure the package. + ./configure CFLAGS="$(CFLAGS)" --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + touch configure-stamp + +build: build-arch build-indep +build-arch: configure-stamp build-stamp +build-indep: + +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + [ ! -f Makefile ] || make clean + [ ! -f Makefile ] || make distclean + # Add here commands to clean up after the build process. + find \( -name config.sub -o -name config.guess \) -print0 | xargs -0 -r rm -f \; + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/nmzmail. + $(MAKE) install DESTDIR=$(CURDIR)/debian/nmzmail + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- nmzmail-1.1.orig/debian/rules.new +++ nmzmail-1.1/debian/rules.new @@ -0,0 +1,83 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS += -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + + ln -sf /usr/share/misc/config.sub config.sub + ln -sf /usr/share/misc/config.guess config.guess + rm -f config.cache + + # Add here commands to configure the package. + ./configure CFLAGS="$(CFLAGS)" --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + touch configure-stamp + +build: configure-stamp binary-arch binary-indep + +build-stamp: + $(MAKE) + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + [ ! -f Makefile ] || make clean + [ ! -f Makefile ] || make distclean + # Add here commands to clean up after the build process. + find \( -name config.sub -o -name config.guess \) -print0 | xargs -0 -r rm -f \; + dh_clean + +install: + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/nmzmail. + $(MAKE) install DESTDIR=$(CURDIR)/debian/nmzmail + +# Build architecture-independent files here. +binary-indep: configure-stamp build-stamp +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: configure-stamp build-stamp install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- nmzmail-1.1.orig/debian/watch +++ nmzmail-1.1/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://www.ecademix.com/JohannesHofmann/nmzmail.html \ + nmzmail-([\d\.]*).(?:tgz|tar.gz|tar.bz2)