Results 1 to 2 of 2
2005-01-01, 01:17 #1
- Join Date
- Feb 2001
- Silicon Valley, USA
- Thanked 94 Times in 90 Posts
Ideas for breaking long email addresses (VBScript)
I'm writing an ASP page to display the contents of a database of quarantined spam. Spammers seem to like incredibly long "From" addresses. Here are some examples, slightly anonymized:
The goal of this page is to create something that someone can eyeball very quickly and spot any valid messages slated for permanent destruction. The problem is that HTML cannot "wrap" text at a hyphen or an @ sign, but instead distorts the table so that this column becomes absurdly wide, relative to the subject line column.
I can imagine writing code that looks for the @ sign, for hyphens, for periods, at certain points in the string and inserts either spaces or line breaks. But everything I can think of is just too much processing. Anyone have any ideas?
(I guess one possibility is just to truncate the username portion, on the theory that if you don't recognize the first 20 characters, it's probably not a real address... I think I'll do that temporarily until we find something better.)
2005-01-01, 02:55 #2
- Join Date
- Nov 2001
- Melbourne, Victoria, Australia
- Thanked 0 Times in 0 Posts
Re: Ideas for breaking long email addresses (VBScript)
Well out of my area of dabbling, although I did write a VBS some time back to extract e-mail headers from .EML files and generate a tabular "index" in HTML. I don't think any of mine suffered from the insufferably long From: fields though.
Maybe this is of some help:
Forcing word wrap to non-editable content
I've also seen links to using CSS stylesheets, but I don't know how much use they'd be.