eN0ch
(eN0ch)
September 7, 2012, 10:49pm
1
Hi,
Just installed. So far, so good …
I have a bunch of regex’s in two exported .txt files from the anti spam app I’ve used for several years - Hendrickson Software Components’ “Purify”. One file is from the blacklist, the other from whitelist.
Is there any way of bulk importing these into SS?
Thanks.
Lance
eN0ch:
I have a bunch of regex’s in two exported .txt files from the anti spam app I’ve used for several years - Hendrickson Software Components’ “Purify”. One file is from the blacklist, the other from whitelist.
Is there any way of bulk importing these into SS?
There’s no built-in way, but you could write an AppleScript that reads the file and creates new blocklist/whitelist rules in SpamSieve.
eN0ch
(eN0ch)
September 8, 2012, 6:22pm
3
Thanks, Michael. That sounds great in theory. But there are many large gaps in my geekery, and AS is certainly one of them. I wouldn’t know where to start. You wouldn’t be able to give me some existing code to start me off, perchance … ?
Could you post a small sample of the format of your export file?
eN0ch
(eN0ch)
September 8, 2012, 9:49pm
5
Thanks, Michael. Sample attached.
In case you want to send me something directly, my address is ‘lance [at] glenbaron [dot] com’
wlist_smpl.txt (299 Bytes)
eN0ch:
Sample attached.
Are these regexes intended to match the body of the message? Or the subject?
eN0ch
(eN0ch)
September 9, 2012, 11:33pm
7
That’s a good question. I think I’ve always assumed it was ‘both-and’. But that may be wrong. It’s definitely the body of the message, at least.
eN0ch
(eN0ch)
September 13, 2012, 8:05pm
8
Michael,
Just wondering whether you’ve had a chance to check further on this?
Busy week. I just had a chance to write the Import Blocklist Regex Rules script .
eN0ch
(eN0ch)
September 14, 2012, 8:14pm
10
Michael - you’re a legend!
Worked like a dream - and even a noob like me can substitute “White” for “Block” and get the right result with the whitelist too.
Always good to deal with a responsive developer …