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