[patch] rewrite senders' domain name

---------

From: Vincent McIntyre (Vince.McIntyre@atnf.csiro.au)
Date: Mon Aug 05 2002 - 04:52:23 CDT


Hi list,

This is a first go at a patch to replace the originating domain
of the sender with a random string, so you can hide people's
email addresses but still get some idea of who sent what to the
list. I hope this feature doesn't exist already!

The attached patch is in diff -urN format, against 2.1.4.

I've added a configuration variable "antispamdomain".
To turn it on, set
 spamprotect = 1
 antispamdomain = "some_string"
in the config file.
This will rewrite lgm@seti.org to lgm_at_some_string.
It also rewrites the "display name" if there is an email address
in that.

I added some examples to tests/test.rc as well.

Improvements:
 It would be nice to use some kind of formatting text to have
 more control over the output, without having to rebuild the code.

 The case antispamdomain = "" could be handled more gracefully.

Two other comments.
 Could not get it to compile statically on solaris2.6
 Not sure what the problem is there.

 I found the --with-gdbm configure option does a bad job of
 setting up dynamic linking; LD_LIBRARY_PATH is evil.
 In src/Makefile, configure should set
    OPT_LIBS = -R/path/to/gdbm/lib -L/path/to/gdbm/lib -lgdbm
 Could someone who understands autoconfig take a look?

Cheers
Vincent McIntyre vmcintyr@atnf.csiro.au
Australia Telescope National Facility, CSIRO voice:+61-2-9372-4643
PO Box 76, Epping, NSW 1710, AUSTRALIA fax:+61-2-9372-4442



---------

This archive was generated by hypermail 2.1.5.