debian/0000775000000000000000000000000012620562430007170 5ustar debian/compat0000664000000000000000000000000212366447376010410 0ustar 9 debian/rules0000775000000000000000000000056512367370613010266 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_configure: # The configure script is so old that it fails with the options # that dh_auto_configure feeds it... ./configure --prefix=/usr --mandir=/usr/share/man override_dh_auto_test: # The test suite depends on the English way to sort characters (it # fails with LC_ALL=C or C.UTF-8) LC_ALL=en_US.UTF-8 dh_auto_test debian/changelog0000664000000000000000000001451712620562427011060 0ustar mairix (0.23+git20131125-0.4ubuntu1) xenial; urgency=medium * Build-depend on language-pack-en-base instead of locales-all. -- Logan Rosen Wed, 11 Nov 2015 01:49:43 -0500 mairix (0.23+git20131125-0.4) unstable; urgency=medium * Non-maintainer upload. * Add fix-256-char-limit-on-filenames.patch to handle some of the stack-smashing bugs that have been mentioned in upstream's bugtracker. Closes: #795937 -- Bradley M. Kuhn Wed, 09 Sep 2015 13:34:04 -0700 mairix (0.23+git20131125-0.3) unstable; urgency=medium * Non-maintainer upload. * Fix FTBFS on systems with C locale. The test suite depends on having an en_US.UTF-8 locale setup. * Disable fix-test-suite.patch. For some reasons, that patch is only needed when building outside of a minimal build environment... thus the difference of locale (en_US.UTF-8 vs my fr_FR.UTF-8) doesn't explain everything. -- Raphaël Hertzog Sun, 03 Aug 2014 10:10:40 +0200 mairix (0.23+git20131125-0.2) unstable; urgency=medium * Non-maintainer upload. * Add fix-search-with-equal-in-msgid.patch to allow lookup of Message-ID containing equals. Closes: #634948 -- Raphaël Hertzog Fri, 01 Aug 2014 16:53:53 +0200 mairix (0.23+git20131125-0.1) unstable; urgency=medium * Non-maintainer upload. * New upstream git snaspshot. Closes: #750641 * Add Homepage pointing to github. * Update standards-version to 9. * Switch to debhelper compat 9 and short rules file. * Drop all maintainer scripts (they were empty templates). * Switch to 3.0 (quilt) source format. * Add watch file -- Raphaël Hertzog Thu, 31 Jul 2014 16:09:40 +0200 mairix (0.22-1) unstable; urgency=low * New upstream version. * Fixed errors in man pages. Closes: #444055 * Added support for claws-mail. Closes: #469092 * Fix memory leak. Closes: #507456 -- Benjamin Mako Hill Sat, 23 Oct 2010 03:33:50 -0400 mairix (0.21-1) unstable; urgency=low * New upstream version. Closes: #438778 * Installs mairixrc manpage. Closes: #419069 * Fixes problems with segfaulting. Closes: #419138, #416999 * Fix handling of broken attachments. Closes: #417001 -- Benjamin Mako Hill Thu, 23 Aug 2007 10:07:24 -0400 mairix (0.20-1) unstable; urgency=low * New upstream release. Closes: #416268 * Fix incorrect filename in postinst. Closes: #395117 * Updated documenation fixes previous inaccuracies: Closes: #355838 * Replaced Debian manpage with upstream manpage. -- Benjamin Mako Hill Sat, 31 Mar 2007 00:43:21 -0400 mairix (0.17-2) unstable; urgency=low * Fixed version number. Closes: #340827 * Added build-depends on zlib to gain gzip mbox support. Closes: #307432 -- Benjamin Mako Hill Mon, 5 Dec 2005 10:47:53 -0500 mairix (0.17-1) unstable; urgency=low * New upstream release. Closes: #340316 -- Benjamin Mako Hill Thu, 24 Nov 2005 15:33:26 -0500 mairix (0.16.1-1) unstable; urgency=low * New upstream release. -- Benjamin Mako Hill Sun, 11 Sep 2005 19:20:22 -0400 mairix (0.15.2-3) unstable; urgency=low * New maintainer. Closes: #297434 -- Benjamin Mako Hill Thu, 10 Mar 2005 16:36:19 -0500 mairix (0.15.2-2) unstable; urgency=low * Orphan package as in bug #297434. Thanks to Benjamin Mako Hill for agreeing to adopt this package -- Kevin M. Rosenberg Sat, 5 Mar 2005 13:23:55 -0700 mairix (0.15.2-1) unstable; urgency=low * New upstream (closes:295214) -- Kevin M. Rosenberg Mon, 14 Feb 2005 18:51:44 -0700 mairix (0.15.1-1) unstable; urgency=low * New upstream -- Kevin M. Rosenberg Thu, 23 Dec 2004 19:41:48 -0700 mairix (0.15-3) unstable; urgency=low * Fix typo in man page (closes:270986) -- Kevin M. Rosenberg Fri, 10 Sep 2004 08:38:41 -0600 mairix (0.15-2) unstable; urgency=low * Update descripton (closes:265008) -- Kevin M. Rosenberg Wed, 11 Aug 2004 12:57:53 -0600 mairix (0.15-1) unstable; urgency=high * New upstream (closes:251402,250420,250409) -- Kevin M. Rosenberg Wed, 4 Aug 2004 23:01:48 -0600 mairix (0.14+pre.0.15.patch-12-1) unstable; urgency=low * New pre-release upstream -- Kevin M. Rosenberg Thu, 8 Jul 2004 21:09:25 -0600 mairix (0.14-1) unstable; urgency=low * Fixed path search (closes:224179) * Update web site address (closes:229739) * Allow use of '+' as a search character (closes:215692) * Update copyright years -- Kevin M. Rosenberg Mon, 26 Jan 2004 08:29:22 -0700 mairix (0.11-3) unstable; urgency=low * Add flex to build-dep (closes: 200406) -- Kevin M. Rosenberg Mon, 7 Jul 2003 21:44:30 -0600 mairix (0.11-2) unstable; urgency=low * Add bison to build-dep (closes: 200382) -- Kevin M. Rosenberg Mon, 7 Jul 2003 15:41:34 -0600 mairix (0.11-1) unstable; urgency=low * New upstream * Add to man page (closes:200290) -- Kevin M. Rosenberg Mon, 7 Jul 2003 09:17:44 -0600 mairix (0.10-1) unstable; urgency=low * New upstream * Build with gcc-3.2 -- Kevin M. Rosenberg Mon, 13 Jan 2003 21:07:35 -0700 mairix (0.9-1) unstable; urgency=low * New upstream (closes: 174704) -- Kevin M. Rosenberg Mon, 30 Dec 2002 09:58:03 -0700 mairix (0.6-1) unstable; urgency=low * New upstream * Patch to increase size of folder list (closes: 168593) -- Kevin M. Rosenberg Sun, 10 Nov 2002 15:40:10 -0700 mairix (0.5-1) unstable; urgency=low * New upstream version -- Kevin M. Rosenberg Fri, 11 Oct 2002 23:24:41 -0600 mairix (0.4-4) unstable; urgency=low * Update copyright file with new home page. -- Kevin M. Rosenberg Thu, 12 Sep 2002 09:58:21 -0600 mairix (0.4-3) unstable; urgency=low * Wrote and added a man page. -- Kevin M. Rosenberg Fri, 6 Sep 2002 21:45:00 -0600 mairix (0.4-2) unstable; urgency=low * Add tetex-extra to Build-Depends: -- Kevin M. Rosenberg Fri, 6 Sep 2002 19:44:58 -0600 mairix (0.4-1) unstable; urgency=low * Initial Release. -- Kevin M. Rosenberg Fri, 30 Aug 2002 02:53:33 -0600 debian/copyright0000664000000000000000000000140212366461273011132 0ustar This package was debianized by Kevin M. Rosenberg on Fri, 30 Aug 2002 02:53:33 -0600. Upstream Author: Richard P. Curnow Copyright: Copyright (C) Richard P. Curnow 2002-2004 This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. 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. You should have received a copy of the GNU General Public License in your Debian in the file /usr/share/common-licenses/GPL-2. debian/patches/0000775000000000000000000000000012574372502010626 5ustar debian/patches/fix-256-char-limit-on-filenames.patch0000664000000000000000000000151612574372502017354 0ustar Description: Partial fix for stack smashing bug. As the author of the patch mentions, this may not be the only place in mairix where a stack smash may occur, but this change does correct a few static-sized buffers to be dynamically sized based on inputs. Bug: https://github.com/rc0/mairix/issues/10 Bug-Debian: http://bugs.debian.org/795937 Author: Daniel Silverstone Last-Update: 2015-08-18 --- mairix-0.23+git20131125.orig/nvp.c +++ mairix-0.23+git20131125/nvp.c @@ -146,9 +146,9 @@ struct nvp *make_nvp(struct msg_src *src unsigned int tok; char *q; unsigned char qq; - char name[256]; - char minor[256]; - char value[256]; + char name[strlen(s)+1]; + char minor[strlen(s)+1]; + char value[strlen(s)+1]; enum nvp_action last_action, current_action; struct nvp *result; size_t pfxlen; debian/patches/series0000664000000000000000000000014112574372405012041 0ustar #fix-test-suite.patch fix-search-with-equal-in-msgid.patch fix-256-char-limit-on-filenames.patch debian/patches/fix-search-with-equal-in-msgid.patch0000664000000000000000000000160612366725741017474 0ustar Description: Fix search of message id containing equal signs Mairix incorrectly interprets the equal sign as a substring search even when the following character is not compatible with such a search. . All gmail Message-ID have an equal sign so this is major problem when you want to lookup a specific Message-ID. Bug: https://github.com/rc0/mairix/issues/10 Bug-Debian: http://bugs.debian.org/634948 Author: Raphaël Hertzog Last-Update: 2014-08-01 --- a/search.c +++ b/search.c @@ -981,11 +981,12 @@ static int do_search(struct read_db *db, } equal = strchr(word, '='); - if (equal) { + if (equal && (equal[1] == '\0' || isdigit(equal[1]))) { *equal = 0; max_errors = atoi(equal + 1); /* Extend this to do anchoring etc */ } else { + equal = NULL; max_errors = 0; /* keep GCC quiet */ } debian/patches/fix-test-suite.patch0000664000000000000000000000272512367373213014547 0ustar Description: Fix testsuite Without this patch, the test suite is failing in test/40-search-date-header-left-closed-right-open.test-spec under some unknown conditions that lead to the date range to be inclusive of the start date. . It's not needed (and actually breaks the test suite) when mairix is built in a minimal build environment such as Debian's sbuild. Bug: https://github.com/rc0/mairix/issues/8 Author: Raphaël Hertzog Last-Update: 2014-07-31 --- mairix-0.23+git20131125.orig/test/40-search-date-header-left-closed-right-open.test-spec +++ mairix-0.23+git20131125/test/40-search-date-header-left-closed-right-open.test-spec @@ -11,7 +11,7 @@ assert_match mh AliceBobEve/5 # i.e.: assert_match mh AliceBobEve/6 # i.e.:2011-12-31 18:02:41 +0100 assert_no_more_matches -search_messages AliceBobEve d:20101230- +search_messages AliceBobEve d:20101231- assert_match mh AliceBobEve/2 # i.e.:2010-12-31 17:58:41 +0100 assert_match mh AliceBobEve/3 # i.e.:2011-01-01 17:59:41 +0100 assert_match mh AliceBobEve/4 # i.e.:2011-05-19 18:00:41 +0100 @@ -20,6 +20,7 @@ assert_match mh AliceBobEve/6 # i.e.: assert_no_more_matches search_messages AliceBobEve d:20110101- +assert_match mh AliceBobEve/3 # i.e.:2011-01-01 17:59:41 +0100 assert_match mh AliceBobEve/4 # i.e.:2011-05-19 18:00:41 +0100 assert_match mh AliceBobEve/5 # i.e.:2011-10-02 18:01:41 +0100 assert_match mh AliceBobEve/6 # i.e.:2011-12-31 18:02:41 +0100 debian/control0000664000000000000000000000216412620562431010577 0ustar Source: mairix Section: mail Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Benjamin Mako Hill Build-Depends: debhelper (>= 9), bison, flex, libbz2-dev, zlib1g-dev, language-pack-en-base Standards-Version: 3.9.5 Homepage: https://github.com/rc0/mairix Package: mairix Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: indexes and searches email in locally stored email mairix is a program for indexing and searching locally stored email messages. mairix supports Maildir, MH folders, and mbox formats. . * Indexing is fast. It runs incrementally on new messages - any particular message only gets scanned once in the lifetime of the index file. . * The search mode populates a "virtual" maildir folder with symlinks which point to the real messages. This folder can be opened as usual in your mail program. . * The search mode is very fast. . * Indexing and searching works on the basis of words. The index file tabulates which words occur in which parts (particular headers + body) of which messages. debian/docs0000664000000000000000000000006512366446340010054 0ustar ACKNOWLEDGEMENTS NEWS README dotmairixrc.eg old_docs debian/clean0000664000000000000000000000007212366460477010213 0ustar datescan.report fromcheck.report nvpscan.report version.h debian/watch0000664000000000000000000000011012366457704010227 0ustar version=3 https://github.com/rc0/mairix/releases .*/(\d.*\..*)\.tar\.gz debian/source/0000775000000000000000000000000012366450113010471 5ustar debian/source/format0000664000000000000000000000001412366450113011677 0ustar 3.0 (quilt)