Re: [Evolution] Filters in 2.4.1




is there any way to set up a filter to delete any mail where the sender
is NOT in the address book?

Additionally to Jeff's answer... ;-)

There is no built-in filter to match against your address books, but
this actually is possibly by using an external app. That app needs to
know about your address books, and should be called from a filter by the
Pipe to Programm condition. Based on the exit code of that app, your
filter can decide what to do about the mail.

Now, what "external app" am I talking about? ;-)  Someone [1] already
posted a script (Python, IIRC) a few times on this list, to read in your
address book and exit with a value that indicates whether the sender of
the mail is in your address book. You should be able to find this one
searching the archives...

Note though, that this may be a very risky thing to do. At least the
automatic deletion of mails -- moving them would be more appropriate
IMHO. As a means of fighting Spam, I'd sure not consider this strict
"deletion" policy.

...guenther


[1] Sorry dude, don't recall OTOH...

-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]