if ( lookup($FROM, "members-white-list")
{
...
}
Try "man maildropfilter" and search for lookup for another way to do
it. As an earlier post told you, your code is looking up asterisk in
the files. And it's not there.
Quoting David Benfell <[EMAIL PROTECTED]>:
> On Fri, Dec 21, 2001 at 11:23:14PM +0100, Roland Schneider wrote:
> >
> > >> I have the statement coded as:
> > >>
> > >> if ( lookup( "*", "members-white-list" ) \
> > >> || lookup ( "*", "additional-startrek-members" ) )
> > >> {
> > >> ...
> > >> }
> > >>
> > >> The test always fails and the e-mail is filtered according to
> > >> subsequent rules in my .mailfilter file. This means that e-mail which
> > >> I want put in certain folders lands instead in my suspect folder -- as
> > >> possible spam.
> >
> > This fails because you dont have a line with '*' in the lists.
> > Use VERBOSE=9 and logfile().
> >
> > >> The files exist in the top level of my home directory. Maildrop is
> > >> called directly by fetchmail and I've been using it for quite some
> > >> time now. I recently upgraded to the most recent version.
> > >>
> > >> The man page describes the first argument as expr, which it defines as
> > >> "any expression" with no further explanation. I really don't have any
> > >> idea what I'm supposed to put there; thinking it might be a regular
> > >> expression, I decided I wanted that to match on anything in the
> > >> headers.
> >
> > Try an expression there (man maildropfilter, maildropex), usually
>
> I couldn't find the lookup function in my copy of the maildropex man
> page.
>
> > something like $SENDER. If your MTA does not provide such variables
> > then you need to parse them out of the headers.
> >
> Oh. I'm running maildrop out of fetchmail (my mailservers are on
> other boxes). From what I can see, fetchmail doesn't set anything of
> the kind.
>
> I feel like I'm in a canoe in whitewater, without a paddle, here. Is
> there any documentation that shows how to implement this parsing?
>
> Thanks!
--
I don't do Windows and I don't come to work before nine.
-- Johnny Paycheck
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users