Results 1 to 2 of 2
  1. #1
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 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:

    b.SlickDeals.0-48b9446-1e5d.our-doma...x1756.ee02.com
    366442825-824-1-JSCHER**OUR-DOMAIN*COM@laddermatter.com
    1-278093-our-domain.com?jscher@creative.inboxrebates.com

    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.)

  2. #2
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    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.

    Alan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •