I installed the module, I turned it on for one of my content filters, I made one of my nodes with a table with email addresses mailto link in it like this: mbmbm@sdffd.not and it didn't obfuscate anything. All the mailto links in the table were still there in the source.

I also tried to remove the tag and put a straight email address in there, but no dice, it still didn't obfuscate anything.

I had a look at the regular expression in the module and I don't see how it would ever match the above. In fact, I couldn't get that regex to match a simple email address when I extracted it into a standalone test script.

What am I doing wrong?

Michael Grant

Comments

mgrant’s picture

First, my mistake, I didn't quote the html above with code tags, so you might need to do a show source to see what I was actually talking about.

Second, I managed to solve the problem by modifying the regex (will this:

$pattern = "!(<p>|<li>|<br />|[ \n\r\t\(])*([A-Za-z0-9._-]+@[A-Za-z0-9._-]+\.[A-Za-z]{2,4})([.,]?)(?=(</p>|</li>|<br />|[ \n\r\t\)])*)!i";        

And lastly, this module does not support pulling apart a mailto: tag, so make sure your email addresses are just email addresses, not wrapped in an an 'a' tag.

kriskd’s picture

I assume when you say modify the regex, you mean modify invisimail.module.

I did just that searching for $pattern and replaced a line that was very similar to the above with your code. It is still not working for me. E-mail addresses are displayed like this:

text before '+'name@'+'domain.'+'com'+'');
//-->
text after

"text before" and "text after" is just that -- filler text I entered before and after the e-mail address. I have the e-mail filter set as the first filter and I'm using javascript and I have "Automatically create links from email addresses" selected.

Dolphus’s picture

I downloaded the module and placed it in the modules folder.
I configured it in the Administer->SiteConfiguration->Input Formats.
I set the "Use Javascript" and "Automatically convert email ids"

But my page html source still shows the email id with no encryption.

Please help.
Dolphus
webmaster@asbindia.org

kriskd’s picture

I was never able to get this mod to work either. However, this morning I discovered similar mod that hides e-mail addresses and I got it to work right away: http://drupal.org/project/spamspan

Crell’s picture

Status: Active » Closed (duplicate)