Blame SOURCES/procmail_3.22-8.debian.patch

766047
--- procmail-3.22.orig/examples/advanced
766047
+++ procmail-3.22/examples/advanced
766047
@@ -251,14 +251,14 @@
766047
    --------------------------------------------------------
766047
 
766047
 There are many different reasons why more and more sites decide not to
766047
-store mail in /usr/spool/mail or /usr/mail anymore.
766047
+store mail in /var/spool/mail or /var/mail anymore.
766047
 Some of the obvious advantages when storing mail in the recipient's home
766047
 directory are:
766047
 	- Mail is automatically subject to the user's quota limitations.
766047
 	- Often there is more room on the home partition(s) than on that
766047
-	  one /usr/mail partition.
766047
+	  one /var/mail partition.
766047
 
766047
-The quota limitations also apply to /usr/spool/mail or /usr/mail if procmail
766047
+The quota limitations also apply to /var/spool/mail or /var/mail if procmail
766047
 does the delivery.  These quota limitations often do not work with the
766047
 regular /bin/mail since that usually writes the mailbox with root permissions
766047
 (eluding the quota restrictions).
766047
@@ -276,7 +276,7 @@
766047
 	defined SYSTEM_MBOX to be.  Some braindamaged mail programs
766047
 	do not pick up the MAIL environment variable, these either
766047
 	have to be patched/recompiled or you have to create symbolic
766047
-	links in /usr/mail to every person's new mailbox.
766047
+	links in /var/mail to every person's new mailbox.
766047
 
766047
 				---
766047
 
766047
--- procmail-3.22.orig/man/procmail.man
766047
+++ procmail-3.22/man/procmail.man
766047
@@ -166,7 +166,8 @@
766047
 accept an unlimited number of arguments.@ETCRCS_desc@
766047
 For some advanced usage of this option you should look in the
766047
 .B EXAMPLES
766047
-section below.@LMTPOPTdesc@.SH ARGUMENTS
766047
+section below.@LMTPOPTdesc@
766047
+.SH ARGUMENTS
766047
 Any arguments containing an '=' are considered to be environment variable
766047
 assignments, they will
766047
 .I all
766047
@@ -723,6 +724,15 @@
766047
 .fi
766047
 .ad
766047
 .PP
766047
+Some mailers (notably exim) do not currently accept the above syntax.
766047
+In such case use this instead:
766047
+.PP
766047
+.na
766047
+.nf
766047
+|/usr/bin/procmail
766047
+.fi
766047
+.ad
766047
+.PP
766047
 Procmail can also be invoked to postprocess an already filled system
766047
 mailbox.  This can be useful if you don't want to or can't use a
