I'm testing the Listhandler module to integrate/include old listserv users to a new Drupal forum.
The email addresses are openly included in the listserv emails and thus the forum posts.

What is the best way of handling the email addresses? I do not want to expose email addresses for easy pickings.

Are there any methods known to work with listhandler to obfuscate the email addresses?

Thanks

Comments

philipnet’s picture

The best place, I think, is to have a filter obfuscate the email addresses.
The same filter could also do colored quoting, smilie graphics and other modifications. It could also turn off obfuscating for logged in users (if you wanted).

Unfortunately I know of no filter that does that yet :-(

P.

rmyoung’s picture

I have used the Custom Filter module (http://drupal.org/project/customfilter) to do this.

I used the following regex pattern: /\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i which picks up email addresses and replace them with mail@XXXXX.XXX

Next, I created a new input format for the mailing list. It applies the custom filter after all the other filters such as URL filter and line break filter. The input format is then set to the new input format you just created in the mailhandler configuration menu for each list.

arhak’s picture

Status: Active » Closed (fixed)

You can do the filter by your self or get it out of the box: SpamSpan http://drupal.org/project/spamspan

rmyoung’s picture

My users did not want the email address present at all so it depends on what you want to do.

If you just want to hide the email from spam bots use SpamSan, if you don't want the email address there at all use a custom filter.