mhonarc-users

Re: Suppressing email address in existing archive...

2000-05-09 07:34:36
John Beranek <john(_dot_)beranek(_at_)pace(_dot_)co(_dot_)uk> wrote:

Ahem, answered part of my own message...I put <SPAMMODE> in my resource
file, and new messages don't contain the address.

However, this doesn't work for old messages...

Here's a little script I wrote when I was in the same situation. It's
more aggressive than spammode, though, because it cloaks all addresses 
in the file.

  #!/usr/local/bin/perl -pi~
  s|([\!\%\w\.\-+=/]+@)([\w\.\-]+)|$1.('x' x length($2))|ge

The substitute command came from MHonArc. It replaces the domain with
an equal-length string of x's.

-Dave