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