debian/0000755000000000000000000000000011761014264007170 5ustar debian/source/0000755000000000000000000000000011760752707010502 5ustar debian/source/format0000644000000000000000000000001411760752707011710 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000632711760772622011062 0ustar maildir-filter (1.20-3) unstable; urgency=low * Rework packaging according to newer standards and tools. * Verify library dependencies (Closes: #641627). -- Daniel Ruoso Mon, 28 May 2012 17:05:39 -0300 maildir-filter (1.20-2) unstable; urgency=low * Check the return of realloc in maildir-filter.c:108 (Closes: #422610). * Uses a more efficient alogorithm, provided by Steve Langasek. * Fixes a minor typing error (Closes: #390051). * Removes reference to homepage, as its offline for a very long time now. * Updated standards-version. * Removed reference to non-free package in suggests. * Promoted to DH_COMPAT 5. * No longer ignores make clean errors. -- Daniel Ruoso Wed, 5 Sep 2007 15:11:17 +0100 maildir-filter (1.20-1.1) unstable; urgency=medium * Non-maintainer upload during BSP. * Assign result of realloc in maildir-filter.c:108 to a temporary variable called tmpaddr to fix FTBFS (Closes: #422610). -- Mario Iseli Fri, 18 May 2007 20:31:53 +0200 maildir-filter (1.20-1) unstable; urgency=low * New upstream version (Closes: #259331) -- Daniel Ruoso Mon, 9 Aug 2004 18:22:45 -0300 maildir-filter (1.19-1) unstable; urgency=low * Taking maintainership to first upload (Closes: #221900) * Redesign of debian package, complete renaming to maildir-filter. * Rewrite the debian/rules file. * Removed arch-specific optimization from Makefile. -- Daniel Ruoso Thu, 26 Feb 2004 12:03:03 -0300 maildir-filter (1.18-1) unstable; urgency=low * Renamed to maildir-filter * add manpage * fix all lintian warnings -- Marcelo Bezerra Tue, 23 Dec 2003 10:50:22 -0300 maildir-filter (1.17-1) unstable; urgency=low * Sync debian and cvs version numbers. -- Marcelo Bezerra Thu, 20 Nov 2003 16:52:52 -0300 maildir-filter (1.11-4) unstable; urgency=low * Cosmetic fix to version display -- Marcelo Bezerra Thu, 20 Nov 2003 11:59:20 -0300 maildir-filter (1.11-3) unstable; urgency=low * Add missing build dependency to dhmake. -- Marcelo Bezerra Thu, 20 Nov 2003 09:47:17 -0300 maildir-filter (1.11-2) unstable; urgency=low * Decrease memory waste -- Marcelo Bezerra Tue, 18 Nov 2003 17:10:49 -0300 maildir-filter (1.11-1) unstable; urgency=low * Now headers only works -- Sun, 16 Mar 2003 02:12:49 -0300 maildir-filter (1.10-1) unstable; urgency=low * New upstream version * now can match only in headers -- Sun, 16 Mar 2003 01:51:52 -0300 maildir-filter (1.9-1) unstable; urgency=low * new upstream version. * logs msg bytes when delivering * killed bug in options parsing * supports negated rules * added -V to print version information * changed -v to -p (print message to stdout) -- Sun, 16 Mar 2003 01:13:39 -0300 maildir-filter (1.5-2) unstable; urgency=low * killed many warningns -- Sat, 15 Mar 2003 12:19:25 -0300 maildir-filter (1.5-1) unstable; urgency=low * Initial release. -- Sat, 15 Mar 2003 11:18:17 -0300 debian/compat0000644000000000000000000000000211760752707010400 0ustar 7 debian/manpages0000644000000000000000000000002111760755452010711 0ustar maildir-filter.1 debian/patches/0000755000000000000000000000000011761000150010604 5ustar debian/patches/debian-changes-1.20-20000644000000000000000000000241711761000140014077 0ustar Description: Changes in 1.20-2 Author: Daniel Ruoso --- maildir-filter-1.20.orig/maildir-filter.c +++ maildir-filter-1.20/maildir-filter.c @@ -44,7 +44,6 @@ void version(int argc,char **argv); int main(int argc,char **argv) { - char *line=NULL; int c; char *pattern=NULL; const char *err_msg=NULL; @@ -102,15 +101,23 @@ int main(int argc,char **argv) usage(argc,argv); } - for(lines=0,line=malloc(BUFSIZ);line && fgets(line,BUFSIZ,stdin);lines++,line=malloc(BUFSIZ)) { - size_t len = strlen(line); - msg_len+=len; - realloc(line, len+1); - message=realloc(message,sizeof(void*) * lines+1); - message[lines]=line; + char line[BUFSIZ]; + for(lines=0;fgets(line,BUFSIZ,stdin);lines++) { + msg_len += strlen(line); + message = realloc(message,sizeof(void*) * lines+1); + if (!message) { + fprintf(stderr,_("%s: OOM: %s\n"),argv[0],strerror(errno)); + exit(DEFERAL); + } else { + message[lines] = strdup(line); + if (!message[lines]) { + fprintf(stderr,_("%s: OOM: %s\n"),argv[0],strerror(errno)); + exit(DEFERAL); + } + } } - if(!line || !message) { + if(!message) { fprintf(stderr,_("%s: OOM: %s\n"),argv[0],strerror(errno)); exit(DEFERAL); } debian/patches/series0000644000000000000000000000010511760775640012043 0ustar debian-changes-1.20-2 make-linker-call-explicit manpage-syntax-error debian/patches/manpage-syntax-error0000644000000000000000000000060111760776752014642 0ustar Description: Fix syntax error in the manpage Author: Daniel Ruoso --- maildir-filter-1.20.orig/maildir-filter.1 2012-05-28 19:12:41.000000000 -0300 +++ maildir-filter-1.20/maildir-filter.1 2012-05-28 19:10:30.000000000 -0300 @@ -30,7 +30,7 @@ print messa to stdout .TP .B \-i -.case insensitive match +case insensitive match .TP .B \-V print version and exit debian/patches/make-linker-call-explicit0000644000000000000000000000164211760777167015515 0ustar Description: Use LIBS instead of LDFLAGS This wasn't exactly wrong, but automated tools were not finding the library and saying that there was unused link Author: Daniel Ruoso Bug-Debian: http://bugs.debian.org/641627 --- maildir-filter-1.20.orig/Makefile 2004-02-26 13:01:21.000000000 -0300 +++ maildir-filter-1.20/Makefile 2012-05-28 19:35:19.000000000 -0300 @@ -1,11 +1,12 @@ CC=gcc CFLAGS=-O6 -pipe -g -Werror -Wall -LDFLAGS=-lpcre +LIBS=-lpcre BINNAME=maildir-filter all: maildir-filter install: all + mkdir -p $(DESTDIR)/usr/bin cp maildir-filter $(DESTDIR)/usr/bin/${BINNAME} chmod 755 $(DESTDIR)/usr/bin/${BINNAME} chown root.root $(DESTDIR)/usr/bin/${BINNAME} @@ -15,6 +16,7 @@ -xgettext -d maildir-filter -j -o po/maildir-filter.pot -k_ -T maildir-filter.c maildir-filter: maildir-filter.o + $(CC) $(CFLAGS) -o $@ $< $(LIBS) debian-package: cvs-buildpackage -F -rfakeroot debian/copyright0000644000000000000000000000163311760773101011127 0ustar This package was debianized by Daniel Ruoso on Thu, 21 Mar 2002 11:14:36 -0300. Copyright: Copyright (C) 2002 Marcelo de Paula Bezerra This 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, or (at your option) any later version. This 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 with your Debian GNU/Linux system, in /usr/share/common-licenses/GPL, or with the dpkg source package as the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. debian/control0000644000000000000000000000102311760772503010575 0ustar Source: maildir-filter Section: mail Priority: extra Maintainer: Daniel Ruoso Build-Depends: debhelper (>= 7.0.50~), libpcre3-dev Standards-Version: 3.9.1 Package: maildir-filter Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Simple program to filter messages into Maildir folders from dot-qmail This program was designed to filter messages based on regular expressions with perl syntax and perform actions on them (deliver on a Maildir folder, send it to oblivion or bounce it). debian/rules0000755000000000000000000000006111760753276010261 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh $@ debian/docs0000644000000000000000000000000011760752707010043 0ustar