766047
 $HOME/@DOT_FORWARD@ file (in which case the following script could
766047
@@ -754,7 +764,7 @@
766047
 .SS "A sample small @PROCMAILRC@:"
766047
 .na
766047
 .nf
766047
-PATH=/bin:/usr/bin:@BINDIR@
766047
+PATH=/usr/local/bin:/usr/bin:/bin
766047
 MAILDIR=$HOME/Mail      #you'd better make sure it exists
766047
 DEFAULT=$MAILDIR/mbox   #completely optional
766047
 LOGFILE=$MAILDIR/from   #recommended
766047
--- procmail-3.22.orig/man/procmailrc.man
766047
+++ procmail-3.22/man/procmailrc.man
766047
@@ -779,7 +779,7 @@
766047
 .PP
766047
 Some non-optimal and non-obvious regexps set MATCH to an incorrect
766047
 value.  The regexp can be made to work by removing one or more unneeded
766047
-'*', '+', or '?' operator on the left-hand side of the \e/ token.
766047
+\&'*', '+', or '?' operator on the left-hand side of the \e/ token.
766047
 .SH MISCELLANEOUS
766047
 If the regular expression contains `\fB@TO_key@\fP' it will be substituted by
766047
 .na
766047
--- procmail-3.22.orig/src/comsat.c
766047
+++ procmail-3.22/src/comsat.c
766047
@@ -92,7 +92,7 @@
766047
    }
766047
   if(newvalid)						  /* so far, so good */
766047
    { int s;
766047
-     if(!*chp)						       /* no service */
766047
+     if(!chad||!*chp)					       /* no service */
766047
 	chp=BIFF_serviceport;				/* new balls please! */
766047
      s=strtol(chp,&chad,10);
766047
      if(chp!=chad)			       /* the service is not numeric */
766047
@@ -120,7 +120,7 @@
766047
 { int s;const char*p;
766047
   if(!csvalid||!buf)		  /* is comat on and set to a valid address? */
766047
      return;
766047
-  if(!*cslgname||strlen(cslgname)+2>linebuf)	       /* is $LOGNAME bogus? */
766047
+  if(!cslgname||!*cslgname||strlen(cslgname)+2>linebuf)/* is $LOGNAME bogus? */
766047
      return;
766047
   if(!(p=folder?folder:cslastf))		     /* do we have a folder? */
766047
      return;
766047
--- procmail-3.22.orig/src/formail.c
766047
+++ procmail-3.22/src/formail.c
766047
@@ -758,9 +758,9 @@
766047
 	lputssn(buf,buffilled),ctlength-=buffilled,buffilled=lnl=0;
766047
      ;{ int tbl=buflast,lwr='\n';
766047
 	while(--ctlength>=0&&tbl!=EOF)	       /* skip Content-Length: bytes */
766047
-	   lnl=lwr==tbl&&lwr=='\n',putcs(lwr=tbl),tbl=getchar();
766047
+	   lnl=lwr==tbl&&lwr=='\n',lputcs(lwr=tbl),tbl=getchar();
766047
 	if((buflast=tbl)=='\n'&&lwr!=tbl)	/* just before a line break? */
766047
-	   putcs('\n'),buflast=getchar();		/* wrap up loose end */
766047
+	   lputcs('\n'),buflast=getchar();		/* wrap up loose end */
766047
       }
766047
      if(!quiet&&ctlength>0)
766047
       { charNUM(num,ctlength);
766047
--- procmail-3.22.orig/src/memblk.c
766047
+++ procmail-3.22/src/memblk.c
766047
@@ -51,11 +51,11 @@
766047
 {
766047
 #ifdef USE_MMAP
766047
   if(mb->fd>=0)
766047
-   { long len=mb->len+1;
766047
-     if(munmap(mb->p,len))
766047
-	mmapfailed(len);		      /* don't want to continue here */
766047
-     if((mb->p=mmap(0,len,PROT_READ,MAP_PRIVATE,mb->fd,(off_t)0))==MAP_FAILED)
766047
-	mmapfailed(len);
766047
+   { long mlen=mb->len+1;
766047
+     if(munmap(mb->p,mlen))
766047
+	mmapfailed(mlen);		      /* don't want to continue here */
766047
+     if((mb->p=mmap(0,mlen,PROT_READ,MAP_PRIVATE,mb->fd,(off_t)0))==MAP_FAILED)
766047
+	mmapfailed(mlen);
766047
      close(mb->fd);
766047
      mb->fd=ropen(devnull,O_RDWR,0);		/* XXX Perhaps -1 is better? */
766047
    }
766047
@@ -77,8 +77,8 @@
766047
      strcpy(filename,MMAP_DIR);
766047
      if(unique(filename,strchr(filename,'\0'),MMAP_FILE_LEN,MMAP_PERM,0,0)&&
766047
 	(mb->fd=ropen(filename,O_RDWR,MMAP_PERM),unlink(filename),mb->fd>=0))
766047
-      { mb->filelen=len;
766047
-	if(lseek(mb->fd,mb->filelen-1,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
766047
+      { mb->filelen=len+1;
766047
+	if(lseek(mb->fd,len,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
766047
 dropf:	 { close(mb->fd);mb->fd= -1;
766047
 	   if(verbose)nlog("Unable to extend or use tempfile");
766047
 	 }
766047
@@ -98,9 +98,9 @@
766047
       }
766047
    }
766047
   if(mb->fd>=0)
766047
-   { if(len>mb->filelen)				  /* need to extend? */
766047
-      { mb->filelen=len;
766047
-	if(lseek(mb->fd,mb->filelen-1,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
766047
+   { if(len>=mb->filelen)				  /* need to extend? */
766047
+      { mb->filelen=len+1;
766047
+	if(lseek(mb->fd,len,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
766047
 	 { char*p=malloc(len+1);	   /* can't extend, switch to malloc */
766047
 	   tmemmove(p,mb->p,mb->len);
766047
 	   munmap(mb->p,mb->len+1);
766047
@@ -124,9 +124,9 @@
766047
    }
766047
   else
766047
      mb->p=realloc(mb->p,len+1);
766047
-  mb->len=len+1;
766047
-  mb->p[len]='\0';
766047
+  mb->len=len;
766047
 ret1:
766047
+  mb->p[len]='\0';
766047
   return 1;
766047
 }
766047
 
766047
--- procmail-3.22.orig/src/autoconf
766047
+++ procmail-3.22/src/autoconf
766047
@@ -1470,15 +1470,14 @@
766047
  grep 'Mlocal.*procmail' >$DEVNULL ||
766047
  echo '#define CF_no_procmail_yet' >>$ACONF
766047
 
766047
-cat /usr/lib/sendmail.cf /etc/sendmail.cf /etc/mail/sendmail.cf 2>$DEVNULL |
766047
- grep '^V' >$DEVNULL ||
766047
- echo '#define buggy_SENDMAIL' >>$ACONF
766047
+# cat /usr/lib/sendmail.cf /etc/sendmail.cf /etc/mail/sendmail.cf 2>$DEVNULL |
766047
+#  grep '^V' >$DEVNULL ||
766047
+#  echo '#define buggy_SENDMAIL' >>$ACONF
766047
 
766047
 lpath='/bin'
766047
 bins="/bin"
766047
 
766047
-for newd in /usr/bin /usr/ucb /usr/5bin $BINDIR /local/bin /usr/local/bin \
766047
- /global/bin /usr/bin/X11 /usr/X*/bin
766047
+for newd in /usr/bin $BINDIR /usr/bin/X11 /usr/X*/bin
766047
 do
766047
   if test -d $newd
766047
   then
766047
--- procmail-3.22.orig/src/procmail.c
766047
+++ procmail-3.22/src/procmail.c
766047
@@ -652,8 +652,7 @@
766047
 	      nrcond= -1;
766047
 	   if(tolock)		 /* clear temporary buffer for lockfile name */
766047
 	      free(tolock);
766047
-	   for(i=maxindex(flags);i;i--)			  /* clear the flags */
766047
-	      flags[i]=0;
766047
+	   bbzero(flags,sizeof(flags));		  /* clear the flags */
766047
 	   for(tolock=0,locknext=0;;)
766047
 	    { chp=skpspace(chp);
766047
 	      switch(i= *chp++)
766047
--- procmail-3.22.orig/src/pipes.c
766047
+++ procmail-3.22/src/pipes.c
766047
@@ -145,7 +145,9 @@
766047
   if(Stdout)
766047
    { *(eq=strchr(Stdout,'\0')-1)='\0';			     /* chop the '=' */
766047
      if(!(backblock=getenv(Stdout)))			/* no current value? */
766047
-	PRDB=PWRB= -1;
766047
+      { PRDB=PWRB= -1;
766047
+	backlen=0;
766047
+      }
766047
      else
766047
       { backlen=strlen(backblock);
766047
 	goto pip;
766047
@@ -155,9 +157,7 @@
766047
 pip: rpipe(pbackfd);
766047
   rpipe(pinfd);						 /* main pipes setup */
766047
   if(!(pidchild=sfork()))			/* create a sending procmail */
766047
-   { if(Stdout&&backblock)
766047
-	backlen=strlen(backblock);
766047
-     else
766047
+   { if(!Stdout)
766047
 	backblock=source,backlen=len;
766047
      childsetup();rclose(PRDI);rclose(PRDB);
766047
      rpipe(poutfd);rclose(STDOUT);
766047
@@ -194,7 +194,7 @@
766047
      makeblock(&temp,Stdfilled);
766047
      tmemmove(temp.p,Stdout,Stdfilled);
766047
      readdyn(&temp,&Stdfilled,Stdfilled+backlen+1);
766047
-     Stdout=realloc(Stdout,&Stdfilled+1);
766047
+     Stdout=realloc(Stdout,Stdfilled+1);
766047
      tmemmove(Stdout,temp.p,Stdfilled+1);
766047
      freeblock(&temp);
766047
      retStdout(Stdout,pwait&&pipw,!backblock);
766047
--- procmail-3.22.orig/src/memblk.h
766047
+++ procmail-3.22/src/memblk.h
766047
@@ -1,6 +1,6 @@
766047
 typedef struct memblk {
766047
     char*p;						  /* where it starts */
766047
-    long len;					 /* currently allocated size */
766047
+    long len;			 /* current size, not including trailing NUL */
766047
 #ifdef USE_MMAP
766047
     off_t filelen;				     /* how long is the file */
766047
     int fd;					   /* file which is mmap()ed */
766047
--- procmail-3.22.orig/src/manconf.c
766047
+++ procmail-3.22/src/manconf.c
766047
@@ -233,7 +233,7 @@
766047
  \2-@PRESERVOPT@\1and\1.BR \2-@FROMWHOPT@ .\1");
766047
   pc("LMTPOPT",LMTPOPT);
766047
 #else
766047
-  ps("LMTPOPTdesc","");ps("LMTPusage","");
766047
+  ps("LMTPOPTdesc","");ps("LMTPusage","\1");
766047
 #endif
766047
   pname("INIT_UMASK",0);printf("0%lo/g\n",(unsigned long)INIT_UMASK);lines--;
766047
   pn("DEFlinebuf",DEFlinebuf);
766047
--- procmail-3.22.orig/src/recommend.c
766047
+++ procmail-3.22/src/recommend.c
766047
@@ -47,7 +47,7 @@
766047
      printf("chmod %lo %s\n",(unsigned long)(sgid|PERMIS),argv[2]);
766047
   else if(chmdir==1)
766047
      goto nogchmod;
766047
-  if(chmdir)
766047
+  if(0)
766047
      printf("chmod %c+w %s/.\n",chmdir==1?'g':'a',mailspooldir);
766047
 nogchmod:
766047
   return EXIT_SUCCESS;
766047
--- procmail-3.22.orig/src/foldinfo.h
766047
+++ procmail-3.22/src/foldinfo.h
766047
@@ -10,7 +10,7 @@
766047
 
766047
 #define ft_lock(type)	   ((type)>ft_MAILDIR)		   /* kernel lock fd */
766047
 #define ft_atime(type)	   ((type)==ft_FILE)	      /* force atime < mtime */
766047
-#define ft_dotlock(type)   ((type)==ft_FILE)		 /* dotlock $DEFAULT */
766047
+#define ft_dotlock(type)   ((type)>ft_MAILDIR)		 /* dotlock $DEFAULT */
766047
 #define ft_delim(type)	   ((type)==ft_FILE)		   /* add MMDF delim */
766047
 #define ft_checkcloser(type) ((type)>ft_MH)
766047
 #define ft_forceblank(type) ((type)!=ft_MAILDIR)  /* force blank line at end */
766047
--- procmail-3.22.orig/src/mailfold.c
766047
+++ procmail-3.22/src/mailfold.c
766047
@@ -378,7 +378,8 @@
766047
 	dfilled=mailread=0;
766047
      else if(rhead)				/* only read in a new header */
766047
       { memblk new;
766047
-	dfilled=mailread=0;makeblock(&new,0);readdyn(&new,&dfilled,0);
766047
+	dfilled=mailread=0;makeblock(&new,0);
766047
+	readdyn(&new,&dfilled,thebody-themail.p);
766047
 	if(tobesent>dfilled&&isprivate)		     /* put it in place here */
766047
 	 { tmemmove(themail.p+dfilled,thebody,filled-=tobesent);
766047
 	   tmemmove(themail.p,new.p,dfilled);
766047
--- procmail-3.22.orig/FAQ
766047
+++ procmail-3.22/FAQ
766047
@@ -57,8 +57,8 @@
766047
 		Forward to |/usr/bin/procmail
766047
 	or if that doesn't work, try:
766047
 		Pipe to /usr/bin/procmail
766047
-	as the only line in your mail spool file (e.g. /usr/mail/$LOGNAME), as
766047
-	well as doing a "chmod 06660 /usr/mail/$LOGNAME".  For more information
766047
+	as the only line in your mail spool file (e.g. /var/mail/$LOGNAME), as
766047
+	well as doing a "chmod 06660 /var/mail/$LOGNAME".  For more information
766047
 	on such systems, do a "man mail".
766047
 
766047
 	If all of this doesn't work, procmail can be called on a periodical
766047
@@ -210,14 +210,14 @@
766047
 	procmail with both the fcntl() and lockf() locking method
766047
 	disabled (see config.h).
766047
 
766047
-17. I sometimes get these `Lock failure on "/usr/mail/$LOGNAME.lock"' errors
766047
+17. I sometimes get these `Lock failure on "/var/mail/$LOGNAME.lock"' errors
766047
     from procmail.  What do I do about it?
766047
 
766047
 	The problem here is that as long as procmail has not read a
766047
 	$HOME/.procmailrc file, it can hang on to the sgid mail permission
766047
-	(which it needs in order to create a lockfile in /usr/mail).
766047
+	(which it needs in order to create a lockfile in /var/mail).
766047
 	I.e. if procmail delivers mail to a user without a $HOME/.procmailrc
766047
-	file, procmail *can* (and does) use the /usr/mail/$LOGNAME.lock file.
766047
+	file, procmail *can* (and does) use the /var/mail/$LOGNAME.lock file.
766047
 
766047
 	If, however, it finds a $HOME/.procmailrc file, procmail has to let go
766047
 	of the sgid mail permission because otherwise any ordinary user could
766047
@@ -226,7 +226,7 @@
766047
 	There are several solutions to this problem:
766047
 	- Some systems support the sticky bit on directories (when set only
766047
 	  allows the owner of a file in that directory to rename or remove
766047
-	  it).	This enables you to make /usr/spool/mail drwxrwxrwt.  It is
766047
+	  it).	This enables you to make /var/mail drwxrwxrwt.  It is
766047
 	  thus effectively world writable, but all the mailboxes in it are
766047
 	  protected because only the mailbox owner can remove or rename it.
766047
 	- If your system did not exhibit the !@#$%^&* POSIX semantics for
766047
@@ -245,9 +245,9 @@
766047
 			:0
766047
 			$DEFAULT
766047
 
766047
-	- You could, instead of using /usr/mail/$LOGNAME, use a file below
766047
+	- You could, instead of using /var/mail/$LOGNAME, use a file below
766047
 	  your home directory as your default mailbox.
766047
-	- Or, you could still use /usr/mail/$LOGNAME as the mailbox, but
766047
+	- Or, you could still use /var/mail/$LOGNAME as the mailbox, but
766047
 	  simply instruct procmail to use a different lockfile.	 This can
766047
 	  be achieved by putting following recipe at the bottom of
766047
 	  your .procmailrc file:
766047
--- procmail-3.22.orig/Makefile
766047
+++ procmail-3.22/Makefile
766047
@@ -79,7 +79,7 @@
766047
 #			-lresolv	# not really needed, is it?
766047
 
766047
 # Informal list of directories where we look for the libraries in SEARCHLIBS
766047
-LIBPATHS=/lib /usr/lib /usr/local/lib
766047
+LIBPATHS=/lib /usr/lib
766047
 
766047
 GCC_WARNINGS = -O2 -pedantic -Wreturn-type -Wunused -Wformat -Wtraditional \
766047
  -Wpointer-arith -Wconversion -Waggregate-return \
766047
--- procmail-3.22.orig/debian/changelog
766047
+++ procmail-3.22/debian/changelog
766047
@@ -0,0 +1,294 @@
766047
+procmail (3.22-8) unstable; urgency=low
766047
+
766047
+  * Fixed strange formail -l behaviour when there is a Content-Length: header.
766047
+    Thanks a lot to Henning Makholm for the patch (Closes: #217853).
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Mon,  3 Nov 2003 20:01:24 +0100
766047
+
766047
+procmail (3.22-7) unstable; urgency=low
766047
+
766047
+  * Fixed bad nroff syntax in procmailrc(5), closes: #147173.
766047
+  * Added missing newline in procmail(1), closes: #180477.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Mon, 10 Mar 2003 00:09:20 +0100
766047
+
766047
+procmail (3.22-6) unstable; urgency=low
766047
+
766047
+  * Standards-Version: 3.5.8.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Thu, 26 Dec 2002 18:27:08 +0100
766047
+
766047
+procmail (3.22-5) stable; urgency=medium
766047
+
766047
+  * Patched pipes.c to fix a memory allocation bug (Closes: #171514).
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Thu, 26 Dec 2002 18:09:38 +0100
766047
+
766047
+procmail (3.22-4) unstable; urgency=low
766047
+
766047
+  * Fixed a typo in procmail(1). Patch by the author (Closes: #142983).
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Tue, 16 Apr 2002 19:16:20 +0200
766047
+
766047
+procmail (3.22-3) unstable; urgency=medium
766047
+
766047
+  * Fixed off-by-one bug in procmail.c which made the raw flag not to be
766047
+    cleared properly. Thanks to Gregory Stark (Closes: #134341).
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Sun, 17 Feb 2002 16:43:02 +0100
766047
+
766047
+procmail (3.22-2) unstable; urgency=medium
766047
+
766047
+  * Modified mailfold.c to fix a segfault problem. Patch by the author.
766047
+  * The system-wide mail directory is /var/mail as per policy.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Thu, 29 Nov 2001 09:39:04 +0100
766047
+
766047
+procmail (3.22-1) unstable; urgency=low
766047
+
766047
+  * New upstream release, which uses the `standard' format for Maildir
766047
+    filenames and retries on name collision. It also contains some
766047
+    bug fixes from the 3.23pre snapshot dated 2001-09-13.
766047
+  * Removed `sendmail' from the Recommends field, since we already
766047
+    have `exim' (the default Debian MTA) and `mail-transport-agent'.
766047
+  * Removed suidmanager support. Conflicts: suidmanager (<< 0.50).
766047
+  * Added support for DEB_BUILD_OPTIONS in the source package.
766047
+  * README.Maildir: Do not use locking on the example recipe,
766047
+    since it's wrong to do so in this case.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Wed, 21 Nov 2001 09:40:20 +0100
766047
+
766047
+procmail (3.15.2-1) stable; urgency=high
766047
+
766047
+  * New upstream release, with improved security and robustness involving
766047
+    signal handlers. Author recommends upgrading to this version on
766047
+    any system where it is installed setuid or setgid.
766047
+  * This release fixes also Bug #108417: procmail -p -m resets PATH.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Thu, 30 Aug 2001 20:05:06 +0200
766047
+
766047
+procmail (3.15.1-4) unstable; urgency=low
766047
+
766047
+  * Don't add an extra newline when delivering to a Maildir folder.
766047
+    Please note that the MTA may still add a newline on their own.
766047
+    Exim users should check the `suffix' variable, for example.
766047
+    Patch by the author. Closes: #78623.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Sat, 14 Apr 2001 17:18:29 +0200
766047
+
766047
+procmail (3.15.1-3) unstable; urgency=low
766047
+
766047
+  * Clarified formail -X behaviour, patch by the author (Closes: #77388).
766047
+  * Updated QuickStart.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Sun, 25 Mar 2001 10:45:56 +0200
766047
+
766047
+procmail (3.15.1-2) unstable; urgency=low
766047
+
766047
+  * Fixed lockfile -l endless loop (Closes: #82006). Patch by the author.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Sun, 28 Jan 2001 19:44:49 +0100
766047
+
766047
+procmail (3.15.1-1) unstable; urgency=low
766047
+
766047
+  * New upstream release. A race to create the mailspool would bounce one of
766047
+    the messages due to an internal error.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Mon,  8 Jan 2001 20:09:34 +0100
766047
+
766047
+procmail (3.15-3) unstable; urgency=low
766047
+
766047
+  * Fixed formatting error in procmailrc(5). Patch by the author.
766047
+    (Closes: #80437).
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Sun, 31 Dec 2000 17:20:47 +0100
766047
+
766047
+procmail (3.15-2) unstable; urgency=low
766047
+
766047
+  * formail -l is now documented. Patch by the author (Closes: #72275).
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Fri,  1 Dec 2000 19:54:22 +0100
766047
+
766047
+procmail (3.15-1) unstable; urgency=low
766047
+
766047
+  * New upstream release. Maildir support is now built-in.
766047
+  * Really change default PATH to "$HOME/bin:/usr/local/bin:/usr/bin:/bin".
766047
+  * Modified the note in QuickStart about refiltering an old mail folder.
766047
+  * Use SEARCHLIBS="" in debian/rules clean target to speed it up.
766047
+  * Modified ft_dotlock in src/foldinfo.h to be in compliance with
766047
+    locking policy, following a hint by the author.
766047
+  * Removed (versioned) dependency on debianutils, since mailstat
766047
+    does not use temporary files anymore.
766047
+  * Made the .forward example in procmail(1) not to depend on the build
766047
+    environment by modifying src/autoconf so that buggy_SENDMAIL is
766047
+    never defined.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Mon, 28 Aug 2000 12:51:05 +0200
766047
+
766047
+procmail (3.13.1-4) stable; urgency=high
766047
+
766047
+  * Fixed weird formail -rk behavior (patch from the author, backported
766047
+    from procmail-3.15). Thanks to Ben Collins for the report.
766047
+  * s/smail/exim/ in `Recommends:' field.
766047
+
766047
+ -- Santiago Vila <sanvila@debian.org>  Tue, 22 Aug 2000 13:04:50 +0200
766047
+
766047
+procmail (3.13.1-3) unstable; urgency=medium
766047
+
766047
+  * Standards-Version: 3.1.1
766047
+  * Updated location of licenses in copyright file.
766047
+  * LOCKINGTEST=100 again, to use fcntl() and dot-locking, as required by
766047
+    latest policy.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Wed,  1 Dec 1999 12:37:35 +0100
766047
+
766047
+procmail (3.13.1-2) unstable; urgency=low
766047
+
766047
+  * Modified procmail(1) and QuickStart to reflect the fact that exim does
766047
+    not accept the exec keyword in .forward files (Bugs #33460 and #37771).
766047
+  * Modified formail to recognize exim's Envelope-To: header (Bug#40718).
766047
+    Patch by Philip Guenther.
766047
+  * Standards-Version: 3.0.0.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Mon, 19 Jul 1999 20:09:25 +0200
766047
+
766047
+procmail (3.13.1-1) stable unstable; urgency=high
766047
+
766047
+  * New upstream release, 3.13 missed a couple possible overflows.
766047
+  * Applied `procmail-locking.patch' from Bruce Guenter, since
766047
+    no directory delivery mechanism requires locking (Bug #35210).
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Thu,  8 Apr 1999 13:56:33 +0200
766047
+
766047
+procmail (3.13-1) stable unstable; urgency=high
766047
+
766047
+  * New upstream release. procmail 3.12 breaks smartlist (Bug #35115).
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Fri,  2 Apr 1999 14:24:24 +0200
766047
+
766047
+procmail (3.12-1) frozen unstable; urgency=high
766047
+
766047
+  * New upstream release. Fixes some security bugs.
766047
+  * #define GROUP_PER_USER in config.h to allow writeable rcfiles when
766047
+    the group is the user's default group.
766047
+  * Added KNOWN_BUGS to the doc directory.
766047
+  * suid procmail to avoid non-suidness window when upgrading.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Thu,  4 Mar 1999 10:28:28 +0100
766047
+
766047
+procmail (3.10.7-7) frozen unstable; urgency=medium
766047
+
766047
+  * New Maildir patches from Bruce Guenter.
766047
+    Should fix Bug #30320: procmail: maildir does not use From_ lines.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Thu, 31 Dec 1998 13:27:20 +0100
766047
+
766047
+procmail (3.10.7-6) frozen unstable; urgency=medium
766047
+
766047
+  * Patched mailfold.c to avoid the unnecessary one second wait when
766047
+    delivering to MH folders (patch by the author).
766047
+  * src/locking.c: Applied a bugfix patch from the author.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Wed, 13 May 1998 21:50:19 +0200
766047
+
766047
+procmail (3.10.7-5) frozen unstable; urgency=medium
766047
+
766047
+  * Added a patch for Maildir support. The "new" procmail should be
766047
+    completely backwards compatible with the "previous" one, in the
766047
+    sense that its behaviour should be just the same for already
766047
+    existing .procmailrc files which do not use the new syntax for
766047
+    Maildir folders.
766047
+  * Added a small README.Maildir explaining how to use this feature.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Mon,  4 May 1998 19:39:55 +0200
766047
+
766047
+procmail (3.10.7-4) frozen unstable; urgency=low
766047
+
766047
+  * Added a small note in QuickStart about refiltering an old mail folder.
766047
+  * mailstat(1): The log file is truncated to zero length (Bug #21022).
766047
+  * PATH=/usr/local/bin:/usr/bin:/bin for the example in procmail(1).
766047
+  * Standards-Version: 2.4.1.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Fri, 17 Apr 1998 18:00:14 +0200
766047
+
766047
+procmail (3.10.7-3) frozen unstable; urgency=medium
766047
+
766047
+  * Patched src/recommend.c so that the mail spool directory is not
766047
+    touched. This will allow the package to be built using fakeroot.
766047
+  * Patched mailstat so that it uses tempfile.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Tue, 24 Mar 1998 21:43:08 +0100
766047
+
766047
+procmail (3.10.7-2) unstable; urgency=low
766047
+
766047
+  * Default PATH is now "$HOME/bin:/usr/local/bin:/usr/bin:/bin".
766047
+  * Added "fetchmail" to the Recommends: line as one more option.
766047
+  * Added /usr/doc/procmail/QuickStart (experimental).
766047
+  * Compressed changelog.Debian.
766047
+  * Removed debstd dependency.
766047
+  * Pristine source.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Sat, 31 Jan 1998 20:30:06 +0100
766047
+
766047
+procmail (3.10.7-1) unstable; urgency=low
766047
+
766047
+  * Upgraded to 3.11pre7. Sources are now GPLed, hurrah!
766047
+  * Added explicit SEARCHLIBS, to avoid unneeded dependency on libdl.
766047
+  * First libc6 release.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Wed, 18 Jun 1997 20:43:28 +0200
766047
+
766047
+procmail (3.10.4-2) frozen unstable; urgency=low
766047
+
766047
+  * Rebuilt using latest debmake to avoid a problem with suidmanager.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Sat, 17 May 1997 20:52:59 +0200
766047
+
766047
+procmail (3.10.4-1) frozen unstable; urgency=low
766047
+
766047
+  * Upgraded to 3.11pre4. Side effect: It can be built using libc6.
766047
+  * Removed NFS_ATIME_HACK patch, since it is no longer needed.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Sat, 12 Apr 1997 19:06:46 +0200
766047
+
766047
+procmail (3.10-8) unstable; urgency=low
766047
+
766047
+  * Rewritten copyright file.
766047
+  * initmake unmodified (source).
766047
+  * Patched to recognize NFS_ATIME_HACK variable in .procmailrc or
766047
+    /etc/procmailrc. Default value is "yes" (i.e. wait a second).
766047
+  * Added a small note about this in /usr/doc/procmail/README.Debian.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Sun, 23 Mar 1997 12:04:34 +0100
766047
+
766047
+procmail (3.10-7) unstable; urgency=low
766047
+
766047
+  * Put CFLAGS settings &c in ./Makefile, not in debian/rules.
766047
+  * Removed fix-substvars script, since it's no longer needed with
766047
+    new libc5-5.4.20.
766047
+  * Man page for mailstat changed slightly.
766047
+  * Some minor debian/rules changes.
766047
+  * Added MD5 sums.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Fri, 21 Feb 1997 20:53:30 +0100
766047
+
766047
+procmail (3.10-6) unstable; urgency=low
766047
+
766047
+  * Use debmake.
766047
+  * suidmanager support.
766047
+  * Removed `mailstat' from examples, it's already in /usr/bin.
766047
+  * Removed also `dirname' (which was "for the deprived").
766047
+  * Added `fix-substvars' script to depend on libc5 >= 5.4.0.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Mon, 23 Dec 1996 16:34:02 +0100
766047
+
766047
+procmail (3.10-5) unstable; urgency=low
766047
+
766047
+  * Updated to Standards-Version 2.1.2.2.
766047
+  * Changed "Depends: MTA" to "Recommends: MTA".
766047
+  * Added extended package description in control file.
766047
+  * Added the symlink changelog.gz -> HISTORY.gz.
766047
+  * Added an "experimental" man page for mailstat.
766047
+  * New maintainer.
766047
+
766047
+ -- Santiago Vila <sanvila@ctv.es>  Sat, 21 Dec 1996 23:32:11 +0100
766047
--- procmail-3.22.orig/debian/control
766047
+++ procmail-3.22/debian/control
766047
@@ -0,0 +1,18 @@
766047
+Source: procmail
766047
+Section: mail
766047
+Priority: standard
766047
+Maintainer: Santiago Vila <sanvila@debian.org>
766047
+Standards-Version: 3.6.1
766047
+
766047
+Package: procmail
766047
+Architecture: any
766047
+Depends: ${shlibs:Depends}
766047
+Conflicts: suidmanager (<< 0.50)
766047
+Recommends: exim | mail-transport-agent | fetchmail
766047
+Description: Versatile e-mail processor
766047
+ Can be used to create mail-servers, mailing lists, sort your incoming
766047
+ mail into separate folders/files (real convenient when subscribing to one
766047
+ or more mailing lists or for prioritising your mail), preprocess your
766047
+ mail, start any programs upon mail arrival (e.g. to generate different
766047
+ chimes on your workstation for different types of mail) or selectively
766047
+ forward certain incoming mail automatically to someone.
766047
--- procmail-3.22.orig/debian/copyright
766047
+++ procmail-3.22/debian/copyright
766047
@@ -0,0 +1,41 @@
766047
+This is the Debian prepackaged version of the "procmail" mail-processing
766047
+program written by Stephen van den Berg.
766047
+
766047
+This package is currently maintained by Santiago Vila <sanvila@debian.org>.
766047
+The source for this release was downloaded from:
766047
+
766047
+ftp://ftp.procmail.org/pub/procmail/procmail-3.22.tar.gz
766047
+
766047
+This package was first put together by Bruce Perens <bruce@hams.com>,
766047
+who added Debian package maintenance system files, and edited config.h
766047
+to configure for Debian.
766047
+
766047
+Copyright:
766047
+
766047
+Procmail & formail mail processing package.
766047
+Copyright (c) 1990-1999, S.R. van den Berg, The Netherlands.
766047
+Copyright (c) 1999-2001, Philip Guenther, The United States of America
766047
+
766047
+This package is open source software; you can redistribute it and/or
766047
+modify it under the terms of either:
766047
+- the GNU General Public License as published by the Free Software Foundation
766047
+  and can be found in the included file called "COPYING"; either version 2,
766047
+  or (at your option) any later version, or
766047
+- the "Artistic License" which can be found in the included file called
766047
+  "Artistic".
766047
+
766047
+This package is distributed in the hope that it will be useful, but without
766047
+any warranty; without even the implied warranty of merchantability or fitness
766047
+for a particular purpose.  See either the GNU General Public License or the
766047
+Artistic License for more details.
766047
+
766047
+For those of you that choose to use the GNU General Public License,
766047
+my interpretation of the GNU General Public License is that no procmailrc
766047
+script falls under the terms of the GPL unless you explicitly put
766047
+said script under the terms of the GPL yourself.
766047
+
766047
+
766047
+On Debian systems, the complete text of the GNU General Public License
766047
+can be found in `/usr/share/common-licenses/GPL', and the complete
766047
+text of the "Artistic License" can be found in
766047
+`/usr/share/common-licenses/Artistic'.
766047
--- procmail-3.22.orig/debian/mailstat.1
766047
+++ procmail-3.22/debian/mailstat.1
766047
@@ -0,0 +1,40 @@
766047
+.TH MAILSTAT 1
766047
+.SH NAME
766047
+mailstat \- shows mail-arrival statistics
766047
+.SH SYNOPSIS
766047
+.B mailstat
766047
+[\-klmots] [logfile]
766047
+.SH DESCRIPTION
766047
+.B mailstat
766047
+parses a procmail-generated $LOGFILE and displays
766047
+a summary about the messages delivered to all folders
766047
+(total size, average size, nr of messages).
766047
+The $LOGFILE is truncated to zero length, unless the
766047
+.B -k
766047
+option is used.
766047
+Exit code 0 if mail arrived, 1 if no mail arrived.
766047
+.SH OPTIONS
766047
+.TP
766047
+.I \-k
766047
+keep logfile intact
766047
+.TP
766047
+.I \-l
766047
+long display format
766047
+.TP
766047
+.I \-m
766047
+merge any errors into one line
766047
+.TP
766047
+.I \-o
766047
+use the old logfile
766047
+.TP
766047
+.I \-t
766047
+terse display format
766047
+.TP
766047
+.I \-s
766047
+silent in case of no mail
766047
+.SH NOTES
766047
+Customise to your heart's content, this program is only provided as a
766047
+guideline.
766047
+.SH AUTHOR
766047
+This manual page was written by Santiago Vila <sanvila@debian.org>
766047
+for the Debian GNU/Linux distribution (but may be used by others).
766047
--- procmail-3.22.orig/debian/QuickStart
766047
+++ procmail-3.22/debian/QuickStart
766047
@@ -0,0 +1,97 @@
766047
+procmail QuickStart
766047
+===================
766047
+
766047
+* procmail is not an `interactive' program. It has to run automatically
766047
+when the mail arrives. Therefore the first thing to do is to tell our MTA
766047
+that we want procmail to "eat" all our mail messages. The way of doing
766047
+this depends on the MTA we are using. For example, if we are using
766047
+sendmail, it will suffice to have a .forward file like this in our home
766047
+directory:
766047
+
766047
+"|exec /usr/bin/procmail"
766047
+
766047
+(don't forget the quotes, they are needed in this case).
766047
+
766047
+If you are using exim, use this instead as your .forward file:
766047
+
766047
+|/usr/bin/procmail
766047
+
766047
+The step of creating a .forward file is not needed if the MTA already
766047
+performs the delivery using procmail. For example, Debian sendmail will
766047
+automatically use procmail for mail delivering if the sendmail.cf is
766047
+generated from a sendmail.mc file containing this line:
766047
+
766047
+FEATURE(local_procmail)dnl
766047
+
766047
+
766047
+* If we have a stand-alone system with no permanent net connection (like
766047
+PPP), and we are using fetchmail to get mail from a server, we don't
766047
+really need a MTA.  Just adding  --mda "formail -s procmail"  to the
766047
+fetchmail command line (or using the `mda' keyword) will tell it to
766047
+deliver through procmail.
766047
+
766047
+
766047
+* Next, we have to write a ~/.procmailrc file in our home directory. This
766047
+file is a set of filtering rules, based on regular expressions. The
766047
+complete syntax is explained in procmailrc(5). Let's see a real example
766047
+just to get started. Let's suppose you are subscribed to the following two
766047
+mailing lists:
766047
+
766047
+linux-kernel@vger.kernel.org
766047
+debian-user@lists.debian.org
766047
+
766047
+The first list is managed by Majordomo. Messages coming from a Majordomo
766047
+list often include a header field "Sender: " which allow easy filtering.
766047
+
766047
+The second list is managed my SmartList. Messages coming from a SmartList
766047
+list may include several headers that can be used to filter it. One of
766047
+them (in fact, the only that it is not X-whatever) is "Resent-Sender: ".
766047
+
766047
+So the following .procmailrc will first filter the mailing lists, and
766047
+any remaining message will go to the default folder:
766047
+
766047
+*--------------------------------->8------------------------------------
766047
+PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
766047
+MAILDIR=$HOME/mail             # you'd better make sure it exists
766047
+DEFAULT=$MAILDIR/mbox          # completely optional
766047
+LOGFILE=$MAILDIR/procmail.log  # recommended
766047
+
766047
+:0:
766047
+* ^Sender:.*linux-kernel-owner@vger.kernel.org
766047
+linux-kernel
766047
+
766047
+:0:
766047
+* ^Resent-Sender:.*debian-user-request@lists.debian.org
766047
+debian-user
766047
+*--------------------------------->8------------------------------------
766047
+
766047
+From this example additional rules for mailing lists may be created
766047
+easily.
766047
+
766047
+
766047
+* Once you have received lots of messages you will want to know where
766047
+did they go. That's what the LOGFILE is for. There is a tool named
766047
+mailstat which parses this file and shows a summary:
766047
+
766047
+mailstat procmail.log
766047
+
766047
+The mailstat command that this package provides does really come from the
766047
+examples directory and it is installed by default. You may have your own
766047
+modified copy in $HOME/bin, if you like.
766047
+
766047
+
766047
+If you have to refilter an old mail folder according to your current
766047
+~/.procmailrc file, you may do the following:
766047
+
766047
+cat mbox | formail -s procmail
766047
+
766047
+But of course if your mbox file is the target of a procmail recipe you should
766047
+do this instead:
766047
+
766047
+mv mbox whatever
766047
+cat whatever | formail -s procmail
766047
+
766047
+See formail(1) for details.
766047
+
766047
+
766047
+Santiago Vila <sanvila@debian.org>
766047
--- procmail-3.22.orig/debian/README.Maildir
766047
+++ procmail-3.22/debian/README.Maildir
766047
@@ -0,0 +1,12 @@
766047
+This version of procmail supports Maildir folders.
766047
+
766047
+To make procmail to deliver into a Maildir folder, just append
766047
+a slash (/) to the name of the maildir folder in your ~/.procmailrc file.
766047
+For example, the following rule:
766047
+
766047
+:0
766047
+* ^Resent-Sender.*debian-user-request@lists.debian.org
766047
+debian-user/
766047
+
766047
+will deliver all mail from the debian-user mailing list to the Maildir
766047
+folder "debian-user".
766047
--- procmail-3.22.orig/debian/rules
766047
+++ procmail-3.22/debian/rules
766047
@@ -0,0 +1,76 @@
766047
+#!/usr/bin/make -f
766047
+
766047
+package = procmail
766047
+docdir = debian/tmp/usr/share/doc/$(package)
766047
+
766047
+CC = gcc
766047
+CFLAGS0 = -g
766047
+LDFLAGS0 =
766047
+SEARCHLIBS = -lm
766047
+STRIP = true
766047
+
766047
+ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
766047
+  CFLAGS0 += -O2
766047
+endif
766047
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
766047
+  STRIP = strip --remove-section=.comment --remove-section=.note
766047
+endif
766047
+
766047
+build:
766047
+	$(checkdir)
766047
+	$(MAKE) CC="$(CC)" CFLAGS0="$(CFLAGS0)" LDFLAGS0="$(LDFLAGS0)" \
766047
+		SEARCHLIBS="$(SEARCHLIBS)"
766047
+	touch build
766047
+
766047
+clean:
766047
+	$(checkdir)
766047
+	rm -f build
766047
+	-$(MAKE) realclean SEARCHLIBS=""
766047
+	rm -f `find . -name "*~"`
766047
+	rm -rf debian/tmp debian/files* core debian/substvars
766047
+
766047
+binary-indep: checkroot build
766047
+	$(checkdir)
766047
+
766047
+binary-arch: checkroot build
766047
+	$(checkdir)
766047
+	rm -rf debian/tmp
766047
+	install -d debian/tmp/DEBIAN $(docdir)/examples
766047
+	cd debian/tmp && install -d usr/bin
766047
+	$(MAKE) BASENAME=`pwd`/debian/tmp/usr install.man install-suid
766047
+	$(STRIP) debian/tmp/usr/bin/procmail
766047
+	$(STRIP) debian/tmp/usr/bin/lockfile
766047
+	$(STRIP) debian/tmp/usr/bin/formail
766047
+	cp -p debian/copyright $(docdir)
766047
+	cp -p debian/changelog $(docdir)/changelog.Debian
766047
+	install -m 644 debian/mailstat.1 debian/tmp/usr/man/man1
766047
+	cp -p FEATURES HISTORY README FAQ KNOWN_BUGS \
766047
+		debian/QuickStart debian/README.Maildir $(docdir)
766047
+	cp -p examples/* $(docdir)/examples
766047
+	cd $(docdir)/examples && rm -f dirname mailstat procmail-rpm.spec
766047
+	cd $(docdir) && gzip -9 HISTORY changelog.Debian
766047
+	ln -s HISTORY.gz $(docdir)/changelog.gz
766047
+	mv debian/tmp/usr/man debian/tmp/usr/share
766047
+	gzip -r9 debian/tmp/usr/share/man
766047
+	dpkg-shlibdeps debian/tmp/usr/bin/*
766047
+	dpkg-gencontrol -isp
766047
+	cd debian/tmp && \
766047
+		md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums
766047
+	chown -R root:root debian/tmp
766047
+	chmod -R go=rX debian/tmp
766047
+	chgrp mail debian/tmp/usr/bin/procmail debian/tmp/usr/bin/lockfile
766047
+	chmod 6755 debian/tmp/usr/bin/procmail
766047
+	chmod 2755 debian/tmp/usr/bin/lockfile
766047
+	dpkg --build debian/tmp ..
766047
+
766047
+define checkdir
766047
+        test -f src/$(package).c -a -f debian/rules
766047
+endef
766047
+
766047
+binary: binary-indep binary-arch
766047
+
766047
+checkroot:
766047
+	$(checkdir)
766047
+	test root = "`whoami`"
766047
+
766047
+.PHONY: binary binary-arch binary-indep clean checkroot