Henrik The patch did not fully work for me. Hunk 2 failed with:

patching file policyd-weight-devel
Hunk #1 succeeded at 322 (offset -16 lines).
Hunk #2 FAILED at 1379.
Hunk #3 succeeded at 2173 (offset -101 lines).
Hunk #4 succeeded at 2342 (offset -26 lines).
Hunk #5 succeeded at 2876 (offset -139 lines).
1 out of 5 hunks FAILED -- saving rejects to file
policyd-weight-devel.orig.rej


The rej file looks like:

***************
*** 1351,1357 ****
      # specifying a response message with "rc:foo"
      if(index($action, 'rc:') != -1)
      {
-         $action =~ s/^[ \t]*rc:[ \t]*(.*?)[,; .]+.*/$1/i;
      }

      mylog(info=>"decided action=$action");
--- 1379,1385 ----
      # specifying a response message with "rc:foo"
      if(index($action, 'rc:') != -1)
      {
+         $action =~ s/^.*rc:(\w+).*$/$1/i;
      }

      mylog(info=>"decided action=$action");




I looked at the code to try to workout where it belongs but could not. Any
ideas ? Are you maybe using a different version to me ? My version is:

# AUTHOR:  [EMAIL PROTECTED]
# DATE:    Wed Oct 27 13:17:40 CEST 2006
# NAME:    policyd-weight
# VERSION: 0.1.14 beta
# URL:     http://www.policyd-weight.org/

I believe this is the latest version.


Any ideas ?

Regards
Grant




> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:amavis-user-
> [EMAIL PROTECTED] On Behalf Of Henrik Krohns
> Sent: Thursday, 4 January 2007 11:56 AM
> To: amavis-user@lists.sourceforge.net
> Subject: Re: [AMaViS-user] maRBL on Debian
> 
> On Thu, Jan 04, 2007 at 01:43:27AM +0100, mouss wrote:
> > grant maxwell wrote:
> > >> It would be very simple to add "greylist command" support to policyd-
> > >> weight.
> > >> Used when you match only one RBL or get over some specific score. And
> p0f
> > >> support contributing to the score? Heck, I'll make some patches
> myself, it
> > >> would be much more useful than maRBL.
> > >>
> > >>
> > >>
> > > Henrik I agree. I would love to see the outcome of those patches :)
> > >
> >
> > just tell policyd-weight to return "greylist" and configure this a
> > restriction class in postfix.
> 
> What's the use for that? It would either greylist everything or just
> greylist instead of directly rejecting.
> 
> I made the patch:
> 
> http://hege.li/policyd-weight/greylist-p0f.diff
> 
> Cheers,
> Henrik
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> AMaViS-user mailing list
> AMaViS-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amavis-user
> AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
> AMaViS-HowTos:http://www.amavis.org/howto/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to