HTML Filter

Digatle

Verified User
Joined
Oct 21, 2003
Messages
11
I have a question. One of my customers, including myself, would like to filter/ban all messages with HTML in it. A lot of messages carry tags like <html>, <body>, <table>, <td>, <td> <img and so forth. How about making a way to filter all HTML or "requested flagged filters" to an alternate E-mail with is an autoresponder saying "Please do not send HTML based E-mails" and provide a way to explain to them that in fact we only accept "plain text e-mails"?

In an alternate note, is there a way to filter out <HTML> or the < and > keys? When I do it now all that happens is a blank response. I know E-mail headers would greatly take effect, so <HTML> and or <TABLE> would be great. How do I do it?

Digatle
 
Hello,

Hello, You could probably first use DA's filter tool to get it to catch the tags you want.. so add things like <HTML>, <html>, etc...

Note that this will just drop the message, so you'll need to edit the filter itself (with root) to get it to reply to the message.

/etc/virtual/domain.com/filter

You'll have to read-up on how to change the filter to do what you want, but would involve changing the "seen finish" line to do the autoreply and then drop the message.

(remember not to add anymore tags through DA or your changes will be overwritten)

John
 
But there's a problem. If I go into DA and E-mail -> Filters and add <HTML> or anything with the < and > symbol all I get is the following:

Block e-mail containing this word:

It shows up blank. Now does it show up blank because its an actual tag? I see it in the source code (view source)

<tr ><td class=list>Block e-mail containing this word:</td ><td class=list><a href='8'></a><html></td ><td class=list align=center ><input type=checkbox name=select8 value="8"></td ></tr >

So it "is" there.

Digatle
 
Cool. How do I get my host provider to upgrade to that fix? I'm with PWS and HostElite. They should actually be talking to someone there already with DA about an E-mail bug that I've discovered but they say that there is no fix.

Digatle
 
DirectAdmin updates automatically on all servers. Everyone will have it a few hours after we make a release. (which may be a while, this is a very minor bug :))

John
 
Back
Top