Re: [Evolution] Using Address Book as white list
- From: Dave <dawinic ncsu edu>
- To: evolution-list gnome org
- Subject: Re: [Evolution] Using Address Book as white list
- Date: Fri, 6 Jan 2006 18:05:06 +0000 (UTC)
Postfix sounds like a good approach if your setup allows, but here is also a
client-side hack which mostly works for me (I'm sure there are better ways to
parse the database file):
Create a evo filter rule like such, which preceeds any junk test rules:
If 'Pipe to program' returns 0, then 'Move to folder' Inbox/Ham, and 'Unset
status' 'Junk', ..., 'Stop processing'.
The program I use to parse my contacts is this:
#!/bin/bash
strings ~/.evolution/addressbook/local/system/addressbook.db | \
grep EMAIL | \
awk -F: '{print $NF }' > ~/.evo2-contacts
egrep \
`cat | egrep ^From: $1 | cut -d: -f2 | sed -e 's/[<>]/\n/g' | egrep @`
~/.evo2-contacts \
2>&1 >> /dev/null
exit $?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]