| 1 |
--- procmail-3.22.orig/examples/advanced
|
| 2 |
+++ procmail-3.22/examples/advanced
|
| 3 |
@@ -251,14 +251,14 @@
|
| 4 |
--------------------------------------------------------
|
| 5 |
|
| 6 |
There are many different reasons why more and more sites decide not to
|
| 7 |
-store mail in /usr/spool/mail or /usr/mail anymore.
|
| 8 |
+store mail in /var/spool/mail or /var/mail anymore.
|
| 9 |
Some of the obvious advantages when storing mail in the recipient's home
|
| 10 |
directory are:
|
| 11 |
- Mail is automatically subject to the user's quota limitations.
|
| 12 |
- Often there is more room on the home partition(s) than on that
|
| 13 |
- one /usr/mail partition.
|
| 14 |
+ one /var/mail partition.
|
| 15 |
|
| 16 |
-The quota limitations also apply to /usr/spool/mail or /usr/mail if procmail
|
| 17 |
+The quota limitations also apply to /var/spool/mail or /var/mail if procmail
|
| 18 |
does the delivery. These quota limitations often do not work with the
|
| 19 |
regular /bin/mail since that usually writes the mailbox with root permissions
|
| 20 |
(eluding the quota restrictions).
|
| 21 |
@@ -276,7 +276,7 @@
|
| 22 |
defined SYSTEM_MBOX to be. Some braindamaged mail programs
|
| 23 |
do not pick up the MAIL environment variable, these either
|
| 24 |
have to be patched/recompiled or you have to create symbolic
|
| 25 |
- links in /usr/mail to every person's new mailbox.
|
| 26 |
+ links in /var/mail to every person's new mailbox.
|
| 27 |
|
| 28 |
---
|
| 29 |
|
| 30 |
--- procmail-3.22.orig/man/procmail.man
|
| 31 |
+++ procmail-3.22/man/procmail.man
|
| 32 |
@@ -166,7 +166,8 @@
|
| 33 |
accept an unlimited number of arguments.@ETCRCS_desc@
|
| 34 |
For some advanced usage of this option you should look in the
|
| 35 |
.B EXAMPLES
|
| 36 |
-section below.@LMTPOPTdesc@.SH ARGUMENTS
|
| 37 |
+section below.@LMTPOPTdesc@
|
| 38 |
+.SH ARGUMENTS
|
| 39 |
Any arguments containing an '=' are considered to be environment variable
|
| 40 |
assignments, they will
|
| 41 |
.I all
|
| 42 |
@@ -723,6 +724,15 @@
|
| 43 |
.fi
|
| 44 |
.ad
|
| 45 |
.PP
|
| 46 |
+Some mailers (notably exim) do not currently accept the above syntax.
|
| 47 |
+In such case use this instead:
|
| 48 |
+.PP
|
| 49 |
+.na
|
| 50 |
+.nf
|
| 51 |
+|/usr/bin/procmail
|
| 52 |
+.fi
|
| 53 |
+.ad
|
| 54 |
+.PP
|
| 55 |
Procmail can also be invoked to postprocess an already filled system
|
| 56 |
mailbox. This can be useful if you don't want to or can't use a
|
| 57 |
$HOME/@DOT_FORWARD@ file (in which case the following script could
|
| 58 |
@@ -754,7 +764,7 @@
|
| 59 |
.SS "A sample small @PROCMAILRC@:"
|
| 60 |
.na
|
| 61 |
.nf
|
| 62 |
-PATH=/bin:/usr/bin:@BINDIR@
|
| 63 |
+PATH=/usr/local/bin:/usr/bin:/bin
|
| 64 |
MAILDIR=$HOME/Mail #you'd better make sure it exists
|
| 65 |
DEFAULT=$MAILDIR/mbox #completely optional
|
| 66 |
LOGFILE=$MAILDIR/from #recommended
|
| 67 |
--- procmail-3.22.orig/man/procmailrc.man
|
| 68 |
+++ procmail-3.22/man/procmailrc.man
|
| 69 |
@@ -779,7 +779,7 @@
|
| 70 |
.PP
|
| 71 |
Some non-optimal and non-obvious regexps set MATCH to an incorrect
|
| 72 |
value. The regexp can be made to work by removing one or more unneeded
|
| 73 |
-'*', '+', or '?' operator on the left-hand side of the \e/ token.
|
| 74 |
+\&'*', '+', or '?' operator on the left-hand side of the \e/ token.
|
| 75 |
.SH MISCELLANEOUS
|
| 76 |
If the regular expression contains `\fB@TO_key@\fP' it will be substituted by
|
| 77 |
.na
|
| 78 |
--- procmail-3.22.orig/src/comsat.c
|
| 79 |
+++ procmail-3.22/src/comsat.c
|
| 80 |
@@ -92,7 +92,7 @@
|
| 81 |
}
|
| 82 |
if(newvalid) /* so far, so good */
|
| 83 |
{ int s;
|
| 84 |
- if(!*chp) /* no service */
|
| 85 |
+ if(!chad||!*chp) /* no service */
|
| 86 |
chp=BIFF_serviceport; /* new balls please! */
|
| 87 |
s=strtol(chp,&chad,10);
|
| 88 |
if(chp!=chad) /* the service is not numeric */
|
| 89 |
@@ -120,7 +120,7 @@
|
| 90 |
{ int s;const char*p;
|
| 91 |
if(!csvalid||!buf) /* is comat on and set to a valid address? */
|
| 92 |
return;
|
| 93 |
- if(!*cslgname||strlen(cslgname)+2>linebuf) /* is $LOGNAME bogus? */
|
| 94 |
+ if(!cslgname||!*cslgname||strlen(cslgname)+2>linebuf)/* is $LOGNAME bogus? */
|
| 95 |
return;
|
| 96 |
if(!(p=folder?folder:cslastf)) /* do we have a folder? */
|
| 97 |
return;
|
| 98 |
--- procmail-3.22.orig/src/formail.c
|
| 99 |
+++ procmail-3.22/src/formail.c
|
| 100 |
@@ -758,9 +758,9 @@
|
| 101 |
lputssn(buf,buffilled),ctlength-=buffilled,buffilled=lnl=0;
|
| 102 |
;{ int tbl=buflast,lwr='\n';
|
| 103 |
while(--ctlength>=0&&tbl!=EOF) /* skip Content-Length: bytes */
|
| 104 |
- lnl=lwr==tbl&&lwr=='\n',putcs(lwr=tbl),tbl=getchar();
|
| 105 |
+ lnl=lwr==tbl&&lwr=='\n',lputcs(lwr=tbl),tbl=getchar();
|
| 106 |
if((buflast=tbl)=='\n'&&lwr!=tbl) /* just before a line break? */
|
| 107 |
- putcs('\n'),buflast=getchar(); /* wrap up loose end */
|
| 108 |
+ lputcs('\n'),buflast=getchar(); /* wrap up loose end */
|
| 109 |
}
|
| 110 |
if(!quiet&&ctlength>0)
|
| 111 |
{ charNUM(num,ctlength);
|
| 112 |
--- procmail-3.22.orig/src/memblk.c
|
| 113 |
+++ procmail-3.22/src/memblk.c
|
| 114 |
@@ -51,11 +51,11 @@
|
| 115 |
{
|
| 116 |
#ifdef USE_MMAP
|
| 117 |
if(mb->fd>=0)
|
| 118 |
- { long len=mb->len+1;
|
| 119 |
- if(munmap(mb->p,len))
|
| 120 |
- mmapfailed(len); /* don't want to continue here */
|
| 121 |
- if((mb->p=mmap(0,len,PROT_READ,MAP_PRIVATE,mb->fd,(off_t)0))==MAP_FAILED)
|
| 122 |
- mmapfailed(len);
|
| 123 |
+ { long mlen=mb->len+1;
|
| 124 |
+ if(munmap(mb->p,mlen))
|
| 125 |
+ mmapfailed(mlen); /* don't want to continue here */
|
| 126 |
+ if((mb->p=mmap(0,mlen,PROT_READ,MAP_PRIVATE,mb->fd,(off_t)0))==MAP_FAILED)
|
| 127 |
+ mmapfailed(mlen);
|
| 128 |
close(mb->fd);
|
| 129 |
mb->fd=ropen(devnull,O_RDWR,0); /* XXX Perhaps -1 is better? */
|
| 130 |
}
|
| 131 |
@@ -77,8 +77,8 @@
|
| 132 |
strcpy(filename,MMAP_DIR);
|
| 133 |
if(unique(filename,strchr(filename,'\0'),MMAP_FILE_LEN,MMAP_PERM,0,0)&&
|
| 134 |
(mb->fd=ropen(filename,O_RDWR,MMAP_PERM),unlink(filename),mb->fd>=0))
|
| 135 |
- { mb->filelen=len;
|
| 136 |
- if(lseek(mb->fd,mb->filelen-1,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
|
| 137 |
+ { mb->filelen=len+1;
|
| 138 |
+ if(lseek(mb->fd,len,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
|
| 139 |
dropf: { close(mb->fd);mb->fd= -1;
|
| 140 |
if(verbose)nlog("Unable to extend or use tempfile");
|
| 141 |
}
|
| 142 |
@@ -98,9 +98,9 @@
|
| 143 |
}
|
| 144 |
}
|
| 145 |
if(mb->fd>=0)
|
| 146 |
- { if(len>mb->filelen) /* need to extend? */
|
| 147 |
- { mb->filelen=len;
|
| 148 |
- if(lseek(mb->fd,mb->filelen-1,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
|
| 149 |
+ { if(len>=mb->filelen) /* need to extend? */
|
| 150 |
+ { mb->filelen=len+1;
|
| 151 |
+ if(lseek(mb->fd,len,SEEK_SET)<0||1!=rwrite(mb->fd,empty,1))
|
| 152 |
{ char*p=malloc(len+1); /* can't extend, switch to malloc */
|
| 153 |
tmemmove(p,mb->p,mb->len);
|
| 154 |
munmap(mb->p,mb->len+1);
|
| 155 |
@@ -124,9 +124,9 @@
|
| 156 |
}
|
| 157 |
else
|
| 158 |
mb->p=realloc(mb->p,len+1);
|
| 159 |
- mb->len=len+1;
|
| 160 |
- mb->p[len]='\0';
|
| 161 |
+ mb->len=len;
|
| 162 |
ret1:
|
| 163 |
+ mb->p[len]='\0';
|
| 164 |
return 1;
|
| 165 |
}
|
| 166 |
|
| 167 |
--- procmail-3.22.orig/src/autoconf
|
| 168 |
+++ procmail-3.22/src/autoconf
|
| 169 |
@@ -1470,15 +1470,14 @@
|
| 170 |
grep 'Mlocal.*procmail' >$DEVNULL ||
|
| 171 |
echo '#define CF_no_procmail_yet' >>$ACONF
|
| 172 |
|
| 173 |
-cat /usr/lib/sendmail.cf /etc/sendmail.cf /etc/mail/sendmail.cf 2>$DEVNULL |
|
| 174 |
- grep '^V' >$DEVNULL ||
|
| 175 |
- echo '#define buggy_SENDMAIL' >>$ACONF
|
| 176 |
+# cat /usr/lib/sendmail.cf /etc/sendmail.cf /etc/mail/sendmail.cf 2>$DEVNULL |
|
| 177 |
+# grep '^V' >$DEVNULL ||
|
| 178 |
+# echo '#define buggy_SENDMAIL' >>$ACONF
|
| 179 |
|
| 180 |
lpath='/bin'
|
| 181 |
bins="/bin"
|
| 182 |
|
| 183 |
-for newd in /usr/bin /usr/ucb /usr/5bin $BINDIR /local/bin /usr/local/bin \
|
| 184 |
- /global/bin /usr/bin/X11 /usr/X*/bin
|
| 185 |
+for newd in /usr/bin $BINDIR /usr/bin/X11 /usr/X*/bin
|
| 186 |
do
|
| 187 |
if test -d $newd
|
| 188 |
then
|
| 189 |
--- procmail-3.22.orig/src/procmail.c
|
| 190 |
+++ procmail-3.22/src/procmail.c
|
| 191 |
@@ -652,8 +652,7 @@
|
| 192 |
nrcond= -1;
|
| 193 |
if(tolock) /* clear temporary buffer for lockfile name */
|
| 194 |
free(tolock);
|
| 195 |
- for(i=maxindex(flags);i;i--) /* clear the flags */
|
| 196 |
- flags[i]=0;
|
| 197 |
+ bbzero(flags,sizeof(flags)); /* clear the flags */
|
| 198 |
for(tolock=0,locknext=0;;)
|
| 199 |
{ chp=skpspace(chp);
|
| 200 |
switch(i= *chp++)
|
| 201 |
--- procmail-3.22.orig/src/pipes.c
|
| 202 |
+++ procmail-3.22/src/pipes.c
|
| 203 |
@@ -145,7 +145,9 @@
|
| 204 |
if(Stdout)
|
| 205 |
{ *(eq=strchr(Stdout,'\0')-1)='\0'; /* chop the '=' */
|
| 206 |
if(!(backblock=getenv(Stdout))) /* no current value? */
|
| 207 |
- PRDB=PWRB= -1;
|
| 208 |
+ { PRDB=PWRB= -1;
|
| 209 |
+ backlen=0;
|
| 210 |
+ }
|
| 211 |
else
|
| 212 |
{ backlen=strlen(backblock);
|
| 213 |
goto pip;
|
| 214 |
@@ -155,9 +157,7 @@
|
| 215 |
pip: rpipe(pbackfd);
|
| 216 |
rpipe(pinfd); /* main pipes setup */
|
| 217 |
if(!(pidchild=sfork())) /* create a sending procmail */
|
| 218 |
- { if(Stdout&&backblock)
|
| 219 |
- backlen=strlen(backblock);
|
| 220 |
- else
|
| 221 |
+ { if(!Stdout)
|
| 222 |
backblock=source,backlen=len;
|
| 223 |
childsetup();rclose(PRDI);rclose(PRDB);
|
| 224 |
rpipe(poutfd);rclose(STDOUT);
|
| 225 |
@@ -194,7 +194,7 @@
|
| 226 |
makeblock(&temp,Stdfilled);
|
| 227 |
tmemmove(temp.p,Stdout,Stdfilled);
|
| 228 |
readdyn(&temp,&Stdfilled,Stdfilled+backlen+1);
|
| 229 |
- Stdout=realloc(Stdout,&Stdfilled+1);
|
| 230 |
+ Stdout=realloc(Stdout,Stdfilled+1);
|
| 231 |
tmemmove(Stdout,temp.p,Stdfilled+1);
|
| 232 |
freeblock(&temp);
|
| 233 |
retStdout(Stdout,pwait&&pipw,!backblock);
|
| 234 |
--- procmail-3.22.orig/src/memblk.h
|
| 235 |
+++ procmail-3.22/src/memblk.h
|
| 236 |
@@ -1,6 +1,6 @@
|
| 237 |
typedef struct memblk {
|
| 238 |
char*p; /* where it starts */
|
| 239 |
- long len; /* currently allocated size */
|
| 240 |
+ long len; /* current size, not including trailing NUL */
|
| 241 |
#ifdef USE_MMAP
|
| 242 |
off_t filelen; /* how long is the file */
|
| 243 |
int fd; /* file which is mmap()ed */
|
| 244 |
--- procmail-3.22.orig/src/manconf.c
|
| 245 |
+++ procmail-3.22/src/manconf.c
|
| 246 |
@@ -233,7 +233,7 @@
|
| 247 |
\2-@PRESERVOPT@\1and\1.BR \2-@FROMWHOPT@ .\1");
|
| 248 |
pc("LMTPOPT",LMTPOPT);
|
| 249 |
#else
|
| 250 |
- ps("LMTPOPTdesc","");ps("LMTPusage","");
|
| 251 |
+ ps("LMTPOPTdesc","");ps("LMTPusage","\1");
|
| 252 |
#endif
|
| 253 |
pname("INIT_UMASK",0);printf("0%lo/g\n",(unsigned long)INIT_UMASK);lines--;
|
| 254 |
pn("DEFlinebuf",DEFlinebuf);
|
| 255 |
--- procmail-3.22.orig/src/recommend.c
|
| 256 |
+++ procmail-3.22/src/recommend.c
|
| 257 |
@@ -47,7 +47,7 @@
|
| 258 |
printf("chmod %lo %s\n",(unsigned long)(sgid|PERMIS),argv[2]);
|
| 259 |
else if(chmdir==1)
|
| 260 |
goto nogchmod;
|
| 261 |
- if(chmdir)
|
| 262 |
+ if(0)
|
| 263 |
printf("chmod %c+w %s/.\n",chmdir==1?'g':'a',mailspooldir);
|
| 264 |
nogchmod:
|
| 265 |
return EXIT_SUCCESS;
|
| 266 |
--- procmail-3.22.orig/src/foldinfo.h
|
| 267 |
+++ procmail-3.22/src/foldinfo.h
|
| 268 |
@@ -10,7 +10,7 @@
|
| 269 |
|
| 270 |
#define ft_lock(type) ((type)>ft_MAILDIR) /* kernel lock fd */
|
| 271 |
#define ft_atime(type) ((type)==ft_FILE) /* force atime < mtime */
|
| 272 |
-#define ft_dotlock(type) ((type)==ft_FILE) /* dotlock $DEFAULT */
|
| 273 |
+#define ft_dotlock(type) ((type)>ft_MAILDIR) /* dotlock $DEFAULT */
|
| 274 |
#define ft_delim(type) ((type)==ft_FILE) /* add MMDF delim */
|
| 275 |
#define ft_checkcloser(type) ((type)>ft_MH)
|
| 276 |
#define ft_forceblank(type) ((type)!=ft_MAILDIR) /* force blank line at end */
|
| 277 |
--- procmail-3.22.orig/src/mailfold.c
|
| 278 |
+++ procmail-3.22/src/mailfold.c
|
| 279 |
@@ -378,7 +378,8 @@
|
| 280 |
dfilled=mailread=0;
|
| 281 |
else if(rhead) /* only read in a new header */
|
| 282 |
{ memblk new;
|
| 283 |
- dfilled=mailread=0;makeblock(&new,0);readdyn(&new,&dfilled,0);
|
| 284 |
+ dfilled=mailread=0;makeblock(&new,0);
|
| 285 |
+ readdyn(&new,&dfilled,thebody-themail.p);
|
| 286 |
if(tobesent>dfilled&&isprivate) /* put it in place here */
|
| 287 |
{ tmemmove(themail.p+dfilled,thebody,filled-=tobesent);
|
| 288 |
tmemmove(themail.p,new.p,dfilled);
|
| 289 |
--- procmail-3.22.orig/FAQ
|
| 290 |
+++ procmail-3.22/FAQ
|
| 291 |
@@ -57,8 +57,8 @@
|
| 292 |
Forward to |/usr/bin/procmail
|
| 293 |
or if that doesn't work, try:
|
| 294 |
Pipe to /usr/bin/procmail
|
| 295 |
- as the only line in your mail spool file (e.g. /usr/mail/$LOGNAME), as
|
| 296 |
- well as doing a "chmod 06660 /usr/mail/$LOGNAME". For more information
|
| 297 |
+ as the only line in your mail spool file (e.g. /var/mail/$LOGNAME), as
|
| 298 |
+ well as doing a "chmod 06660 /var/mail/$LOGNAME". For more information
|
| 299 |
on such systems, do a "man mail".
|
| 300 |
|
| 301 |
If all of this doesn't work, procmail can be called on a periodical
|
| 302 |
@@ -210,14 +210,14 @@
|
| 303 |
procmail with both the fcntl() and lockf() locking method
|
| 304 |
disabled (see config.h).
|
| 305 |
|
| 306 |
-17. I sometimes get these `Lock failure on "/usr/mail/$LOGNAME.lock"' errors
|
| 307 |
+17. I sometimes get these `Lock failure on "/var/mail/$LOGNAME.lock"' errors
|
| 308 |
from procmail. What do I do about it?
|
| 309 |
|
| 310 |
The problem here is that as long as procmail has not read a
|
| 311 |
$HOME/.procmailrc file, it can hang on to the sgid mail permission
|
| 312 |
- (which it needs in order to create a lockfile in /usr/mail).
|
| 313 |
+ (which it needs in order to create a lockfile in /var/mail).
|
| 314 |
I.e. if procmail delivers mail to a user without a $HOME/.procmailrc
|
| 315 |
- file, procmail *can* (and does) use the /usr/mail/$LOGNAME.lock file.
|
| 316 |
+ file, procmail *can* (and does) use the /var/mail/$LOGNAME.lock file.
|
| 317 |
|
| 318 |
If, however, it finds a $HOME/.procmailrc file, procmail has to let go
|
| 319 |
of the sgid mail permission because otherwise any ordinary user could
|
| 320 |
@@ -226,7 +226,7 @@
|
| 321 |
There are several solutions to this problem:
|
| 322 |
- Some systems support the sticky bit on directories (when set only
|
| 323 |
allows the owner of a file in that directory to rename or remove
|
| 324 |
- it). This enables you to make /usr/spool/mail drwxrwxrwt. It is
|
| 325 |
+ it). This enables you to make /var/mail drwxrwxrwt. It is
|
| 326 |
thus effectively world writable, but all the mailboxes in it are
|
| 327 |
protected because only the mailbox owner can remove or rename it.
|
| 328 |
- If your system did not exhibit the !@#$%^&* POSIX semantics for
|
| 329 |
@@ -245,9 +245,9 @@
|
| 330 |
:0
|
| 331 |
$DEFAULT
|
| 332 |
|
| 333 |
- - You could, instead of using /usr/mail/$LOGNAME, use a file below
|
| 334 |
+ - You could, instead of using /var/mail/$LOGNAME, use a file below
|
| 335 |
your home directory as your default mailbox.
|
| 336 |
- - Or, you could still use /usr/mail/$LOGNAME as the mailbox, but
|
| 337 |
+ - Or, you could still use /var/mail/$LOGNAME as the mailbox, but
|
| 338 |
simply instruct procmail to use a different lockfile. This can
|
| 339 |
be achieved by putting following recipe at the bottom of
|
| 340 |
your .procmailrc file:
|
| 341 |
--- procmail-3.22.orig/Makefile
|
| 342 |
+++ procmail-3.22/Makefile
|
| 343 |
@@ -79,7 +79,7 @@
|
| 344 |
# -lresolv # not really needed, is it?
|
| 345 |
|
| 346 |
# Informal list of directories where we look for the libraries in SEARCHLIBS
|
| 347 |
-LIBPATHS=/lib /usr/lib /usr/local/lib
|
| 348 |
+LIBPATHS=/lib /usr/lib
|
| 349 |
|
| 350 |
GCC_WARNINGS = -O2 -pedantic -Wreturn-type -Wunused -Wformat -Wtraditional \
|
| 351 |
-Wpointer-arith -Wconversion -Waggregate-return \
|
| 352 |
--- procmail-3.22.orig/debian/changelog
|
| 353 |
+++ procmail-3.22/debian/changelog
|
| 354 |
@@ -0,0 +1,294 @@
|
| 355 |
+procmail (3.22-8) unstable; urgency=low
|
| 356 |
+
|
| 357 |
+ * Fixed strange formail -l behaviour when there is a Content-Length: header.
|
| 358 |
+ Thanks a lot to Henning Makholm for the patch (Closes: #217853).
|
| 359 |
+
|
| 360 |
+ -- Santiago Vila <sanvila@debian.org> Mon, 3 Nov 2003 20:01:24 +0100
|
| 361 |
+
|
| 362 |
+procmail (3.22-7) unstable; urgency=low
|
| 363 |
+
|
| 364 |
+ * Fixed bad nroff syntax in procmailrc(5), closes: #147173.
|
| 365 |
+ * Added missing newline in procmail(1), closes: #180477.
|
| 366 |
+
|
| 367 |
+ -- Santiago Vila <sanvila@debian.org> Mon, 10 Mar 2003 00:09:20 +0100
|
| 368 |
+
|
| 369 |
+procmail (3.22-6) unstable; urgency=low
|
| 370 |
+
|
| 371 |
+ * Standards-Version: 3.5.8.
|
| 372 |
+
|
| 373 |
+ -- Santiago Vila <sanvila@debian.org> Thu, 26 Dec 2002 18:27:08 +0100
|
| 374 |
+
|
| 375 |
+procmail (3.22-5) stable; urgency=medium
|
| 376 |
+
|
| 377 |
+ * Patched pipes.c to fix a memory allocation bug (Closes: #171514).
|
| 378 |
+
|
| 379 |
+ -- Santiago Vila <sanvila@debian.org> Thu, 26 Dec 2002 18:09:38 +0100
|
| 380 |
+
|
| 381 |
+procmail (3.22-4) unstable; urgency=low
|
| 382 |
+
|
| 383 |
+ * Fixed a typo in procmail(1). Patch by the author (Closes: #142983).
|
| 384 |
+
|
| 385 |
+ -- Santiago Vila <sanvila@debian.org> Tue, 16 Apr 2002 19:16:20 +0200
|
| 386 |
+
|
| 387 |
+procmail (3.22-3) unstable; urgency=medium
|
| 388 |
+
|
| 389 |
+ * Fixed off-by-one bug in procmail.c which made the raw flag not to be
|
| 390 |
+ cleared properly. Thanks to Gregory Stark (Closes: #134341).
|
| 391 |
+
|
| 392 |
+ -- Santiago Vila <sanvila@debian.org> Sun, 17 Feb 2002 16:43:02 +0100
|
| 393 |
+
|
| 394 |
+procmail (3.22-2) unstable; urgency=medium
|
| 395 |
+
|
| 396 |
+ * Modified mailfold.c to fix a segfault problem. Patch by the author.
|
| 397 |
+ * The system-wide mail directory is /var/mail as per policy.
|
| 398 |
+
|
| 399 |
+ -- Santiago Vila <sanvila@debian.org> Thu, 29 Nov 2001 09:39:04 +0100
|
| 400 |
+
|
| 401 |
+procmail (3.22-1) unstable; urgency=low
|
| 402 |
+
|
| 403 |
+ * New upstream release, which uses the `standard' format for Maildir
|
| 404 |
+ filenames and retries on name collision. It also contains some
|
| 405 |
+ bug fixes from the 3.23pre snapshot dated 2001-09-13.
|
| 406 |
+ * Removed `sendmail' from the Recommends field, since we already
|
| 407 |
+ have `exim' (the default Debian MTA) and `mail-transport-agent'.
|
| 408 |
+ * Removed suidmanager support. Conflicts: suidmanager (<< 0.50).
|
| 409 |
+ * Added support for DEB_BUILD_OPTIONS in the source package.
|
| 410 |
+ * README.Maildir: Do not use locking on the example recipe,
|
| 411 |
+ since it's wrong to do so in this case.
|
| 412 |
+
|
| 413 |
+ -- Santiago Vila <sanvila@debian.org> Wed, 21 Nov 2001 09:40:20 +0100
|
| 414 |
+
|
| 415 |
+procmail (3.15.2-1) stable; urgency=high
|
| 416 |
+
|
| 417 |
+ * New upstream release, with improved security and robustness involving
|
| 418 |
+ signal handlers. Author recommends upgrading to this version on
|
| 419 |
+ any system where it is installed setuid or setgid.
|
| 420 |
+ * This release fixes also Bug #108417: procmail -p -m resets PATH.
|
| 421 |
+
|
| 422 |
+ -- Santiago Vila <sanvila@debian.org> Thu, 30 Aug 2001 20:05:06 +0200
|
| 423 |
+
|
| 424 |
+procmail (3.15.1-4) unstable; urgency=low
|
| 425 |
+
|
| 426 |
+ * Don't add an extra newline when delivering to a Maildir folder.
|
| 427 |
+ Please note that the MTA may still add a newline on their own.
|
| 428 |
+ Exim users should check the `suffix' variable, for example.
|
| 429 |
+ Patch by the author. Closes: #78623.
|
| 430 |
+
|
| 431 |
+ -- Santiago Vila <sanvila@debian.org> Sat, 14 Apr 2001 17:18:29 +0200
|
| 432 |
+
|
| 433 |
+procmail (3.15.1-3) unstable; urgency=low
|
| 434 |
+
|
| 435 |
+ * Clarified formail -X behaviour, patch by the author (Closes: #77388).
|
| 436 |
+ * Updated QuickStart.
|
| 437 |
+
|
| 438 |
+ -- Santiago Vila <sanvila@debian.org> Sun, 25 Mar 2001 10:45:56 +0200
|
| 439 |
+
|
| 440 |
+procmail (3.15.1-2) unstable; urgency=low
|
| 441 |
+
|
| 442 |
+ * Fixed lockfile -l endless loop (Closes: #82006). Patch by the author.
|
| 443 |
+
|
| 444 |
+ -- Santiago Vila <sanvila@debian.org> Sun, 28 Jan 2001 19:44:49 +0100
|
| 445 |
+
|
| 446 |
+procmail (3.15.1-1) unstable; urgency=low
|
| 447 |
+
|
| 448 |
+ * New upstream release. A race to create the mailspool would bounce one of
|
| 449 |
+ the messages due to an internal error.
|
| 450 |
+
|
| 451 |
+ -- Santiago Vila <sanvila@debian.org> Mon, 8 Jan 2001 20:09:34 +0100
|
| 452 |
+
|
| 453 |
+procmail (3.15-3) unstable; urgency=low
|
| 454 |
+
|
| 455 |
+ * Fixed formatting error in procmailrc(5). Patch by the author.
|
| 456 |
+ (Closes: #80437).
|
| 457 |
+
|
| 458 |
+ -- Santiago Vila <sanvila@debian.org> Sun, 31 Dec 2000 17:20:47 +0100
|
| 459 |
+
|
| 460 |
+procmail (3.15-2) unstable; urgency=low
|
| 461 |
+
|
| 462 |
+ * formail -l is now documented. Patch by the author (Closes: #72275).
|
| 463 |
+
|
| 464 |
+ -- Santiago Vila <sanvila@debian.org> Fri, 1 Dec 2000 19:54:22 +0100
|
| 465 |
+
|
| 466 |
+procmail (3.15-1) unstable; urgency=low
|
| 467 |
+
|
| 468 |
+ * New upstream release. Maildir support is now built-in.
|
| 469 |
+ * Really change default PATH to "$HOME/bin:/usr/local/bin:/usr/bin:/bin".
|
| 470 |
+ * Modified the note in QuickStart about refiltering an old mail folder.
|
| 471 |
+ * Use SEARCHLIBS="" in debian/rules clean target to speed it up.
|
| 472 |
+ * Modified ft_dotlock in src/foldinfo.h to be in compliance with
|
| 473 |
+ locking policy, following a hint by the author.
|
| 474 |
+ * Removed (versioned) dependency on debianutils, since mailstat
|
| 475 |
+ does not use temporary files anymore.
|
| 476 |
+ * Made the .forward example in procmail(1) not to depend on the build
|
| 477 |
+ environment by modifying src/autoconf so that buggy_SENDMAIL is
|
| 478 |
+ never defined.
|
| 479 |
+
|
| 480 |
+ -- Santiago Vila <sanvila@debian.org> Mon, 28 Aug 2000 12:51:05 +0200
|
| 481 |
+
|
| 482 |
+procmail (3.13.1-4) stable; urgency=high
|
| 483 |
+
|
| 484 |
+ * Fixed weird formail -rk behavior (patch from the author, backported
|
| 485 |
+ from procmail-3.15). Thanks to Ben Collins for the report.
|
| 486 |
+ * s/smail/exim/ in `Recommends:' field.
|
| 487 |
+
|
| 488 |
+ -- Santiago Vila <sanvila@debian.org> Tue, 22 Aug 2000 13:04:50 +0200
|
| 489 |
+
|
| 490 |
+procmail (3.13.1-3) unstable; urgency=medium
|
| 491 |
+
|
| 492 |
+ * Standards-Version: 3.1.1
|
| 493 |
+ * Updated location of licenses in copyright file.
|
| 494 |
+ * LOCKINGTEST=100 again, to use fcntl() and dot-locking, as required by
|
| 495 |
+ latest policy.
|
| 496 |
+
|
| 497 |
+ -- Santiago Vila <sanvila@ctv.es> Wed, 1 Dec 1999 12:37:35 +0100
|
| 498 |
+
|
| 499 |
+procmail (3.13.1-2) unstable; urgency=low
|
| 500 |
+
|
| 501 |
+ * Modified procmail(1) and QuickStart to reflect the fact that exim does
|
| 502 |
+ not accept the exec keyword in .forward files (Bugs #33460 and #37771).
|
| 503 |
+ * Modified formail to recognize exim's Envelope-To: header (Bug#40718).
|
| 504 |
+ Patch by Philip Guenther.
|
| 505 |
+ * Standards-Version: 3.0.0.
|
| 506 |
+
|
| 507 |
+ -- Santiago Vila <sanvila@ctv.es> Mon, 19 Jul 1999 20:09:25 +0200
|
| 508 |
+
|
| 509 |
+procmail (3.13.1-1) stable unstable; urgency=high
|
| 510 |
+
|
| 511 |
+ * New upstream release, 3.13 missed a couple possible overflows.
|
| 512 |
+ * Applied `procmail-locking.patch' from Bruce Guenter, since
|
| 513 |
+ no directory delivery mechanism requires locking (Bug #35210).
|
| 514 |
+
|
| 515 |
+ -- Santiago Vila <sanvila@ctv.es> Thu, 8 Apr 1999 13:56:33 +0200
|
| 516 |
+
|
| 517 |
+procmail (3.13-1) stable unstable; urgency=high
|
| 518 |
+
|
| 519 |
+ * New upstream release. procmail 3.12 breaks smartlist (Bug #35115).
|
| 520 |
+
|
| 521 |
+ -- Santiago Vila <sanvila@ctv.es> Fri, 2 Apr 1999 14:24:24 +0200
|
| 522 |
+
|
| 523 |
+procmail (3.12-1) frozen unstable; urgency=high
|
| 524 |
+
|
| 525 |
+ * New upstream release. Fixes some security bugs.
|
| 526 |
+ * #define GROUP_PER_USER in config.h to allow writeable rcfiles when
|
| 527 |
+ the group is the user's default group.
|
| 528 |
+ * Added KNOWN_BUGS to the doc directory.
|
| 529 |
+ * suid procmail to avoid non-suidness window when upgrading.
|
| 530 |
+
|
| 531 |
+ -- Santiago Vila <sanvila@ctv.es> Thu, 4 Mar 1999 10:28:28 +0100
|
| 532 |
+
|
| 533 |
+procmail (3.10.7-7) frozen unstable; urgency=medium
|
| 534 |
+
|
| 535 |
+ * New Maildir patches from Bruce Guenter.
|
| 536 |
+ Should fix Bug #30320: procmail: maildir does not use From_ lines.
|
| 537 |
+
|
| 538 |
+ -- Santiago Vila <sanvila@ctv.es> Thu, 31 Dec 1998 13:27:20 +0100
|
| 539 |
+
|
| 540 |
+procmail (3.10.7-6) frozen unstable; urgency=medium
|
| 541 |
+
|
| 542 |
+ * Patched mailfold.c to avoid the unnecessary one second wait when
|
| 543 |
+ delivering to MH folders (patch by the author).
|
| 544 |
+ * src/locking.c: Applied a bugfix patch from the author.
|
| 545 |
+
|
| 546 |
+ -- Santiago Vila <sanvila@ctv.es> Wed, 13 May 1998 21:50:19 +0200
|
| 547 |
+
|
| 548 |
+procmail (3.10.7-5) frozen unstable; urgency=medium
|
| 549 |
+
|
| 550 |
+ * Added a patch for Maildir support. The "new" procmail should be
|
| 551 |
+ completely backwards compatible with the "previous" one, in the
|
| 552 |
+ sense that its behaviour should be just the same for already
|
| 553 |
+ existing .procmailrc files which do not use the new syntax for
|
| 554 |
+ Maildir folders.
|
| 555 |
+ * Added a small README.Maildir explaining how to use this feature.
|
| 556 |
+
|
| 557 |
+ -- Santiago Vila <sanvila@ctv.es> Mon, 4 May 1998 19:39:55 +0200
|
| 558 |
+
|
| 559 |
+procmail (3.10.7-4) frozen unstable; urgency=low
|
| 560 |
+
|
| 561 |
+ * Added a small note in QuickStart about refiltering an old mail folder.
|
| 562 |
+ * mailstat(1): The log file is truncated to zero length (Bug #21022).
|
| 563 |
+ * PATH=/usr/local/bin:/usr/bin:/bin for the example in procmail(1).
|
| 564 |
+ * Standards-Version: 2.4.1.
|
| 565 |
+
|
| 566 |
+ -- Santiago Vila <sanvila@ctv.es> Fri, 17 Apr 1998 18:00:14 +0200
|
| 567 |
+
|
| 568 |
+procmail (3.10.7-3) frozen unstable; urgency=medium
|
| 569 |
+
|
| 570 |
+ * Patched src/recommend.c so that the mail spool directory is not
|
| 571 |
+ touched. This will allow the package to be built using fakeroot.
|
| 572 |
+ * Patched mailstat so that it uses tempfile.
|
| 573 |
+
|
| 574 |
+ -- Santiago Vila <sanvila@ctv.es> Tue, 24 Mar 1998 21:43:08 +0100
|
| 575 |
+
|
| 576 |
+procmail (3.10.7-2) unstable; urgency=low
|
| 577 |
+
|
| 578 |
+ * Default PATH is now "$HOME/bin:/usr/local/bin:/usr/bin:/bin".
|
| 579 |
+ * Added "fetchmail" to the Recommends: line as one more option.
|
| 580 |
+ * Added /usr/doc/procmail/QuickStart (experimental).
|
| 581 |
+ * Compressed changelog.Debian.
|
| 582 |
+ * Removed debstd dependency.
|
| 583 |
+ * Pristine source.
|
| 584 |
+
|
| 585 |
+ -- Santiago Vila <sanvila@ctv.es> Sat, 31 Jan 1998 20:30:06 +0100
|
| 586 |
+
|
| 587 |
+procmail (3.10.7-1) unstable; urgency=low
|
| 588 |
+
|
| 589 |
+ * Upgraded to 3.11pre7. Sources are now GPLed, hurrah!
|
| 590 |
+ * Added explicit SEARCHLIBS, to avoid unneeded dependency on libdl.
|
| 591 |
+ * First libc6 release.
|
| 592 |
+
|
| 593 |
+ -- Santiago Vila <sanvila@ctv.es> Wed, 18 Jun 1997 20:43:28 +0200
|
| 594 |
+
|
| 595 |
+procmail (3.10.4-2) frozen unstable; urgency=low
|
| 596 |
+
|
| 597 |
+ * Rebuilt using latest debmake to avoid a problem with suidmanager.
|
| 598 |
+
|
| 599 |
+ -- Santiago Vila <sanvila@ctv.es> Sat, 17 May 1997 20:52:59 +0200
|
| 600 |
+
|
| 601 |
+procmail (3.10.4-1) frozen unstable; urgency=low
|
| 602 |
+
|
| 603 |
+ * Upgraded to 3.11pre4. Side effect: It can be built using libc6.
|
| 604 |
+ * Removed NFS_ATIME_HACK patch, since it is no longer needed.
|
| 605 |
+
|
| 606 |
+ -- Santiago Vila <sanvila@ctv.es> Sat, 12 Apr 1997 19:06:46 +0200
|
| 607 |
+
|
| 608 |
+procmail (3.10-8) unstable; urgency=low
|
| 609 |
+
|
| 610 |
+ * Rewritten copyright file.
|
| 611 |
+ * initmake unmodified (source).
|
| 612 |
+ * Patched to recognize NFS_ATIME_HACK variable in .procmailrc or
|
| 613 |
+ /etc/procmailrc. Default value is "yes" (i.e. wait a second).
|
| 614 |
+ * Added a small note about this in /usr/doc/procmail/README.Debian.
|
| 615 |
+
|
| 616 |
+ -- Santiago Vila <sanvila@ctv.es> Sun, 23 Mar 1997 12:04:34 +0100
|
| 617 |
+
|
| 618 |
+procmail (3.10-7) unstable; urgency=low
|
| 619 |
+
|
| 620 |
+ * Put CFLAGS settings &c in ./Makefile, not in debian/rules.
|
| 621 |
+ * Removed fix-substvars script, since it's no longer needed with
|
| 622 |
+ new libc5-5.4.20.
|
| 623 |
+ * Man page for mailstat changed slightly.
|
| 624 |
+ * Some minor debian/rules changes.
|
| 625 |
+ * Added MD5 sums.
|
| 626 |
+
|
| 627 |
+ -- Santiago Vila <sanvila@ctv.es> Fri, 21 Feb 1997 20:53:30 +0100
|
| 628 |
+
|
| 629 |
+procmail (3.10-6) unstable; urgency=low
|
| 630 |
+
|
| 631 |
+ * Use debmake.
|
| 632 |
+ * suidmanager support.
|
| 633 |
+ * Removed `mailstat' from examples, it's already in /usr/bin.
|
| 634 |
+ * Removed also `dirname' (which was "for the deprived").
|
| 635 |
+ * Added `fix-substvars' script to depend on libc5 >= 5.4.0.
|
| 636 |
+
|
| 637 |
+ -- Santiago Vila <sanvila@ctv.es> Mon, 23 Dec 1996 16:34:02 +0100
|
| 638 |
+
|
| 639 |
+procmail (3.10-5) unstable; urgency=low
|
| 640 |
+
|
| 641 |
+ * Updated to Standards-Version 2.1.2.2.
|
| 642 |
+ * Changed "Depends: MTA" to "Recommends: MTA".
|
| 643 |
+ * Added extended package description in control file.
|
| 644 |
+ * Added the symlink changelog.gz -> HISTORY.gz.
|
| 645 |
+ * Added an "experimental" man page for mailstat.
|
| 646 |
+ * New maintainer.
|
| 647 |
+
|
| 648 |
+ -- Santiago Vila <sanvila@ctv.es> Sat, 21 Dec 1996 23:32:11 +0100
|
| 649 |
--- procmail-3.22.orig/debian/control
|
| 650 |
+++ procmail-3.22/debian/control
|
| 651 |
@@ -0,0 +1,18 @@
|
| 652 |
+Source: procmail
|
| 653 |
+Section: mail
|
| 654 |
+Priority: standard
|
| 655 |
+Maintainer: Santiago Vila <sanvila@debian.org>
|
| 656 |
+Standards-Version: 3.6.1
|
| 657 |
+
|
| 658 |
+Package: procmail
|
| 659 |
+Architecture: any
|
| 660 |
+Depends: ${shlibs:Depends}
|
| 661 |
+Conflicts: suidmanager (<< 0.50)
|
| 662 |
+Recommends: exim | mail-transport-agent | fetchmail
|
| 663 |
+Description: Versatile e-mail processor
|
| 664 |
+ Can be used to create mail-servers, mailing lists, sort your incoming
|
| 665 |
+ mail into separate folders/files (real convenient when subscribing to one
|
| 666 |
+ or more mailing lists or for prioritising your mail), preprocess your
|
| 667 |
+ mail, start any programs upon mail arrival (e.g. to generate different
|
| 668 |
+ chimes on your workstation for different types of mail) or selectively
|
| 669 |
+ forward certain incoming mail automatically to someone.
|
| 670 |
--- procmail-3.22.orig/debian/copyright
|
| 671 |
+++ procmail-3.22/debian/copyright
|
| 672 |
@@ -0,0 +1,41 @@
|
| 673 |
+This is the Debian prepackaged version of the "procmail" mail-processing
|
| 674 |
+program written by Stephen van den Berg.
|
| 675 |
+
|
| 676 |
+This package is currently maintained by Santiago Vila <sanvila@debian.org>.
|
| 677 |
+The source for this release was downloaded from:
|
| 678 |
+
|
| 679 |
+ftp://ftp.procmail.org/pub/procmail/procmail-3.22.tar.gz
|
| 680 |
+
|
| 681 |
+This package was first put together by Bruce Perens <bruce@hams.com>,
|
| 682 |
+who added Debian package maintenance system files, and edited config.h
|
| 683 |
+to configure for Debian.
|
| 684 |
+
|
| 685 |
+Copyright:
|
| 686 |
+
|
| 687 |
+Procmail & formail mail processing package.
|
| 688 |
+Copyright (c) 1990-1999, S.R. van den Berg, The Netherlands.
|
| 689 |
+Copyright (c) 1999-2001, Philip Guenther, The United States of America
|
| 690 |
+
|
| 691 |
+This package is open source software; you can redistribute it and/or
|
| 692 |
+modify it under the terms of either:
|
| 693 |
+- the GNU General Public License as published by the Free Software Foundation
|
| 694 |
+ and can be found in the included file called "COPYING"; either version 2,
|
| 695 |
+ or (at your option) any later version, or
|
| 696 |
+- the "Artistic License" which can be found in the included file called
|
| 697 |
+ "Artistic".
|
| 698 |
+
|
| 699 |
+This package is distributed in the hope that it will be useful, but without
|
| 700 |
+any warranty; without even the implied warranty of merchantability or fitness
|
| 701 |
+for a particular purpose. See either the GNU General Public License or the
|
| 702 |
+Artistic License for more details.
|
| 703 |
+
|
| 704 |
+For those of you that choose to use the GNU General Public License,
|
| 705 |
+my interpretation of the GNU General Public License is that no procmailrc
|
| 706 |
+script falls under the terms of the GPL unless you explicitly put
|
| 707 |
+said script under the terms of the GPL yourself.
|
| 708 |
+
|
| 709 |
+
|
| 710 |
+On Debian systems, the complete text of the GNU General Public License
|
| 711 |
+can be found in `/usr/share/common-licenses/GPL', and the complete
|
| 712 |
+text of the "Artistic License" can be found in
|
| 713 |
+`/usr/share/common-licenses/Artistic'.
|
| 714 |
--- procmail-3.22.orig/debian/mailstat.1
|
| 715 |
+++ procmail-3.22/debian/mailstat.1
|
| 716 |
@@ -0,0 +1,40 @@
|
| 717 |
+.TH MAILSTAT 1
|
| 718 |
+.SH NAME
|
| 719 |
+mailstat \- shows mail-arrival statistics
|
| 720 |
+.SH SYNOPSIS
|
| 721 |
+.B mailstat
|
| 722 |
+[\-klmots] [logfile]
|
| 723 |
+.SH DESCRIPTION
|
| 724 |
+.B mailstat
|
| 725 |
+parses a procmail-generated $LOGFILE and displays
|
| 726 |
+a summary about the messages delivered to all folders
|
| 727 |
+(total size, average size, nr of messages).
|
| 728 |
+The $LOGFILE is truncated to zero length, unless the
|
| 729 |
+.B -k
|
| 730 |
+option is used.
|
| 731 |
+Exit code 0 if mail arrived, 1 if no mail arrived.
|
| 732 |
+.SH OPTIONS
|
| 733 |
+.TP
|
| 734 |
+.I \-k
|
| 735 |
+keep logfile intact
|
| 736 |
+.TP
|
| 737 |
+.I \-l
|
| 738 |
+long display format
|
| 739 |
+.TP
|
| 740 |
+.I \-m
|
| 741 |
+merge any errors into one line
|
| 742 |
+.TP
|
| 743 |
+.I \-o
|
| 744 |
+use the old logfile
|
| 745 |
+.TP
|
| 746 |
+.I \-t
|
| 747 |
+terse display format
|
| 748 |
+.TP
|
| 749 |
+.I \-s
|
| 750 |
+silent in case of no mail
|
| 751 |
+.SH NOTES
|
| 752 |
+Customise to your heart's content, this program is only provided as a
|
| 753 |
+guideline.
|
| 754 |
+.SH AUTHOR
|
| 755 |
+This manual page was written by Santiago Vila <sanvila@debian.org>
|
| 756 |
+for the Debian GNU/Linux distribution (but may be used by others).
|
| 757 |
--- procmail-3.22.orig/debian/QuickStart
|
| 758 |
+++ procmail-3.22/debian/QuickStart
|
| 759 |
@@ -0,0 +1,97 @@
|
| 760 |
+procmail QuickStart
|
| 761 |
+===================
|
| 762 |
+
|
| 763 |
+* procmail is not an `interactive' program. It has to run automatically
|
| 764 |
+when the mail arrives. Therefore the first thing to do is to tell our MTA
|
| 765 |
+that we want procmail to "eat" all our mail messages. The way of doing
|
| 766 |
+this depends on the MTA we are using. For example, if we are using
|
| 767 |
+sendmail, it will suffice to have a .forward file like this in our home
|
| 768 |
+directory:
|
| 769 |
+
|
| 770 |
+"|exec /usr/bin/procmail"
|
| 771 |
+
|
| 772 |
+(don't forget the quotes, they are needed in this case).
|
| 773 |
+
|
| 774 |
+If you are using exim, use this instead as your .forward file:
|
| 775 |
+
|
| 776 |
+|/usr/bin/procmail
|
| 777 |
+
|
| 778 |
+The step of creating a .forward file is not needed if the MTA already
|
| 779 |
+performs the delivery using procmail. For example, Debian sendmail will
|
| 780 |
+automatically use procmail for mail delivering if the sendmail.cf is
|
| 781 |
+generated from a sendmail.mc file containing this line:
|
| 782 |
+
|
| 783 |
+FEATURE(local_procmail)dnl
|
| 784 |
+
|
| 785 |
+
|
| 786 |
+* If we have a stand-alone system with no permanent net connection (like
|
| 787 |
+PPP), and we are using fetchmail to get mail from a server, we don't
|
| 788 |
+really need a MTA. Just adding --mda "formail -s procmail" to the
|
| 789 |
+fetchmail command line (or using the `mda' keyword) will tell it to
|
| 790 |
+deliver through procmail.
|
| 791 |
+
|
| 792 |
+
|
| 793 |
+* Next, we have to write a ~/.procmailrc file in our home directory. This
|
| 794 |
+file is a set of filtering rules, based on regular expressions. The
|
| 795 |
+complete syntax is explained in procmailrc(5). Let's see a real example
|
| 796 |
+just to get started. Let's suppose you are subscribed to the following two
|
| 797 |
+mailing lists:
|
| 798 |
+
|
| 799 |
+linux-kernel@vger.kernel.org
|
| 800 |
+debian-user@lists.debian.org
|
| 801 |
+
|
| 802 |
+The first list is managed by Majordomo. Messages coming from a Majordomo
|
| 803 |
+list often include a header field "Sender: " which allow easy filtering.
|
| 804 |
+
|
| 805 |
+The second list is managed my SmartList. Messages coming from a SmartList
|
| 806 |
+list may include several headers that can be used to filter it. One of
|
| 807 |
+them (in fact, the only that it is not X-whatever) is "Resent-Sender: ".
|
| 808 |
+
|
| 809 |
+So the following .procmailrc will first filter the mailing lists, and
|
| 810 |
+any remaining message will go to the default folder:
|
| 811 |
+
|
| 812 |
+*--------------------------------->8------------------------------------
|
| 813 |
+PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
|
| 814 |
+MAILDIR=$HOME/mail # you'd better make sure it exists
|
| 815 |
+DEFAULT=$MAILDIR/mbox # completely optional
|
| 816 |
+LOGFILE=$MAILDIR/procmail.log # recommended
|
| 817 |
+
|
| 818 |
+:0:
|
| 819 |
+* ^Sender:.*linux-kernel-owner@vger.kernel.org
|
| 820 |
+linux-kernel
|
| 821 |
+
|
| 822 |
+:0:
|
| 823 |
+* ^Resent-Sender:.*debian-user-request@lists.debian.org
|
| 824 |
+debian-user
|
| 825 |
+*--------------------------------->8------------------------------------
|
| 826 |
+
|
| 827 |
+From this example additional rules for mailing lists may be created
|
| 828 |
+easily.
|
| 829 |
+
|
| 830 |
+
|
| 831 |
+* Once you have received lots of messages you will want to know where
|
| 832 |
+did they go. That's what the LOGFILE is for. There is a tool named
|
| 833 |
+mailstat which parses this file and shows a summary:
|
| 834 |
+
|
| 835 |
+mailstat procmail.log
|
| 836 |
+
|
| 837 |
+The mailstat command that this package provides does really come from the
|
| 838 |
+examples directory and it is installed by default. You may have your own
|
| 839 |
+modified copy in $HOME/bin, if you like.
|
| 840 |
+
|
| 841 |
+
|
| 842 |
+If you have to refilter an old mail folder according to your current
|
| 843 |
+~/.procmailrc file, you may do the following:
|
| 844 |
+
|
| 845 |
+cat mbox | formail -s procmail
|
| 846 |
+
|
| 847 |
+But of course if your mbox file is the target of a procmail recipe you should
|
| 848 |
+do this instead:
|
| 849 |
+
|
| 850 |
+mv mbox whatever
|
| 851 |
+cat whatever | formail -s procmail
|
| 852 |
+
|
| 853 |
+See formail(1) for details.
|
| 854 |
+
|
| 855 |
+
|
| 856 |
+Santiago Vila <sanvila@debian.org>
|
| 857 |
--- procmail-3.22.orig/debian/README.Maildir
|
| 858 |
+++ procmail-3.22/debian/README.Maildir
|
| 859 |
@@ -0,0 +1,12 @@
|
| 860 |
+This version of procmail supports Maildir folders.
|
| 861 |
+
|
| 862 |
+To make procmail to deliver into a Maildir folder, just append
|
| 863 |
+a slash (/) to the name of the maildir folder in your ~/.procmailrc file.
|
| 864 |
+For example, the following rule:
|
| 865 |
+
|
| 866 |
+:0
|
| 867 |
+* ^Resent-Sender.*debian-user-request@lists.debian.org
|
| 868 |
+debian-user/
|
| 869 |
+
|
| 870 |
+will deliver all mail from the debian-user mailing list to the Maildir
|
| 871 |
+folder "debian-user".
|
| 872 |
--- procmail-3.22.orig/debian/rules
|
| 873 |
+++ procmail-3.22/debian/rules
|
| 874 |
@@ -0,0 +1,76 @@
|
| 875 |
+#!/usr/bin/make -f
|
| 876 |
+
|
| 877 |
+package = procmail
|
| 878 |
+docdir = debian/tmp/usr/share/doc/$(package)
|
| 879 |
+
|
| 880 |
+CC = gcc
|
| 881 |
+CFLAGS0 = -g
|
| 882 |
+LDFLAGS0 =
|
| 883 |
+SEARCHLIBS = -lm
|
| 884 |
+STRIP = true
|
| 885 |
+
|
| 886 |
+ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
| 887 |
+ CFLAGS0 += -O2
|
| 888 |
+endif
|
| 889 |
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
| 890 |
+ STRIP = strip --remove-section=.comment --remove-section=.note
|
| 891 |
+endif
|
| 892 |
+
|
| 893 |
+build:
|
| 894 |
+ $(checkdir)
|
| 895 |
+ $(MAKE) CC="$(CC)" CFLAGS0="$(CFLAGS0)" LDFLAGS0="$(LDFLAGS0)" \
|
| 896 |
+ SEARCHLIBS="$(SEARCHLIBS)"
|
| 897 |
+ touch build
|
| 898 |
+
|
| 899 |
+clean:
|
| 900 |
+ $(checkdir)
|
| 901 |
+ rm -f build
|
| 902 |
+ -$(MAKE) realclean SEARCHLIBS=""
|
| 903 |
+ rm -f `find . -name "*~"`
|
| 904 |
+ rm -rf debian/tmp debian/files* core debian/substvars
|
| 905 |
+
|
| 906 |
+binary-indep: checkroot build
|
| 907 |
+ $(checkdir)
|
| 908 |
+
|
| 909 |
+binary-arch: checkroot build
|
| 910 |
+ $(checkdir)
|
| 911 |
+ rm -rf debian/tmp
|
| 912 |
+ install -d debian/tmp/DEBIAN $(docdir)/examples
|
| 913 |
+ cd debian/tmp && install -d usr/bin
|
| 914 |
+ $(MAKE) BASENAME=`pwd`/debian/tmp/usr install.man install-suid
|
| 915 |
+ $(STRIP) debian/tmp/usr/bin/procmail
|
| 916 |
+ $(STRIP) debian/tmp/usr/bin/lockfile
|
| 917 |
+ $(STRIP) debian/tmp/usr/bin/formail
|
| 918 |
+ cp -p debian/copyright $(docdir)
|
| 919 |
+ cp -p debian/changelog $(docdir)/changelog.Debian
|
| 920 |
+ install -m 644 debian/mailstat.1 debian/tmp/usr/man/man1
|
| 921 |
+ cp -p FEATURES HISTORY README FAQ KNOWN_BUGS \
|
| 922 |
+ debian/QuickStart debian/README.Maildir $(docdir)
|
| 923 |
+ cp -p examples/* $(docdir)/examples
|
| 924 |
+ cd $(docdir)/examples && rm -f dirname mailstat procmail-rpm.spec
|
| 925 |
+ cd $(docdir) && gzip -9 HISTORY changelog.Debian
|
| 926 |
+ ln -s HISTORY.gz $(docdir)/changelog.gz
|
| 927 |
+ mv debian/tmp/usr/man debian/tmp/usr/share
|
| 928 |
+ gzip -r9 debian/tmp/usr/share/man
|
| 929 |
+ dpkg-shlibdeps debian/tmp/usr/bin/*
|
| 930 |
+ dpkg-gencontrol -isp
|
| 931 |
+ cd debian/tmp && \
|
| 932 |
+ md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums
|
| 933 |
+ chown -R root:root debian/tmp
|
| 934 |
+ chmod -R go=rX debian/tmp
|
| 935 |
+ chgrp mail debian/tmp/usr/bin/procmail debian/tmp/usr/bin/lockfile
|
| 936 |
+ chmod 6755 debian/tmp/usr/bin/procmail
|
| 937 |
+ chmod 2755 debian/tmp/usr/bin/lockfile
|
| 938 |
+ dpkg --build debian/tmp ..
|
| 939 |
+
|
| 940 |
+define checkdir
|
| 941 |
+ test -f src/$(package).c -a -f debian/rules
|
| 942 |
+endef
|
| 943 |
+
|
| 944 |
+binary: binary-indep binary-arch
|
| 945 |
+
|
| 946 |
+checkroot:
|
| 947 |
+ $(checkdir)
|
| 948 |
+ test root = "`whoami`"
|
| 949 |
+
|
| 950 |
+.PHONY: binary binary-arch binary-indep clean checkroot
|