Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ferreira (5993)

  (email not shown publicly)

Just another Brazilian Perl hacker.

Journal of ferreira (5993)

Tuesday October 24, 2006
07:15 AM

Mail and regular expressions?

[ #31405 ]

I was browsing an edition of the national Java Magazine and saw an article about JavaMail. The subtitle caught my attention: "Customized messages and Regular Expressions". I thought: it could not be -- no one uses regular expressions to replace text in a message template. Yes, they use.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Keep in mind, I've gotten plenty of spam from %FIRSTNAME% %LASTNAME% addressed to %RECIPIENT%, containing phrases like "Dear %RECIPIENT%, have you %VERB% about %PRODUCT%?"

    The bar is set quite low for stupidity when it comes to automated emailings.

    (And no, I'm not saying everyone who sends out mail based on a template is a spammer, just that spammers have had decades to find new and exciting ways to screw up the technique.)
    • Unfortunately, all of us are familiar with this kind of trash. It amazes me that someone hires such crappy services. (And no, I don't think it would be good that spammers produced nice-looking messages.) It also amazes me that developers do over and over the same tasks and don't improve their tools. It's against basic laziness - but that should be stuff for real programmers. I hate the "brute force" approach and I suffer having to maintain things that started like this (not talking about spamming code; I ab