

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
28 messages in net.sourceforge.lists.courier-usersRe: [courier-users] A perl script for...| From | Sent On | Attachments |
|---|---|---|
| Courier User | May 24, 2003 4:33 pm | .runspamc |
| Mitch (WebCob) | May 24, 2003 6:06 pm | |
| Courier User | May 24, 2003 9:18 pm | |
| Gordon Messmer | May 24, 2003 10:50 pm | |
| Courier User | May 24, 2003 11:26 pm | |
| Gordon Messmer | May 25, 2003 12:28 am | |
| Courier User | May 25, 2003 2:04 am | .maildroprc |
| Gordon Messmer | May 25, 2003 11:10 am | |
| Gordon Messmer | May 25, 2003 3:36 pm | |
| Courier User | May 25, 2003 5:12 pm | |
| Courier User | May 25, 2003 5:54 pm | .maildroprc |
| Sam Varshavchik | May 25, 2003 6:04 pm | |
| Sam Varshavchik | May 25, 2003 7:52 pm | |
| Courier User | May 25, 2003 8:01 pm | |
| Courier User | May 25, 2003 8:07 pm | |
| Lukas Vesely | May 26, 2003 7:14 am | |
| Gordon Messmer | May 26, 2003 10:28 am | |
| Courier User | May 26, 2003 12:52 pm | |
| Courier User | May 26, 2003 12:53 pm | |
| Gordon Messmer | May 26, 2003 1:26 pm | |
| Gordon Messmer | May 26, 2003 1:29 pm | |
| Courier User | May 26, 2003 1:45 pm | |
| Mitch (WebCob) | May 26, 2003 1:48 pm | |
| Courier User | May 26, 2003 1:49 pm | |
| Courier User | May 26, 2003 1:53 pm | |
| Sam Varshavchik | May 26, 2003 5:07 pm | |
| Courier User | May 26, 2003 5:22 pm | |
| Sam Varshavchik | May 26, 2003 6:22 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [courier-users] A perl script for invoking spamc from within ~/.courier | Actions... |
|---|---|---|
| From: | Courier User (cour...@asfast.net) | |
| Date: | May 25, 2003 5:54:39 pm | |
| List: | net.sourceforge.lists.courier-users | |
| Attachments: | ![]() maildroprc - 2k | |
On Sun, May 25, 2003 at 08:12:45PM -0400, Courier User wrote:
[ ... ]
I don't think that I have never used the DEFAULT=$ASSASSINDIR method ... I always used "to" or "cc". Perhaps by doing this now, ~/.mailfilter will work.
I'm going to check this out, and I'll report my findings later today or tomorrow.
Thanks for you help.
Well, changing my "to" rule to a "DEFAULT=..." rule did the trick. Now, ~/.mailfilter is not being ignored, and I can get rid of the ~/.courier processing.
My COURIERDIR/etc/maildroprc file is attached. As I mentioned, I had already been using a Maildir for my spam instead of the flat file. Therefore, the only line I needed to change from what I had before is the "DEFAULT=$SPAMDIR" line near the end of this file.
Oh yeah ... and I also re-instated the test for ~/.localfilter-only. I had removed that a year ago, but now it works again, so it's back.
And one more quick question: since I already have all my "import" statements at the top of the global maildroprc file, do I have to repeat those statements in the local ~/.mailfilter file, if any of the filter programs need these environment variables? ... or do these imports get remembered between the invocation of the global maildroprc and the local ~/.mailfilter?
Thanks again for your help.
-- Courier User cour...@asfast.net
import HOME import USER import SENDER import RECIPIENT import HOST import LOCAL import EXT import EXT2 import EXT3 import EXT4 import UFLINE import RPLINE import DTLINE
SAVEDEFAULT=$DEFAULT import DEFAULT LOCALDEFAULT=$DEFAULT DEFAULT=$SAVEDEFAULT
LOGDIR=$HOME/log HASLOGDIR=0
SPAMC=/usr/local/bin/spamc MAILDIRMAKE=/usr/local/bin/maildirmake
SPAMDIR=$HOME/Maildir/.Spam HASSPAMDIR=0
DOSPAMC=1
INVOKE=`/bin/test -f $HOME/.localfilter-only` if ( $RETURNCODE != 0 ) { # # Only do this filtering if the user doesn't override it. # exception {
INVOKE=`/bin/test -d $LOGDIR 2>/dev/null` if ( $RETURNCODE != 0 ) { INVOKE=`/bin/rm -f $LOGDIR 1>/dev/null 2>&1` INVOKE=`/bin/mkdir $LOGDIR 1>/dev/null 2>&1` INVOKE=`/bin/test -d $LOGDIR 2>/dev/null` } if ( $RETURNCODE == 0 ) { logfile "$HOME/log/mailfilter.log" HASLOGDIR=1 } }
exception {
if ( $DOSPAMC != 0 ) { INVOKE=`/bin/test -d $SPAMDIR 2>/dev/null` if ( $RETURNCODE != 0 ) { # # If there's a file (not directory) of the name $SPAMDIR, # get rid of it. # INVOKE=`/bin/rm -f $SPAMDIR 1>/dev/null 2>&1`
# # Make the proper Maildir tree for $SPAMDIR. # INVOKE=`$MAILDIRMAKE $SPAMDIR 1>/dev/null 2>&1`
# # Check again to make sure that the directory really # exists now. # INVOKE=`/bin/test -d $SPAMDIR 2>/dev/null` } if ( $RETURNCODE == 0 ) { HASSPAMDIR=1 } } }
if ( $DOSPAMC != 0 && $HASSPAMDIR != 0 ) { exception {
xfilter "/usr/local/bin/spamc"
if ( /^X-Spam-Status: *Yes/ ) { DEFAULT=$SPAMDIR } } } }








.runspamc